Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2009, 4:33:32 PM (16 years ago)
Author:
rgrieder
Message:

small fixes with game states.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.cc

    r2850 r2854  
    143143    void GSGraphics::update(const Clock& time)
    144144    {
     145        if (this->getActivity().topState)
     146        {
     147            // This state can not 'survive' on its own.
     148            // Load a user interface therefore
     149            Game::getInstance().requestState("mainMenu");
     150        }
     151
    145152        uint64_t timeBeforeTick = time.getRealMicroseconds();
    146153
Note: See TracChangeset for help on using the changeset viewer.