Fix little coop bugs

This commit is contained in:
mittorn 2017-12-13 02:57:41 +07:00
parent edb78b4e0e
commit 473eb94e96
1 changed files with 5 additions and 1 deletions

View File

@ -214,7 +214,9 @@ void UTIL_SpawnPlayer( CBasePlayer *pPlayer )
pPlayer->pev->flags &= ~FL_SPECTATOR;
pPlayer->pev->movetype = MOVETYPE_WALK;
pPlayer->Spawn();
CLIENT_COMMAND( pPlayer->edict(), "touch_show _coopm*\n" );
if( mp_coop.value )
CLIENT_COMMAND( pPlayer->edict(), "touch_show _coopm*\n" );
}
@ -256,6 +258,8 @@ void UTIL_CoopKickPlayer(CBaseEntity *pPlayer)
// find last slot
for( i = 0; badlist[i]; i++ );
if( i > 254 )
return;
badlist[i] = strdup( name );
}