]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean it up some more
authorMario <mario.mario@y7mail.com>
Mon, 15 Apr 2013 05:02:32 +0000 (15:02 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 15 Apr 2013 05:02:32 +0000 (15:02 +1000)
qcsrc/server/monsters/lib/monsters.qc

index e89f3e9ab579fe437940e2310343b423aecb950c..6abddbb1f1bf0fc0dee498689270e42563fd077b 100644 (file)
@@ -908,7 +908,7 @@ void monster_hook_spawn()
                
        if(autocvar_g_monsters_healthbars)
        {
-               WaypointSprite_Spawn(self.netname, 0, 600, self, '0 0 1' * (self.maxs_z + 15), world, 0, self, sprite, FALSE, RADARICON_DANGER, ((self.team) ? Team_ColorRGB(self.team) : '1 0 0'));    
+               WaypointSprite_Spawn(strzone(strdecolorize(self.netname)), 0, 600, self, '0 0 1' * (self.maxs_z + 15), 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);
        }
@@ -938,7 +938,7 @@ float monster_initialize(string  net_name, float mon_id,
        if(monster_skill >= autocvar_g_monsters_skill_nightmare && (self.spawnflags & MONSTERSKILL_NOTNIGHTMARE)) { return FALSE; }
 
        if(self.netname == "")
-               self.netname = strzone((net_name == "") ? self.classname : net_name);
+               self.netname = ((net_name == "") ? self.classname : net_name);
        
        if(autocvar_g_monsters_giants_only)
                self.spawnflags |= MONSTERFLAG_GIANT;