]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reapply commit 5c9da9cf4 "fix Arena spectator status" that got lost in the merge...
authorterencehill <piuntn@gmail.com>
Tue, 5 Feb 2013 23:19:56 +0000 (00:19 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 5 Feb 2013 23:19:56 +0000 (00:19 +0100)
qcsrc/server/mutators/gamemode_arena.qc

index cc93dd3e4196e4d50bc4078f861d942576426bff..891514e2eac60ea90adb11f8b20237ec347647cd 100644 (file)
@@ -173,14 +173,17 @@ MUTATOR_HOOKFUNCTION(arena_reset_map_players)
 
 MUTATOR_HOOKFUNCTION(arena_MakePlayerObserver)
 {
-       self.frags = FRAGS_PLAYER;
        if(self.version_mismatch)
        {
+               self.frags = FRAGS_SPECTATOR;
                Spawnqueue_Unmark(self);
                Spawnqueue_Remove(self);
        }
        else
+       {
+               self.frags = FRAGS_LMS_LOSER;
                Spawnqueue_Insert(self);
+       }
        return 1;
 }