This commit is contained in:
Dmitry Tsarevich 2025-04-04 17:00:11 +03:00 committed by GitHub
commit 5f34e8623e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

View file

@ -602,7 +602,7 @@ public:
// Find the commentary file
char szFullName[512];
Q_snprintf(szFullName,sizeof(szFullName), "maps/%s_commentary.txt", STRING( gpGlobals->mapname ));
KeyValues *pkvFile = new KeyValues( "Commentary" );
KeyValuesAD pkvFile( "Commentary" );
if ( pkvFile->LoadFromFile( filesystem, szFullName, "MOD" ) )
{
Msg( "Commentary: Loading commentary data from %s. \n", szFullName );

View file

@ -95,6 +95,7 @@ CNavMesh::~CNavMesh()
delete [] m_placeName[i];
}
delete [] m_placeName;
}
//--------------------------------------------------------------------------------------------------------------

View file

@ -227,6 +227,8 @@ public:
}
}
pkvMapCameras->deleteThis();
if ( !g_iDevShotCameraCount )
{
Warning( "Devshots: No point_devshot_camera in %s. Moving to next map.\n", STRING( gpGlobals->mapname ) );

View file

@ -13905,13 +13905,13 @@ bool CTFGameRules::IsFirstBloodAllowed( void )
//-----------------------------------------------------------------------------
void CTFGameRules::ShowRoundInfoPanel( CTFPlayer *pPlayer /* = NULL */ )
{
KeyValues *data = new KeyValues( "data" );
if ( m_iCurrentRoundState < 0 )
{
// Haven't set up the round state yet
return;
}
KeyValues *data = new KeyValues( "data" );
// if prev and cur are equal, we are starting from a fresh round
if ( m_iPrevRoundState >= 0 && pPlayer == NULL ) // we have data about a previous state