|
|
@ -1437,7 +1437,7 @@ void CChangeLevel::UseChangeLevel( CBaseEntity *pActivator, CBaseEntity *pCaller |
|
|
|
|
|
|
|
|
|
|
|
void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator ) |
|
|
|
void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
edict_t *pentLandmark; |
|
|
|
edict_t *pentLandmark = 0; |
|
|
|
//LEVELLIST levels[16];
|
|
|
|
//LEVELLIST levels[16];
|
|
|
|
|
|
|
|
|
|
|
|
ASSERT( !FStrEq( m_szMapName, "" ) ); |
|
|
|
ASSERT( !FStrEq( m_szMapName, "" ) ); |
|
|
@ -1483,7 +1483,9 @@ void CChangeLevel::ChangeLevelNow( CBaseEntity *pActivator ) |
|
|
|
st_szNextSpot[0] = 0; // Init landmark to NULL
|
|
|
|
st_szNextSpot[0] = 0; // Init landmark to NULL
|
|
|
|
|
|
|
|
|
|
|
|
// look for a landmark entity
|
|
|
|
// look for a landmark entity
|
|
|
|
pentLandmark = FindLandmark( m_szLandmarkName ); |
|
|
|
if( !FStrEq( st_szNextMap, "vis04" ) ) |
|
|
|
|
|
|
|
pentLandmark = FindLandmark( m_szLandmarkName ); |
|
|
|
|
|
|
|
|
|
|
|
if( !FNullEnt( pentLandmark ) ) |
|
|
|
if( !FNullEnt( pentLandmark ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
strcpy( st_szNextSpot, m_szLandmarkName ); |
|
|
|
strcpy( st_szNextSpot, m_szLandmarkName ); |
|
|
|