ref: bd6cec70dfff90b4e2c22793ac28b2eb23c1c103
parent: 44fea0d80e7f7be8783e77303253ed40d492ce29
author: nukeykt <[email protected]>
date: Fri Jun 10 09:08:21 EDT 2016
doom: Fix automap cheat handling when emulating older EXEs.
--- a/src/doom/am_map.c
+++ b/src/doom/am_map.c
@@ -697,10 +697,11 @@
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)