summaryrefslogtreecommitdiff
path: root/src/strife/st_stuff.c
diff options
context:
space:
mode:
authorJames Haley2011-02-06 17:38:54 +0000
committerJames Haley2011-02-06 17:38:54 +0000
commit17333436188f63319625b007489c7b70029bfaba (patch)
treeabccc36961eb03e46828c5a38f20eb501519f0f8 /src/strife/st_stuff.c
parentab144aa9d30a97f0c3a2d049d624c868aaba3af7 (diff)
downloadchocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.gz
chocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.bz2
chocolate-doom-17333436188f63319625b007489c7b70029bfaba.zip
Numerous fixes/adjustments: removed bodyque, restored "is turbo" (found
it in there after all), removed some dead code in p_dialog, added a 'default: break;' case in EV_VerticalDoor, initialize player_t::allegiance in P_SetupLevel, minor changes to EV_Teleport, 2nd-pass verification for p_tick, and big fixes in p_user.c including noclip cheat, viewz clipping against floor, air control thrust amount, and missing/incorrect else's. Subversion-branch: /branches/strife-branch Subversion-revision: 2250
Diffstat (limited to 'src/strife/st_stuff.c')
-rw-r--r--src/strife/st_stuff.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/strife/st_stuff.c b/src/strife/st_stuff.c
index cebc5bfc..1811ddfa 100644
--- a/src/strife/st_stuff.c
+++ b/src/strife/st_stuff.c
@@ -651,15 +651,21 @@ boolean ST_Responder(event_t* ev)
}
else if (cht_CheckCheat(&cheat_noclip, ev->data2))
{
- // [STRIFE] Verified unmodified, except no idspispopd shit:
+ // [STRIFE] Removed idspispopd, added NOCLIP flag setting/removal
// Noclip cheat - "ELVIS" (hah-hah :P )
plyr->cheats ^= CF_NOCLIP;
if (plyr->cheats & CF_NOCLIP)
+ {
plyr->message = DEH_String(STSTR_NCON);
+ plyr->mo->flags |= MF_NOCLIP;
+ }
else
+ {
plyr->message = DEH_String(STSTR_NCOFF);
+ plyr->mo->flags &= ~MF_NOCLIP;
+ }
}
// villsa [STRIFE]