]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ignore the join delay for the host in local matches Mario/local_join_fix
authorMario <zacjardine@y7mail.com>
Tue, 11 Sep 2018 20:22:52 +0000 (06:22 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 11 Sep 2018 20:22:52 +0000 (06:22 +1000)
qcsrc/server/client.qc

index 8b70a633af9ebc59a394e1093684a34d852d7470..52fd58c9c886e17a0f9ce44513d948a0e7fad589 100644 (file)
@@ -2021,7 +2021,7 @@ 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 (this.netaddress != "local" && time < CS(this).jointime + MIN_SPEC_TIME) return false;
        if (!nJoinAllowed(this, this)) return false;
        if (teamplay && lockteams) return false;
        if (MUTATOR_CALLHOOK(ForbidSpawn, this)) return false;