mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +00:00
Fixed: Player could crouch while dead.
SVN r209 (trunk)
This commit is contained in:
parent
14765bf64b
commit
e7f21912a5
4 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue