- Timestamp:
- Feb 18, 2018, 5:23:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOB.cc
r11766 r11769 60 60 { 61 61 RegisterObject(SOB); 62 camera = nullptr;63 62 64 63 this->center_ = nullptr; … … 69 68 timeLeft_=400.0; 70 69 done_ = true; 70 newHighscore = false; 71 71 lvl_ = 1; 72 72 … … 79 79 SOB::~SOB() 80 80 { 81 if (this->isInitialized())82 this->cleanup();83 81 } 84 85 void SOB::cleanup()86 {87 camera = nullptr;88 }89 90 91 82 92 83 void SOB::start() … … 113 104 Gametype::start(); 114 105 115 if (figure_ != nullptr)116 {117 camera = figure_->getCamera();118 }119 120 106 } 121 107 122 108 void SOB::end() 123 109 { 124 cleanup();125 110 GSLevel::startMainMenu(); 126 111 Deathmatch::end(); … … 128 113 129 114 void SOB::restart() { 130 cleanup();131 132 115 // HACK - only method I found to simply reload the level 133 116 Game::getInstance().popState();
Note: See TracChangeset
for help on using the changeset viewer.