mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 17:41:10 +00:00
don't double print Sys_Error messages when the print function is still
the default
This commit is contained in:
parent
10e34e6d70
commit
2ad18a404b
1 changed files with 6 additions and 4 deletions
|
@ -414,12 +414,14 @@ Sys_Error (const char *error, ...)
|
||||||
|
|
||||||
Sys_Shutdown ();
|
Sys_Shutdown ();
|
||||||
|
|
||||||
// print the message again using the default error printer to increase the
|
if (sys_err_printf_function != Sys_ErrPrintf) {
|
||||||
// chances of the error being seen.
|
// print the message again using the default error printer to increase
|
||||||
|
// the chances of the error being seen.
|
||||||
#ifdef VA_LIST_IS_ARRAY
|
#ifdef VA_LIST_IS_ARRAY
|
||||||
VA_COPY (args, tmp_args);
|
VA_COPY (args, tmp_args);
|
||||||
#endif
|
#endif
|
||||||
Sys_ErrPrintf (error, args);
|
Sys_ErrPrintf (error, args);
|
||||||
|
}
|
||||||
|
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue