From 784aa42247545bf80768602a32fbad922bb7d4c3 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 11 Jun 2007 10:20:48 +0200 Subject: [PATCH] * Ifdef parts of Kernel::Execute back in, so we have a game loop again :-) --- ABM2/Engine/Kernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ABM2/Engine/Kernel.cpp b/ABM2/Engine/Kernel.cpp index 12afa65..7638ab1 100755 --- a/ABM2/Engine/Kernel.cpp +++ b/ABM2/Engine/Kernel.cpp @@ -27,6 +27,7 @@ int CKernel::Execute() { #ifdef WIN32 MSG msg; +#endif // WIN32 while(taskList.size()) { @@ -35,11 +36,13 @@ int CKernel::Execute() //DWORD starting_point = GetTickCount(); +#ifdef WIN32 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } +#endif // WIN32 std::list< CMMPointer >::iterator it, thisIt; @@ -70,7 +73,6 @@ int CKernel::Execute() CProfileSample::Output(); #endif } -#endif // WIN32 return 0; } -- 2.30.2