mirror of https://github.com/FWGS/hlsdk-xash3d
Fix little coop bugs
This commit is contained in:
parent
edb78b4e0e
commit
473eb94e96
|
@ -214,7 +214,9 @@ void UTIL_SpawnPlayer( CBasePlayer *pPlayer )
|
||||||
pPlayer->pev->flags &= ~FL_SPECTATOR;
|
pPlayer->pev->flags &= ~FL_SPECTATOR;
|
||||||
pPlayer->pev->movetype = MOVETYPE_WALK;
|
pPlayer->pev->movetype = MOVETYPE_WALK;
|
||||||
pPlayer->Spawn();
|
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
|
// find last slot
|
||||||
for( i = 0; badlist[i]; i++ );
|
for( i = 0; badlist[i]; i++ );
|
||||||
|
if( i > 254 )
|
||||||
|
return;
|
||||||
|
|
||||||
badlist[i] = strdup( name );
|
badlist[i] = strdup( name );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue