aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 8d3762d..e30993a 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1059,8 +1059,20 @@ EXIT:
currentWorld = ((Arena *)currentWorld)->exitArena(player);
if (tmp != currentWorld)
toggleBlackFast();
- } else if ((tmp = currentWorld->goInsideStructure(player)) != currentWorld)
- currentWorld = tmp;
+ } else {
+ auto tmpp = currentWorld->goInsideStructure(player);
+
+ if (tmpp.first != currentWorld) {
+ ui::toggleBlackFast();
+ ui::waitForCover();
+
+ currentWorld = tmpp.first;
+ if (tmpp.second)
+ player->loc.x = tmpp.second;
+
+ ui::toggleBlackFast();
+ }
+ }
break;
case SDLK_LSHIFT:
if (debug) {