From 6d4b9502cb9be552eeec848fc99c853d7914981a Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 7 Apr 2014 04:19:54 +0200 Subject: [PATCH] Fix build + use win32 message boxes if on windows (they are nicer for dealing with Lua errors) --- BBGE/Base.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/BBGE/Base.cpp b/BBGE/Base.cpp index 8dbb06c..21c660a 100644 --- a/BBGE/Base.cpp +++ b/BBGE/Base.cpp @@ -813,12 +813,11 @@ void cocoaMessageBox(const std::string &title, const std::string &msg); void messageBox(const std::string& title, const std::string &msg) { -#if SDL_VERSION_ATLEAST(2,0,0) - SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT, title.c_str(), - msg.c_str, NULL); -#else #ifdef BBGE_BUILD_WINDOWS - MessageBox (0,msg.c_str(),title.c_str(),MB_OK); + MessageBox (0,msg.c_str(),title.c_str(),MB_OK); +#elif SDL_VERSION_ATLEAST(2,0,0) + SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT, title.c_str(), + msg.c_str(), NULL); #elif defined(BBGE_BUILD_MACOSX) cocoaMessageBox(title, msg); #elif defined(BBGE_BUILD_UNIX) @@ -827,7 +826,6 @@ void messageBox(const std::string& title, const std::string &msg) #else #error Please define your platform. #endif -#endif } Vector getNearestPointOnLine(Vector a, Vector b, Vector c)