summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcommon/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c
index 2644a729..0e466d1b 100644
--- a/src/qcommon/common.c
+++ b/src/qcommon/common.c
@@ -283,6 +283,11 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
}
lastErrorTime = currentTime;
+ // ERR_DROP causes dedicated servers to enter an inoperable state
+ // instead of crashing completely and being restarted.
+ if (com_dedicated->integer > 0)
+ code = ERR_FATAL;
+
va_start (argptr,fmt);
Q_vsnprintf (com_errorMessage, sizeof(com_errorMessage),fmt,argptr);
va_end (argptr);