]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use a cleaner check for health
authorMario <mario@smbclan.net>
Wed, 13 Jul 2016 21:56:54 +0000 (07:56 +1000)
committerMario <mario@smbclan.net>
Wed, 13 Jul 2016 21:56:54 +0000 (07:56 +1000)
qcsrc/client/hud/panel/radar.qc

index 6794883aaede40f53fd1e8f769e6119af0df9235..ad0fa28f15765d9d4e2c2da5050849aed8894cdc 100644 (file)
@@ -355,7 +355,7 @@ void HUD_Radar()
 
        FOREACH_ENTITY_FLAGS(teamradar_icon, 0xFFFFFF, {
                if ( hud_panel_radar_mouse )
-               if ( it.health > 0 || !it.health )
+               if ( it.health >= 0 )
                if ( it.team == myteam+1 || gametype == MAPINFO_TYPE_RACE || !(serverflags & SERVERFLAG_TEAMPLAY) )
                {
                        vector coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(it.origin));