From b7e31e8b7ce8f470a269c6bc17e6525c6f3a4d50 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 25 Apr 2016 08:48:39 -0400 Subject: fixed bugs --- src/ui.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/ui.cpp') 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) { -- cgit v1.2.3