Disable rendering before switching scenes

This commit is contained in:
Vortrex
2023-02-12 13:10:03 -06:00
parent 8aa8e843b7
commit ba3c5533e7

View File

@@ -379,7 +379,17 @@ function changeScene(sceneName) {
natives.initCutscene(cutsceneName); natives.initCutscene(cutsceneName);
} }
} else if (getGame() == V_GAME_MAFIA_ONE) { } else if (getGame() == V_GAME_MAFIA_ONE) {
game.changeMap(sceneName); renderHUD = false;
renderHotBar = false;
renderInteriorLights = false;
renderItemActionDelay = false;
renderLabels = false;
renderLogo = false;
renderScoreBoard = false;
renderSmallGameMessage = false;
setTimeout(function () {
game.changeMap(sceneName, false);
}, 250);
} }
} }