Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2009, 2:42:37 PM (16 years ago)
Author:
rgrieder
Message:

Moved startup argument parsing (console, dedicated, server, client and standalone) from GSRoot.cc to Main.cc.
This allows to finally prevent GameState request while loading/unloading them (changed the code in Game.cc to enforce this).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/Game.cc

    r3356 r3358  
    390390        }
    391391
    392         //if (this->bChangingState_)
    393         //{
    394         //    COUT(2) << "Warning: Requesting GameStates while loading/unloading a GameState is illegal! Ignoring." << std::endl;
    395         //    return;
    396         //}
     392        if (this->bChangingState_)
     393        {
     394            COUT(2) << "Warning: Requesting GameStates while loading/unloading a GameState is illegal! Ignoring." << std::endl;
     395            return;
     396        }
    397397
    398398        shared_ptr<GameStateTreeNode> lastRequestedNode;
Note: See TracChangeset for help on using the changeset viewer.