From c85cfad1dda828e16d3a301b702631aaac8d186c Mon Sep 17 00:00:00 2001 From: mittorn Date: Fri, 30 Sep 2016 11:41:57 +0700 Subject: [PATCH] Remove info_player_start on changelevel --- dlls/triggers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/triggers.cpp b/dlls/triggers.cpp index 59f593d4..79e83e2b 100644 --- a/dlls/triggers.cpp +++ b/dlls/triggers.cpp @@ -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 );