- Con_Printf ("Engine Error: %s\n", string);
-
-#ifdef WIN32
- MessageBox(NULL, string, "Engine Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
-#endif
+ Con_Printf(CON_ERROR "Engine Error: %s\n", string);
+
+ if(!nocrashdialog)
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Engine Error", string, NULL);