From: Mario Date: Sun, 20 Jun 2021 23:26:36 +0000 (+1000) Subject: Count removal for idling as a forfeit in LMS, fixes #2600 X-Git-Tag: xonotic-v0.8.5~400 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=63c408dcb19d5e14be4ee312ea67b44a94459e45;p=xonotic%2Fxonotic-data.pk3dir.git Count removal for idling as a forfeit in LMS, fixes #2600 --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 7217c4b87..e0f0e2b19 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -2725,6 +2726,7 @@ void PlayerPostThink (entity this) Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_MOVETOSPEC_IDLING, this.netname, maxidle_time); if (this.caplayer) this.caplayer = 0; + this.lms_spectate_warning = 2; // TODO: mutator hook for players forcibly moved to spectator? PutObserverInServer(this); } else