Fix worldmap background

Closes #193
This commit is contained in:
Alexander Batalov 2022-12-29 21:54:40 +03:00
parent 5922d15b1c
commit 9976728e04
1 changed files with 19 additions and 2 deletions

View File

@ -4475,11 +4475,26 @@ static int wmInterfaceInit()
const char* backgroundSoundFileName = wmGenData.isInCar ? "20car" : "23world"; const char* backgroundSoundFileName = wmGenData.isInCar ? "20car" : "23world";
_gsound_background_play_level_music(backgroundSoundFileName, 12); _gsound_background_play_level_music(backgroundSoundFileName, 12);
indicatorBarHide(); // CE: Hide entire interface, not just indicator bar, and disable tile
// engine.
interfaceBarHide();
tileDisable();
isoDisable(); isoDisable();
colorCycleDisable(); colorCycleDisable();
gameMouseSetCursor(MOUSE_CURSOR_ARROW); 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 worldmapWindowX = (screenGetWidth() - WM_WINDOW_WIDTH) / 2;
int worldmapWindowY = (screenGetHeight() - WM_WINDOW_HEIGHT) / 2; int worldmapWindowY = (screenGetHeight() - WM_WINDOW_HEIGHT) / 2;
wmBkWin = windowCreate(worldmapWindowX, worldmapWindowY, WM_WINDOW_WIDTH, WM_WINDOW_HEIGHT, _colorTable[0], WINDOW_MOVE_ON_TOP); 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.encounterTableId = -1;
wmGenData.encounterEntryId = -1; wmGenData.encounterEntryId = -1;
indicatorBarShow(); // CE: Enable tile engine and interface.
interfaceBarShow();
tileEnable();
isoEnable(); isoEnable();
colorCycleEnable(); colorCycleEnable();