From 9976728e0454b7e1c06e632a50782cea59316742 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 29 Dec 2022 21:54:40 +0300 Subject: [PATCH] Fix worldmap background Closes #193 --- src/worldmap.cc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/worldmap.cc b/src/worldmap.cc index dfbbdbc..3eedaa4 100644 --- a/src/worldmap.cc +++ b/src/worldmap.cc @@ -4475,11 +4475,26 @@ static int wmInterfaceInit() const char* backgroundSoundFileName = wmGenData.isInCar ? "20car" : "23world"; _gsound_background_play_level_music(backgroundSoundFileName, 12); - indicatorBarHide(); + // CE: Hide entire interface, not just indicator bar, and disable tile + // engine. + interfaceBarHide(); + tileDisable(); isoDisable(); colorCycleDisable(); gameMouseSetCursor(MOUSE_CURSOR_ARROW); + // CE: Clear map window. + windowFill(gIsoWindow, + 0, + 0, + windowGetWidth(gIsoWindow), + windowGetHeight(gIsoWindow), + _colorTable[0]); + windowRefresh(gIsoWindow); + + // CE: Stop all animations. + animationStop(); + int worldmapWindowX = (screenGetWidth() - WM_WINDOW_WIDTH) / 2; int worldmapWindowY = (screenGetHeight() - WM_WINDOW_HEIGHT) / 2; wmBkWin = windowCreate(worldmapWindowX, worldmapWindowY, WM_WINDOW_WIDTH, WM_WINDOW_HEIGHT, _colorTable[0], WINDOW_MOVE_ON_TOP); @@ -4813,7 +4828,9 @@ static int wmInterfaceExit() wmGenData.encounterTableId = -1; wmGenData.encounterEntryId = -1; - indicatorBarShow(); + // CE: Enable tile engine and interface. + interfaceBarShow(); + tileEnable(); isoEnable(); colorCycleEnable();