console window now hidden under w32 and fixed bug which would prevent loading of the last level
This commit is contained in:
parent
1a0da37a4c
commit
083617ea64
@ -363,7 +363,7 @@ void Model::ProceedToNextLevel () {
|
|||||||
Engine::LogDebug ("Proceeding to next level %d", mCurrentLevelIndex + 1);
|
Engine::LogDebug ("Proceeding to next level %d", mCurrentLevelIndex + 1);
|
||||||
mCurrentLevelIndex++;
|
mCurrentLevelIndex++;
|
||||||
|
|
||||||
if (mCurrentLevelIndex + 1 == mLevelList.size()) {
|
if (mCurrentLevelIndex == mLevelList.size()) {
|
||||||
Engine::EventBasePtr gameover_event (new Engine::EventBase());
|
Engine::EventBasePtr gameover_event (new Engine::EventBase());
|
||||||
gameover_event->mEventType = EventGameOver;
|
gameover_event->mEventType = EventGameOver;
|
||||||
QueueEvent (gameover_event);
|
QueueEvent (gameover_event);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "EntityFactory.h"
|
#include "EntityFactory.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@ -19,8 +19,8 @@ int main (int argc, char* argv[]) {
|
|||||||
cout << "Game Start" << endl;
|
cout << "Game Start" << endl;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
HWND hWnd = GetConsoleWindow();
|
HWND hWnd = GetConsoleWindow();
|
||||||
ShowWindow( hWnd, SW_HIDE );
|
ShowWindow( hWnd, SW_HIDE );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Engine::Engine engine;
|
Engine::Engine engine;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user