Skip to content

Commit

Permalink
Merge pull request #728 from nukeykt/retailfix
Browse files Browse the repository at this point in the history
doom: Fix automap cheat handling when emulating older EXEs.
  • Loading branch information
chungy committed Jun 10, 2016
2 parents 1be6c76 + 4ce27fe commit 010e52f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/doom/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,11 +697,12 @@ AM_Responder
rc = false;
}

if (!deathmatch && cht_CheckCheat(&cheat_amap, ev->data2))
{
rc = false;
cheating = (cheating+1) % 3;
}
if ((!deathmatch || gameversion <= exe_doom_1_8)
&& cht_CheckCheat(&cheat_amap, ev->data2))
{
rc = false;
cheating = (cheating + 1) % 3;
}
}
else if (ev->type == ev_keyup)
{
Expand Down

0 comments on commit 010e52f

Please sign in to comment.