From 4ff407cfdee127549288cb13456a87ea6e3d18df Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 27 Jul 2011 18:43:43 +0200 Subject: [PATCH] Restore the WaypointSprite_UpdateSprites calls when capturing a cp --- qcsrc/server/domination.qc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; ) { -- 2.39.2