mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Remove info_player_start on changelevel
This commit is contained in:
parent
76bfbd3cdb
commit
c85cfad1dd
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user