From b330fb2bb6572409329acb6b9cf3176cb37badfa Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 9 Mar 2018 18:33:27 +0100 Subject: Never ERR_DROP on a dedicated server. --- src/qcommon/common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qcommon') 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); -- cgit