Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 7:24:16 PM (13 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/libraries/core/Core.h

    r7401 r7870  
    8383            void resetLanguage();
    8484
     85            void updateLastLevelTimestamp();
     86            inline long long getLastLevelTimestamp() const
     87                { return this->lastLevelTimestamp_; }
     88
     89            void updateOgreConfigTimestamp();
     90            inline long long getOgreConfigTimestamp() const
     91                { return this->ogreConfigTimestamp_; }
     92
    8593        private:
    8694            Core(const Core&); //!< Don't use (undefined symbol)
     
    120128            bool                          bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called
    121129            bool                          bStartIOConsole_;            //!< Set to false if you don't want to use the IOConsole
     130            long long                     lastLevelTimestamp_;         ///< Timestamp when the last level was started
     131            long long                     ogreConfigTimestamp_;        ///< Timestamp wehen the ogre config level was modified
    122132
    123133            static Core*                  singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.