From: Mario Date: Wed, 13 Jul 2016 21:56:54 +0000 (+1000) Subject: Use a cleaner check for health X-Git-Tag: xonotic-v0.8.2~700^2~68 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6e6c7d754b7c2db09347fe1b9bc24a9507930bdb;p=xonotic%2Fxonotic-data.pk3dir.git Use a cleaner check for health --- diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 6794883aa..ad0fa28f1 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -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));