mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-06-08 09:31:58 +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
|
#endif
|
||||||
|
|
||||||
/*
|
worldMapRender = 0;
|
||||||
if (liFlag == 100)
|
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");
|
if (verbose) debugLog("Creating Avatar");
|
||||||
avatar = new Avatar();
|
avatar = new Avatar();
|
||||||
|
@ -6526,8 +6535,6 @@ void Game::applyState()
|
||||||
if (verbose) debugLog("...Done");
|
if (verbose) debugLog("...Done");
|
||||||
backupSceneColor = sceneColor;
|
backupSceneColor = sceneColor;
|
||||||
|
|
||||||
dsq->continuity.worldMap.revealMap(sceneName);
|
|
||||||
|
|
||||||
colorTest();
|
colorTest();
|
||||||
|
|
||||||
if (!warpAreaType.empty())
|
if (!warpAreaType.empty())
|
||||||
|
@ -6656,18 +6663,6 @@ void Game::applyState()
|
||||||
timerText->followCamera = 1;
|
timerText->followCamera = 1;
|
||||||
addRenderObject(timerText, LR_MINIMAP);
|
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="";
|
sceneToLoad="";
|
||||||
|
|
||||||
if (!fromScene.empty())
|
if (!fromScene.empty())
|
||||||
|
|
Loading…
Add table
Reference in a new issue