mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-06-08 01:22:02 +00:00
Fix crash when adding a gem in entity init()
This commit is contained in:
parent
121e0f9e8a
commit
17b8cd2079
1 changed files with 12 additions and 17 deletions
|
@ -6460,9 +6460,18 @@ void Game::applyState()
|
|||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
if (liFlag == 100)
|
||||
*/
|
||||
worldMapRender = 0;
|
||||
dsq->continuity.worldMap.revealMap(sceneToLoad);
|
||||
|
||||
debugLog("Creating WorldMapRender");
|
||||
if(dsq->mod.isActive() && dsq->mod.mapRevealMethod != REVEAL_UNSPECIFIED)
|
||||
WorldMapRender::setRevealMethod(dsq->mod.mapRevealMethod);
|
||||
else
|
||||
WorldMapRender::setRevealMethod((WorldMapRevealMethod)dsq->user.video.worldMapRevealMethod);
|
||||
|
||||
worldMapRender = new WorldMapRender;
|
||||
addRenderObject(worldMapRender, LR_WORLDMAP);
|
||||
|
||||
|
||||
if (verbose) debugLog("Creating Avatar");
|
||||
avatar = new Avatar();
|
||||
|
@ -6526,8 +6535,6 @@ void Game::applyState()
|
|||
if (verbose) debugLog("...Done");
|
||||
backupSceneColor = sceneColor;
|
||||
|
||||
dsq->continuity.worldMap.revealMap(sceneName);
|
||||
|
||||
colorTest();
|
||||
|
||||
if (!warpAreaType.empty())
|
||||
|
@ -6656,18 +6663,6 @@ void Game::applyState()
|
|||
timerText->followCamera = 1;
|
||||
addRenderObject(timerText, LR_MINIMAP);
|
||||
|
||||
worldMapRender = 0;
|
||||
|
||||
if(dsq->mod.isActive() && dsq->mod.mapRevealMethod != REVEAL_UNSPECIFIED)
|
||||
WorldMapRender::setRevealMethod(dsq->mod.mapRevealMethod);
|
||||
else
|
||||
WorldMapRender::setRevealMethod((WorldMapRevealMethod)dsq->user.video.worldMapRevealMethod);
|
||||
|
||||
worldMapRender = new WorldMapRender;
|
||||
addRenderObject(worldMapRender, LR_WORLDMAP);
|
||||
// to hide minimap
|
||||
//miniMapRender->position += Vector(800,0);
|
||||
|
||||
sceneToLoad="";
|
||||
|
||||
if (!fromScene.empty())
|
||||
|
|
Loading…
Add table
Reference in a new issue