mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 14:45:12 +00:00
fixed "lastexplore" not getting set to "shmup::curtime" when enabling the map editor in shmup
This commit is contained in:
@@ -168,7 +168,7 @@ vector<cheatkey> cheats = {
|
|||||||
cheatkey{'R'-64, "advance the rose wave", buildRosemap},
|
cheatkey{'R'-64, "advance the rose wave", buildRosemap},
|
||||||
#if CAP_EDIT
|
#if CAP_EDIT
|
||||||
cheatkey{'A', "start the Map Editor", [] {
|
cheatkey{'A', "start the Map Editor", [] {
|
||||||
lastexplore = turncount;
|
lastexplore = shmup::on ? shmup::curtime : turncount;
|
||||||
pushScreen(mapeditor::showMapEditor);
|
pushScreen(mapeditor::showMapEditor);
|
||||||
}},
|
}},
|
||||||
cheatkey{'A'-64, "start the Vector Graphics Editor", [] {
|
cheatkey{'A'-64, "start the Vector Graphics Editor", [] {
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ EX void showCreative() {
|
|||||||
dialog::cheat_if_confirmed([] {
|
dialog::cheat_if_confirmed([] {
|
||||||
cheater++;
|
cheater++;
|
||||||
pushScreen(mapeditor::showMapEditor);
|
pushScreen(mapeditor::showMapEditor);
|
||||||
lastexplore = turncount;
|
lastexplore = shmup::on ? shmup::curtime : turncount;
|
||||||
addMessage(XLAT("You activate your terraforming powers!"));
|
addMessage(XLAT("You activate your terraforming powers!"));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user