FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

dlls/util.cpp

34353637383940
#include "ndebugoverlay.h" #include "engine/ivdebugoverlay.h" #include "datacache/imdlcache.h" #include "util.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
34353637383940414243
#include "ndebugoverlay.h" #include "engine/ivdebugoverlay.h" #include "datacache/imdlcache.h" #include "networkstringtable_gamedll.h" #include "util.h" #include "ff_scriptman.h" #include "ff_luacontext.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"
571572573574575576
return NULL; } // // Return the local player. // If this is a multiplayer game, return NULL.
574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
return NULL; } CBasePlayer* UTIL_PlayerBySteamID( const char *steamid ) { if ( !steamid || !steamid[0] ) return NULL; for (int i = 1; i<=gpGlobals->maxClients; i++ ) { CBasePlayer *pPlayer = UTIL_PlayerByIndex( i ); if ( !pPlayer ) continue; if ( !pPlayer->IsConnected() ) continue; if( !engine ) continue; if ( Q_stricmp( engine->GetPlayerNetworkIDString( pPlayer->edict() ), steamid ) == 0 ) { return pPlayer; } } return NULL; } // // Return the local player. // If this is a multiplayer game, return NULL.
300330043005300630073008
partition->ReportStats( "" ); int i; CBaseEntity *pSpot = gEntList.FindEntityByClassname( NULL, "info_player_start"); Vector start = pSpot->GetAbsOrigin(); static Vector *targets = NULL; static bool first = true;
30333034303530363037303830393040
partition->ReportStats( "" ); int i; CBaseEntity *pSpot = gEntList.FindEntityByClassname( NULL, "info_player_start"); if(!pSpot) return; Vector start = pSpot->GetAbsOrigin(); static Vector *targets = NULL; static bool first = true;
309830993100310131023103
} static ConCommand collision_test("collision_test", CC_CollisionTest, "Tests collision system", FCVAR_CHEAT );
313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153
} static ConCommand collision_test("collision_test", CC_CollisionTest, "Tests collision system", FCVAR_CHEAT ); bool Util_AddDownload(const char *pszFile) { INetworkStringTable *pDownloadablesTable = networkstringtable->FindTable( "downloadables" ); bool bSuccess = false; if ( pDownloadablesTable ) { bool bSave = engine->LockNetworkStringTables( false ); //Don't add duplicates. if ( pDownloadablesTable->FindStringIndex( pszFile ) == INVALID_STRING_INDEX ) { pDownloadablesTable->AddString( pszFile, strlen( pszFile ) + 1 ); bSuccess = true; } engine->LockNetworkStringTables( bSave ); } return bSuccess; }