diff options
Diffstat (limited to 'src/st_stuff.c')
-rw-r--r-- | src/st_stuff.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/st_stuff.c b/src/st_stuff.c index b8e636c5..b82504af 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -474,7 +474,7 @@ ST_Responder (event_t* ev) if (!netgame && gameskill != sk_nightmare) { // 'dqd' cheat for toggleable god mode - if (cht_CheckCheat(&cheat_god, ev->data1)) + if (cht_CheckCheat(&cheat_god, ev->data2)) { plyr->cheats ^= CF_GODMODE; if (plyr->cheats & CF_GODMODE) @@ -489,7 +489,7 @@ ST_Responder (event_t* ev) plyr->message = DEH_String(STSTR_DQDOFF); } // 'fa' cheat for killer fucking arsenal - else if (cht_CheckCheat(&cheat_ammonokey, ev->data1)) + else if (cht_CheckCheat(&cheat_ammonokey, ev->data2)) { plyr->armorpoints = deh_idfa_armor; plyr->armortype = deh_idfa_armor_class; @@ -503,7 +503,7 @@ ST_Responder (event_t* ev) plyr->message = DEH_String(STSTR_FAADDED); } // 'kfa' cheat for key full ammo - else if (cht_CheckCheat(&cheat_ammo, ev->data1)) + else if (cht_CheckCheat(&cheat_ammo, ev->data2)) { plyr->armorpoints = deh_idkfa_armor; plyr->armortype = deh_idkfa_armor_class; @@ -520,7 +520,7 @@ ST_Responder (event_t* ev) plyr->message = DEH_String(STSTR_KFAADDED); } // 'mus' cheat for changing music - else if (cht_CheckCheat(&cheat_mus, ev->data1)) + else if (cht_CheckCheat(&cheat_mus, ev->data2)) { char buf[3]; @@ -549,9 +549,9 @@ ST_Responder (event_t* ev) } } else if ( (gamemission == doom - && cht_CheckCheat(&cheat_noclip, ev->data1)) + && cht_CheckCheat(&cheat_noclip, ev->data2)) || (gamemission != doom - && cht_CheckCheat(&cheat_commercial_noclip,ev->data1))) + && cht_CheckCheat(&cheat_commercial_noclip,ev->data2))) { // Noclip cheat. // For Doom 1, use the idspipsopd cheat; for all others, use @@ -567,7 +567,7 @@ ST_Responder (event_t* ev) // 'behold?' power-up cheats for (i=0;i<6;i++) { - if (cht_CheckCheat(&cheat_powerup[i], ev->data1)) + if (cht_CheckCheat(&cheat_powerup[i], ev->data2)) { if (!plyr->powers[i]) P_GivePower( plyr, i); @@ -581,19 +581,19 @@ ST_Responder (event_t* ev) } // 'behold' power-up menu - if (cht_CheckCheat(&cheat_powerup[6], ev->data1)) + if (cht_CheckCheat(&cheat_powerup[6], ev->data2)) { plyr->message = DEH_String(STSTR_BEHOLD); } // 'choppers' invulnerability & chainsaw - else if (cht_CheckCheat(&cheat_choppers, ev->data1)) + else if (cht_CheckCheat(&cheat_choppers, ev->data2)) { plyr->weaponowned[wp_chainsaw] = true; plyr->powers[pw_invulnerability] = true; plyr->message = DEH_String(STSTR_CHOPPERS); } // 'mypos' for player position - else if (cht_CheckCheat(&cheat_mypos, ev->data1)) + else if (cht_CheckCheat(&cheat_mypos, ev->data2)) { static char buf[ST_MSGWIDTH]; sprintf(buf, "ang=0x%x;x,y=(0x%x,0x%x)", @@ -605,7 +605,7 @@ ST_Responder (event_t* ev) } // 'clev' change-level cheat - if (cht_CheckCheat(&cheat_clev, ev->data1)) + if (cht_CheckCheat(&cheat_clev, ev->data2)) { char buf[3]; int epsd; |