mirror of https://github.com/FWGS/hlsdk-xash3d
Fix little coop bugs
This commit is contained in:
parent
edb78b4e0e
commit
473eb94e96
|
@ -214,6 +214,8 @@ void UTIL_SpawnPlayer( CBasePlayer *pPlayer )
|
|||
pPlayer->pev->flags &= ~FL_SPECTATOR;
|
||||
pPlayer->pev->movetype = MOVETYPE_WALK;
|
||||
pPlayer->Spawn();
|
||||
|
||||
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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue