1
0
forked from 0ad/0ad

Fix for lighting settings not loading from map files.

This was SVN commit r898.
This commit is contained in:
notpete 2004-08-04 21:03:53 +00:00
parent 7d9f2f8d04
commit 8a77473ef0

View File

@ -8,9 +8,14 @@ PSRETURN CGame::Initialize(CGameAttributes *pAttribs)
{
try
{
// RC, 040804 - GameView needs to be initialised before World, otherwise GameView initialisation
// overwrites anything stored in the map file that gets loaded by CWorld::Initialize with default
// values. At the minute, it's just lighting settings, but could be extended to store camera position.
// Storing lighting settings in the gameview seems a little odd, but it's no big deal; maybe move it at
// some point to be stored in the world object?
m_GameView.Initialize(pAttribs);
m_World.Initialize(pAttribs);
m_Simulation.Initialize(pAttribs);
m_GameView.Initialize(pAttribs);
}
catch (PSERROR_Game e)
{