Fixed: Player could crouch while dead.

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

View file

@ -29,8 +29,8 @@ cleanexe:
@$(MAKE) -C . -f Makefile.mingw clean
clean:
@$(MAKE) -C tools/lemon -f Makefile.mgw clean
@$(MAKE) -C tools/re2c -f Makefile.mgw clean
@$(MAKE) -C tools/lemon -f Makefile clean
@$(MAKE) -C tools/re2c -f Makefile clean
@$(MAKE) -C tools/dehsupp -f Makefile clean
@$(MAKE) -C tools/makewad -f Makefile clean
@$(MAKE) -C tools/xlatcc -f Makefile clean

View file

@ -1,4 +1,5 @@
June 21, 2006 (Changes by Graf Zahl)
- Fixed: Player could crouch while dead.
- Fixed: The sidedef loader could allocate insufficient memory if a map
contained unused sidedefs.
- Fixed: Color control sequences were written to the log file. Since any

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;
}

View file

@ -1422,7 +1422,7 @@ void P_PlayerThink (player_t *player)
}
// Handle crouching
if (player->morphTics == 0 && !(dmflags & DF_NO_CROUCH))
if (player->morphTics == 0 && player->health > 0 && !(dmflags & DF_NO_CROUCH))
{
if (!(player->cheats & CF_TOTALLYFROZEN))
{