Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 7:24:16 PM (14 years ago)
Author:
landauf
Message:

added feature: ogre config dialog keeps showing up on startup until the user loads a level the first time.

the reason is: if the user closes the game (or it crashes) before loading a level, there was maybe a problem with the ogre config, so we show the menu again to modify it.
if the user manages to start a level, at least the menu shows correctly, hence he can change the config in the orxonox settings from now on if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSLevel.cc

    r7854 r7870  
    3636#include "core/input/InputState.h"
    3737#include "core/input/KeyBinderManager.h"
     38#include "core/Core.h"
    3839#include "core/Game.h"
    3940#include "core/GameMode.h"
     
    140141        startFile_ = new XMLFile(LevelManager::getInstance().getDefaultLevel());
    141142        Loader::open(startFile_);
     143
     144        Core::getInstance().updateLastLevelTimestamp();
    142145    }
    143146
Note: See TracChangeset for help on using the changeset viewer.