summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-19 21:44:34 +0000
committerSamuel Villareal2010-09-19 21:44:34 +0000
commitffb95c420a3037021f352fa35268a9750bed37f5 (patch)
tree41507080542a54d347c8f0bba4935f14ccad8574 /src
parent76d654bb85659ba65cfa843ee24973fba60269cc (diff)
downloadchocolate-doom-ffb95c420a3037021f352fa35268a9750bed37f5.tar.gz
chocolate-doom-ffb95c420a3037021f352fa35268a9750bed37f5.tar.bz2
chocolate-doom-ffb95c420a3037021f352fa35268a9750bed37f5.zip
+ P_PlayerThink: Inventorydown bug fixed
Subversion-branch: /branches/strife-branch Subversion-revision: 2123
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_user.c45
1 files changed, 24 insertions, 21 deletions
diff --git a/src/strife/p_user.c b/src/strife/p_user.c
index 0de9699c..9704f788 100644
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -362,31 +362,34 @@ void P_PlayerThink (player_t* player)
P_PlayerInSpecialSector (player);
// villsa [STRIFE] handle inventory input
- if(!player->inventorydown)
+ if(cmd->buttons2 & (BT2_HEALTH|BT2_INVUSE|BT2_INVDROP))
{
- if(cmd->buttons2 & BT2_HEALTH)
- P_UseInventoryItem(player, SPR_FULL);
- else if(cmd->buttons2 & BT2_INVUSE)
- P_UseInventoryItem(player, cmd->inventory);
- else if(cmd->buttons2 & BT2_INVDROP)
- P_DropInventoryItem(player, cmd->inventory);
- else
+ if(!player->inventorydown)
{
- // villsa [STRIFE]
- if(workparm)
+ if(cmd->buttons2 & BT2_HEALTH)
+ P_UseInventoryItem(player, SPR_FULL);
+ else if(cmd->buttons2 & BT2_INVUSE)
+ P_UseInventoryItem(player, cmd->inventory);
+ else if(cmd->buttons2 & BT2_INVDROP)
+ P_DropInventoryItem(player, cmd->inventory);
+ else
{
- int cheat = player->cheats ^ 1;
- player->cheats ^= CF_NOCLIP;
-
- if(cheat & CF_NOCLIP)
- {
- player->message = DEH_String("No Clipping Mode ON");
- player->mo->flags |= MF_NOCLIP;
- }
- else
+ // villsa [STRIFE]
+ if(workparm)
{
- player->mo->flags &= ~MF_NOCLIP;
- player->message = DEH_String("No Clipping Mode OFF");
+ int cheat = player->cheats ^ 1;
+ player->cheats ^= CF_NOCLIP;
+
+ if(cheat & CF_NOCLIP)
+ {
+ player->message = DEH_String("No Clipping Mode ON");
+ player->mo->flags |= MF_NOCLIP;
+ }
+ else
+ {
+ player->mo->flags &= ~MF_NOCLIP;
+ player->message = DEH_String("No Clipping Mode OFF");
+ }
}
}