Remove info_player_start on changelevel

This commit is contained in:
mittorn 2016-09-30 11:41:57 +07:00
parent 76bfbd3cdb
commit c85cfad1dd
1 changed files with 5 additions and 0 deletions

View File

@ -1647,6 +1647,11 @@ void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator )
}
}
// shedule remove first info_player_start
CBaseEntity *playerstart = FIND_ENTITY_BY_CLASSNAME( NULL, "info_player_start" );
if( playerstart )
playerstart->pev->flags |= FL_KILLME;
// This object will get removed in the call to CHANGE_LEVEL, copy the params into "safe" memory
strcpy( st_szNextMap, m_szMapName );