1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

in roguevizslide, do not call t() again on GeometryReset with QUICKGEO

This commit is contained in:
Zeno Rogue 2020-04-07 17:15:40 +02:00
parent dc46f42fa8
commit 58510299de

View File

@ -133,7 +133,7 @@ template<class T> function<void(presmode)> roguevizslide(char c, const T& t) {
if(mode == 3 || mode == pmGeometry || mode == pmGeometryReset) {
rogueviz::close();
shmup::clearMonsters();
if(mode == pmGeometryReset) t();
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
}
slidecommand = "toggle the player";
@ -155,7 +155,7 @@ function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act)
if(mode == pmStop || mode == pmGeometry || mode == pmGeometryReset) {
rogueviz::close();
shmup::clearMonsters();
if(mode == pmGeometryReset) t();
if(mode == pmGeometryReset && !(slides[currentslide].flags & QUICKGEO)) t();
}
};