From: Mario Date: Thu, 7 Mar 2013 00:56:56 +0000 (+1100) Subject: Fix pink waypoints when the monster is not in a team in teamplay modes X-Git-Tag: xonotic-v0.8.0~241^2^2~470 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=31c4a8d484f5fe066c965a4a90e46a73bf8a08df;p=xonotic%2Fxonotic-data.pk3dir.git Fix pink waypoints when the monster is not in a team in teamplay modes --- diff --git a/qcsrc/server/monsters/lib/monsters.qc b/qcsrc/server/monsters/lib/monsters.qc index cc362e712..9ce62c9c4 100644 --- a/qcsrc/server/monsters/lib/monsters.qc +++ b/qcsrc/server/monsters/lib/monsters.qc @@ -723,7 +723,7 @@ void monster_hook_spawn() if(autocvar_g_monsters_healthbars) { - WaypointSprite_Spawn(self.netname, 0, 600, self, '0 0 1' * self.sprite_height, world, 0, self, sprite, FALSE, RADARICON_DANGER, ((teamplay) ? Team_ColorRGB(self.team) : '1 0 0')); + WaypointSprite_Spawn(self.netname, 0, 600, self, '0 0 1' * self.sprite_height, world, 0, self, sprite, FALSE, RADARICON_DANGER, ((self.team) ? Team_ColorRGB(self.team) : '1 0 0')); WaypointSprite_UpdateMaxHealth(self.sprite, self.max_health); WaypointSprite_UpdateHealth(self.sprite, self.health); }