summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2011-04-25 21:46:36 +0400
committerAndrey Nazarov <skuller@skuller.net>2011-04-26 16:00:37 +0400
commitf473086964c887421a3826ed0c242e726e0291d4 (patch)
treeccf55a935b0e9cf1c7164c685a8f0c524063359d /src/common.c
parentc8a0069ea58669e7adc828d1c2fc1a179f21e247 (diff)
Don't call Sys_DebugBreak on recursive error unless debugging.
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index f24ae5e..371d9d5 100644
--- a/src/common.c
+++ b/src/common.c
@@ -465,7 +465,9 @@ void Com_Error( error_type_t code, const char *fmt, ... ) {
// may not be entered recursively
if( com_errorEntered ) {
#ifdef _DEBUG
- Sys_DebugBreak();
+ if( com_debug_break && com_debug_break->integer ) {
+ Sys_DebugBreak();
+ }
#endif
Sys_Error( "recursive error after: %s", com_errorMsg );
}