Skip to content

Commit 9976728

Browse files
committed
Fix worldmap background
Closes #193
1 parent 5922d15 commit 9976728

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/worldmap.cc

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4475,11 +4475,26 @@ static int wmInterfaceInit()
44754475
const char* backgroundSoundFileName = wmGenData.isInCar ? "20car" : "23world";
44764476
_gsound_background_play_level_music(backgroundSoundFileName, 12);
44774477

4478-
indicatorBarHide();
4478+
// CE: Hide entire interface, not just indicator bar, and disable tile
4479+
// engine.
4480+
interfaceBarHide();
4481+
tileDisable();
44794482
isoDisable();
44804483
colorCycleDisable();
44814484
gameMouseSetCursor(MOUSE_CURSOR_ARROW);
44824485

4486+
// CE: Clear map window.
4487+
windowFill(gIsoWindow,
4488+
0,
4489+
0,
4490+
windowGetWidth(gIsoWindow),
4491+
windowGetHeight(gIsoWindow),
4492+
_colorTable[0]);
4493+
windowRefresh(gIsoWindow);
4494+
4495+
// CE: Stop all animations.
4496+
animationStop();
4497+
44834498
int worldmapWindowX = (screenGetWidth() - WM_WINDOW_WIDTH) / 2;
44844499
int worldmapWindowY = (screenGetHeight() - WM_WINDOW_HEIGHT) / 2;
44854500
wmBkWin = windowCreate(worldmapWindowX, worldmapWindowY, WM_WINDOW_WIDTH, WM_WINDOW_HEIGHT, _colorTable[0], WINDOW_MOVE_ON_TOP);
@@ -4813,7 +4828,9 @@ static int wmInterfaceExit()
48134828
wmGenData.encounterTableId = -1;
48144829
wmGenData.encounterEntryId = -1;
48154830

4816-
indicatorBarShow();
4831+
// CE: Enable tile engine and interface.
4832+
interfaceBarShow();
4833+
tileEnable();
48174834
isoEnable();
48184835
colorCycleEnable();
48194836

0 commit comments

Comments
 (0)