]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2563 "Spectator freecam collision problem with all players leaving/going to...
authorterencehill <piuntn@gmail.com>
Tue, 16 Mar 2021 18:55:54 +0000 (19:55 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 16 Mar 2021 18:55:54 +0000 (19:55 +0100)
qcsrc/server/client.qc

index 74592b62cb0972217162c135cc4d68b4fc3efa72..1c9b3060ddbaeaebfa9254233b80a2cbb5b1c5e6 100644 (file)
@@ -2347,6 +2347,8 @@ void ObserverOrSpectatorThink(entity this)
                                TRANSMUTE(Observer, this);
                                PutClientInServer(this);
                        }
+                       else
+                               this.would_spectate = false; // unable to spectate anyone
                        if (is_spec)
                                CS(this).impulse = 0;
                } else if (is_spec) {