]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Restore the WaypointSprite_UpdateSprites calls when capturing a cp
authorterencehill <piuntn@gmail.com>
Wed, 27 Jul 2011 16:43:43 +0000 (18:43 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 27 Jul 2011 16:43:43 +0000 (18:43 +0200)
qcsrc/server/domination.qc

index d3dd9b73a6a0f77f0958ef7a67ced21c12fe2390..a4cee747131100efe733169aa349c65b46defcd5 100644 (file)
@@ -129,6 +129,21 @@ void dompoint_captured ()
        self.delay = old_delay;
        self.team = old_team;
 
+       switch(self.goalentity.team)
+       {
+               case COLOR_TEAM1:
+                       WaypointSprite_UpdateSprites(self.sprite, "dom-red", "", "");
+                       break;
+               case COLOR_TEAM2:
+                       WaypointSprite_UpdateSprites(self.sprite, "dom-blue", "", "");
+                       break;
+               case COLOR_TEAM3:
+                       WaypointSprite_UpdateSprites(self.sprite, "dom-yellow", "", "");
+                       break;
+               case COLOR_TEAM4:
+                       WaypointSprite_UpdateSprites(self.sprite, "dom-pink", "", "");
+       }
+
        total_pps = 0, pps_red = 0, pps_blue = 0, pps_yellow = 0, pps_pink = 0;
        for(head = world; (head = find(head, classname, "dom_controlpoint")) != world; )
        {