]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix pink waypoints when the monster is not in a team in teamplay modes
authorMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 00:56:56 +0000 (11:56 +1100)
committerMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 00:56:56 +0000 (11:56 +1100)
qcsrc/server/monsters/lib/monsters.qc

index cc362e7125946d7263d4f9f9c2665f9d8e8bff96..9ce62c9c496ebcf5e0c421d00ad81da32bbf7aef 100644 (file)
@@ -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);
        }