mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-01-25 08:42:36 +01:00
feat: use KeyValuesAD instead
This commit is contained in:
committed by
EricS-Valve
parent
64ab46fbf0
commit
e8e0fdbcd4
@@ -88,12 +88,9 @@ void CEntityBird::SpawnRandomBirds( void )
|
||||
if ( !pszMapName || !pszMapName[0] )
|
||||
return;
|
||||
|
||||
KeyValues *pFileKV = new KeyValues( "birds" );
|
||||
KeyValuesAD pFileKV("birds" );
|
||||
if ( !pFileKV->LoadFromFile( g_pFullFileSystem, "scripts/birds.txt", "MOD" ) )
|
||||
{
|
||||
pFileKV->deleteThis();
|
||||
return;
|
||||
}
|
||||
|
||||
// Build a list of birds in the map already, and make sure we don't spawn any on those spots again
|
||||
CUtlVector<Vector> vecExistingBirds;
|
||||
|
||||
Reference in New Issue
Block a user