mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +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 ();
|
||||
|
||||
// print the message again using the default error printer to increase the
|
||||
// chances of the error being seen.
|
||||
if (sys_err_printf_function != Sys_ErrPrintf) {
|
||||
// print the message again using the default error printer to increase
|
||||
// the chances of the error being seen.
|
||||
#ifdef VA_LIST_IS_ARRAY
|
||||
VA_COPY (args, tmp_args);
|
||||
VA_COPY (args, tmp_args);
|
||||
#endif
|
||||
Sys_ErrPrintf (error, args);
|
||||
Sys_ErrPrintf (error, args);
|
||||
}
|
||||
|
||||
exit (1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue