From: Matthijs Kooijman Date: Mon, 11 Jun 2007 08:20:48 +0000 (+0200) Subject: * Ifdef parts of Kernel::Execute back in, so we have a game loop again :-) X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=commitdiff_plain;h=784aa42247545bf80768602a32fbad922bb7d4c3 * Ifdef parts of Kernel::Execute back in, so we have a game loop again :-) --- 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; }