only force death if player is alive
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3214 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -2613,9 +2613,12 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
|
||||
}
|
||||
|
||||
case SV_CHANGETEAM:
|
||||
cl->state.state = CS_DEAD;
|
||||
cl->state.respawn();
|
||||
sendf(-1, 1, "rii", SV_FORCEDEATH, cl->clientnum);
|
||||
if(cl->state.state==CS_ALIVE)
|
||||
{
|
||||
cl->state.state = CS_DEAD;
|
||||
cl->state.respawn();
|
||||
sendf(-1, 1, "rii", SV_FORCEDEATH, cl->clientnum);
|
||||
}
|
||||
break;
|
||||
|
||||
case SV_TRYSPAWN:
|
||||
|
||||
Reference in New Issue
Block a user