Changeset 5875 for code/branches/core5/src/libraries/core/Game.cc
- Timestamp:
- Oct 4, 2009, 11:05:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/Game.cc
r5868 r5875 523 523 void Game::loadGraphics() 524 524 { 525 if (!GameMode:: bShowsGraphics_s)525 if (!GameMode::showsGraphics()) 526 526 { 527 527 core_->loadGraphics(); 528 528 Loki::ScopeGuard graphicsUnloader = Loki::MakeObjGuard(*this, &Game::unloadGraphics); 529 GameMode::bShowsGraphics_s = true;530 529 531 530 // Construct all the GameStates that require graphics … … 548 547 void Game::unloadGraphics() 549 548 { 550 if (GameMode:: bShowsGraphics_s)549 if (GameMode::showsGraphics()) 551 550 { 552 551 // Destroy all the GameStates that require graphics … … 560 559 561 560 core_->unloadGraphics(); 562 GameMode::bShowsGraphics_s = false;563 561 } 564 562 }
Note: See TracChangeset
for help on using the changeset viewer.