1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-16 21:57:15 +00:00

fixed "lastexplore" not getting set to "shmup::curtime" when enabling the map editor in shmup

This commit is contained in:
bacchelordoh
2025-10-10 23:01:04 -05:00
committed by GitHub
parent f061dd6cf6
commit 8faa789de7
2 changed files with 2 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ vector<cheatkey> cheats = {
cheatkey{'R'-64, "advance the rose wave", buildRosemap},
#if CAP_EDIT
cheatkey{'A', "start the Map Editor", [] {
lastexplore = turncount;
lastexplore = shmup::on ? shmup::curtime : turncount;
pushScreen(mapeditor::showMapEditor);
}},
cheatkey{'A'-64, "start the Vector Graphics Editor", [] {

View File

@@ -329,7 +329,7 @@ EX void showCreative() {
dialog::cheat_if_confirmed([] {
cheater++;
pushScreen(mapeditor::showMapEditor);
lastexplore = turncount;
lastexplore = shmup::on ? shmup::curtime : turncount;
addMessage(XLAT("You activate your terraforming powers!"));
});
});