From 63b6be263ca5233c13a047ed20950494b53602ba Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 6 Apr 2018 23:48:56 +0200 Subject: [PATCH] Don't allow immediate manual join too --- qcsrc/server/client.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index e0f7b979c..01b5055cd 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2130,9 +2130,11 @@ void PrintWelcomeMessage(entity this) } } +const int MIN_SPEC_TIME = 1; bool joinAllowed(entity this) { if (CS(this).version_mismatch) return false; + if (time < CS(this).jointime + MIN_SPEC_TIME) return false; if (!nJoinAllowed(this, this)) return false; if (teamplay && lockteams) return false; if (ShowTeamSelection(this)) return false; @@ -2563,7 +2565,6 @@ void PlayerPreThink (entity this) if (IS_REAL_CLIENT(this)) PrintWelcomeMessage(this); - local const int MIN_SPEC_TIME = 1; if (IS_PLAYER(this)) { if (IS_REAL_CLIENT(this) && time < CS(this).jointime + MIN_SPEC_TIME) error("Client can't be spawned as player on connection!"); -- 2.39.2