Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:22:03 PM (8 years ago)
Author:
landauf
Message:

use actual types instead of 'auto'. only exception is for complicated template types, e.g. when iterating over a map

File:
1 edited

Legend:

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

    r10821 r10916  
    612612        // Check if graphics is still required
    613613        bool graphicsRequired = false;
    614         for (auto & elem : loadedStates_)
    615             graphicsRequired |= elem->getInfo().bGraphicsMode;
     614        for (const std::shared_ptr<GameState>& state : loadedStates_)
     615            graphicsRequired |= state->getInfo().bGraphicsMode;
    616616        if (!graphicsRequired)
    617617            this->unloadGraphics(!this->bAbort_); // if abort is false, that means the game is still running while unloading graphics. in this case we load a graphics manager without renderer (to keep all necessary ogre instances alive)
Note: See TracChangeset for help on using the changeset viewer.