Skip to content

Commit 0b9fbd6

Browse files
authored
make the "switch ghost timer" cheat display shmup::curtime instead of turn count in shmup
1 parent f061dd6 commit 0b9fbd6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

debug.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,14 @@ vector<cheatkey> cheats = {
246246
cheatkey{'G'-64, "switch ghost timer", [] {
247247
timerghost = !timerghost;
248248
cheater++;
249-
addMessage(XLAT("turn count = %1 last exploration = %2 ghost timer = %3",
250-
its(turncount), its(lastexplore), ONOFF(timerghost)));
249+
if(shmup::on) {
250+
addMessage(XLAT("in-game time = %1 last exploration = %2 ghost timer = %3",
251+
its(shmup::curtime), its(lastexplore), ONOFF(timerghost)));
252+
}
253+
else {
254+
addMessage(XLAT("turn count = %1 last exploration = %2 ghost timer = %3",
255+
its(turncount), its(lastexplore), ONOFF(timerghost)));
256+
}
251257
}},
252258
cheatkey{'G', "edit cell values", push_debug_screen},
253259
cheatkey{'L'-64, "cell info", [] {

0 commit comments

Comments
 (0)