From: Mario Date: Sun, 14 Apr 2013 02:06:33 +0000 (+1000) Subject: Fix broken domination control point waypoint X-Git-Tag: xonotic-v0.7.0~65^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f777033b757d0166bfcf561227f72a7b52a3e34;p=xonotic%2Fxonotic-data.pk3dir.git Fix broken domination control point waypoint --- diff --git a/qcsrc/server/mutators/gamemode_domination.qc b/qcsrc/server/mutators/gamemode_domination.qc index 051eaa333..fc1902eaa 100644 --- a/qcsrc/server/mutators/gamemode_domination.qc +++ b/qcsrc/server/mutators/gamemode_domination.qc @@ -19,6 +19,7 @@ void dompoint_captured () { entity head; float old_delay, old_team, real_team; + string msg; // now that the delay has expired, switch to the latest team to lay claim to this point head = self.owner; @@ -74,8 +75,10 @@ void dompoint_captured () SUB_UseTargets (); self.delay = old_delay; self.team = old_team; + + msg = strzone(strdecolorize(strcat("dom-", Team_ColorName_Lower(self.goalentity.team)))); - WaypointSprite_UpdateSprites(self.sprite, strcat("dom-", Team_ColorName_Lower(self.goalentity.team)), "", ""); + WaypointSprite_UpdateSprites(self.sprite, msg, "", ""); 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; )