mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
in roguevizslide, do not call t() again on GeometryReset with QUICKGEO
This commit is contained in:
parent
dc46f42fa8
commit
58510299de
@ -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();
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user