mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
remove kills percent from level stats widget (#1343)
* remove kills percent from level stats widget Other ports don't have this and we have been asked to remove it on the forums. * fix three-lines case
This commit is contained in:
parent
80145d6e6c
commit
ae4fee7de3
@ -1093,7 +1093,7 @@ static void HU_widget_build_monsec(void)
|
|||||||
char kills_str[HU_MAXLINELENGTH];
|
char kills_str[HU_MAXLINELENGTH];
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|
||||||
int kills = 0, kills_color, kills_percent, kills_percent_color;
|
int kills = 0, kills_color;
|
||||||
int items = 0, items_color;
|
int items = 0, items_color;
|
||||||
int secrets = 0, secrets_color;
|
int secrets = 0, secrets_color;
|
||||||
|
|
||||||
@ -1121,8 +1121,6 @@ static void HU_widget_build_monsec(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
kills_color = (kills - extrakills >= totalkills) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
kills_color = (kills - extrakills >= totalkills) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
||||||
kills_percent_color = (kills >= totalkills) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
|
||||||
kills_percent = (totalkills == 0) ? 100 : (kills * 100 / totalkills);
|
|
||||||
items_color = (items >= totalitems) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
items_color = (items >= totalitems) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
||||||
secrets_color = (secrets >= totalsecret) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
secrets_color = (secrets >= totalsecret) ? '0'+CR_BLUE : '0'+CR_GRAY;
|
||||||
|
|
||||||
@ -1147,8 +1145,6 @@ static void HU_widget_build_monsec(void)
|
|||||||
|
|
||||||
if (hud_threelined_widgets)
|
if (hud_threelined_widgets)
|
||||||
{
|
{
|
||||||
M_snprintf(hud_monsecstr + offset, sizeof(hud_monsecstr) - offset,
|
|
||||||
" \x1b%c%d%%", kills_percent_color, kills_percent);
|
|
||||||
HUlib_add_string_to_cur_line(&w_monsec, hud_monsecstr);
|
HUlib_add_string_to_cur_line(&w_monsec, hud_monsecstr);
|
||||||
|
|
||||||
M_snprintf(hud_monsecstr, sizeof(hud_monsecstr),
|
M_snprintf(hud_monsecstr, sizeof(hud_monsecstr),
|
||||||
@ -1162,8 +1158,7 @@ static void HU_widget_build_monsec(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
M_snprintf(hud_monsecstr + offset, sizeof(hud_monsecstr) - offset,
|
M_snprintf(hud_monsecstr + offset, sizeof(hud_monsecstr) - offset,
|
||||||
" \x1b%c%d%% \x1b%cI \x1b%c%d/%d \x1b%cS \x1b%c%d/%d",
|
" \x1b%cI \x1b%c%d/%d \x1b%cS \x1b%c%d/%d",
|
||||||
kills_percent_color, kills_percent,
|
|
||||||
'0'+CR_RED, items_color, items, totalitems,
|
'0'+CR_RED, items_color, items, totalitems,
|
||||||
'0'+CR_RED, secrets_color, secrets, totalsecret);
|
'0'+CR_RED, secrets_color, secrets, totalsecret);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user