console window now hidden under w32 and fixed bug which would prevent loading of the last level
parent
1a0da37a4c
commit
083617ea64
|
@ -363,7 +363,7 @@ void Model::ProceedToNextLevel () {
|
|||
Engine::LogDebug ("Proceeding to next level %d", mCurrentLevelIndex + 1);
|
||||
mCurrentLevelIndex++;
|
||||
|
||||
if (mCurrentLevelIndex + 1 == mLevelList.size()) {
|
||||
if (mCurrentLevelIndex == mLevelList.size()) {
|
||||
Engine::EventBasePtr gameover_event (new Engine::EventBase());
|
||||
gameover_event->mEventType = EventGameOver;
|
||||
QueueEvent (gameover_event);
|
||||
|
|
Loading…
Reference in New Issue