Fixed: Player could crouch while dead.

SVN r209 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-21 17:59:34 +00:00
commit e7f21912a5
4 changed files with 5 additions and 4 deletions

View file

@ -2255,7 +2255,7 @@ void Net_DoCommand (int type, byte **stream, int player)
break;
case DEM_CROUCH:
if (gamestate == GS_LEVEL && players[player].mo != NULL)
if (gamestate == GS_LEVEL && players[player].mo != NULL && players[player].health > 0)
{
players[player].crouching = players[player].crouchdir<0? 1 : -1;
}