ref: 010e52f99e74a6f85a808f3c79504d96841e2e11
parent: 1be6c76f0bd8fcfa29bc1d4a6d43cee98a53833e
parent: 4ce27fe5751a58189202b8ab6c3d11ef59ace56b
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Fri Jun 10 02:56:51 EDT 2016
Merge pull request #728 from nukeykt/retailfix doom: Fix automap cheat handling when emulating older EXEs.
--- a/src/doom/am_map.c
+++ b/src/doom/am_map.c
@@ -697,11 +697,12 @@
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)
{