From: terencehill Date: Wed, 27 Jul 2011 16:43:43 +0000 (+0200) Subject: Restore the WaypointSprite_UpdateSprites calls when capturing a cp X-Git-Tag: xonotic-v0.5.0~148^2~10^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ff407cfdee127549288cb13456a87ea6e3d18df;p=xonotic%2Fxonotic-data.pk3dir.git Restore the WaypointSprite_UpdateSprites calls when capturing a cp --- diff --git a/qcsrc/server/domination.qc b/qcsrc/server/domination.qc index d3dd9b73a..a4cee7471 100644 --- a/qcsrc/server/domination.qc +++ b/qcsrc/server/domination.qc @@ -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; ) {