git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4784
d7cf8633-e32d-0410-b094-
e92efae38249
static int in_sys_error0 = 0;
static int in_sys_error1 = 0;
static int in_sys_error2 = 0;
static int in_sys_error0 = 0;
static int in_sys_error1 = 0;
static int in_sys_error2 = 0;
+ static int in_sys_error3 = 0;
va_start (argptr, error);
vsnprintf (text, sizeof (text), error, argptr);
va_end (argptr);
va_start (argptr, error);
vsnprintf (text, sizeof (text), error, argptr);
va_end (argptr);
+ Con_Printf ("Quake Error: %s\n", text);
+
// close video so the message box is visible, unless we already tried that
if (!in_sys_error0 && cls.state != ca_dedicated)
{
in_sys_error0 = 1;
// close video so the message box is visible, unless we already tried that
if (!in_sys_error0 && cls.state != ca_dedicated)
{
in_sys_error0 = 1;
- MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
- Con_Print ("Quake Error: ");
- Con_Print (text);
- Con_Print ("\n");
+ if (!in_sys_error3 && cls.state != ca_dedicated)
+ {
+ in_sys_error3 = true;
+ MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
+ }
if (!in_sys_error2)
{
in_sys_error2 = 1;
if (!in_sys_error2)
{
in_sys_error2 = 1;