summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-09 18:33:27 +0100
committerPaweł Redman <pawel.redman@gmail.com>2018-03-09 18:33:27 +0100
commitb330fb2bb6572409329acb6b9cf3176cb37badfa (patch)
tree71c7ec6c000e0e4fe46d1209850f6013098b4544
parent4a47546eeab6243cf96bd1e803a52c005861b167 (diff)
Never ERR_DROP on a dedicated server.
-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);