]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/qc_stats
authorMario <mario.mario@y7mail.com>
Sun, 14 Jun 2020 20:18:10 +0000 (06:18 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 14 Jun 2020 20:18:10 +0000 (06:18 +1000)
1  2 
qcsrc/client/hud/panel/healtharmor.qc
qcsrc/client/view.qc
qcsrc/common/weapons/all.qc

index ecf4d20aa3b8b165e705be0cdbd77e81835b224d,d6bf99fd60494d31670feee9dff583e02920c0cb..f61711d2b34fba8e544c955dd9181dc4796e3682
@@@ -229,7 -229,7 +229,7 @@@ void HUD_HealthArmor(
                                HUD_Panel_DrawProgressBar(pos + health_offset, mySize, autocvar_hud_panel_healtharmor_progressbar_health, p_health/maxhealth, is_vertical, health_baralign, autocvar_hud_progressbar_health_color, autocvar_hud_progressbar_alpha * panel_fg_alpha * pain_health_alpha, DRAWFLAG_NORMAL);
                        }
                        if(autocvar_hud_panel_healtharmor_text)
-                               DrawNumIcon(pos + health_offset, mySize, floor(health), "health", is_vertical, health_iconalign, HUD_Get_Num_Color(health, maxhealth), 1);
 -                              DrawNumIcon(pos + health_offset, mySize, health, "health", is_vertical, health_iconalign, HUD_Get_Num_Color(health, maxhealth, true), 1);
++                              DrawNumIcon(pos + health_offset, mySize, floor(health), "health", is_vertical, health_iconalign, HUD_Get_Num_Color(health, maxhealth, true), 1);
                }
  
                //if(armor)
                        }
                        if(!autocvar_hud_panel_healtharmor_progressbar || p_armor)
                        if(autocvar_hud_panel_healtharmor_text)
-                               DrawNumIcon(pos + armor_offset, mySize, floor(armor), "armor", is_vertical, armor_iconalign, HUD_Get_Num_Color(armor, maxarmor), 1);
 -                              DrawNumIcon(pos + armor_offset, mySize, armor, "armor", is_vertical, armor_iconalign, HUD_Get_Num_Color(armor, maxarmor, true), 1);
++                              DrawNumIcon(pos + armor_offset, mySize, floor(armor), "armor", is_vertical, armor_iconalign, HUD_Get_Num_Color(armor, maxarmor, true), 1);
                }
  
                vector cell_size = mySize;
Simple merge
Simple merge