commit bd6cec70dfff90b4e2c22793ac28b2eb23c1c103
Author: nukeykt <alexeytf2@icloud.com>
AuthorDate: Fri Jun 10 13:08:21 2016 +0900
Commit: nukeykt <alexeytf2@icloud.com>
CommitDate: Fri Jun 10 13:08:21 2016 +0900
doom: Fix automap cheat handling when emulating older EXEs.
---
src/doom/am_map.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/doom/am_map.c b/src/doom/am_map.c
index 76acd8d4..004b232a 100644
--- a/src/doom/am_map.c
+++ b/src/doom/am_map.c
@@ -697,10 +697,11 @@ 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)