aboutsummaryrefslogtreecommitdiff
path: root/hud/hud.c
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-25 16:36:55 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-25 16:36:55 +0100
commit2f345b1d6e130177efe4fa47d5b2bd11f352ce85 (patch)
tree3db145e227d3c90d683f0ca021f066e37c92154f /hud/hud.c
parente8bc1eab9a45b8893701e3acbd008fe259c53a4c (diff)
guillotined dead code
Diffstat (limited to 'hud/hud.c')
-rw-r--r--hud/hud.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hud/hud.c b/hud/hud.c
index 0e8b4d6..9c1d892 100644
--- a/hud/hud.c
+++ b/hud/hud.c
@@ -987,7 +987,7 @@ void hud_render_overlay_game (overlay_game *og, MKb *mkb,
float cost = 0;
for (int i=0; i<gst->army_bp[0].uslen; i++) {
- cost += info_unit_get_cost(info, &gst->army_bp[0].us[i].info);
+ cost += 10;
}
float cx = og->rect_army.x+5;
float cy = og->rect_army.y+5 + 30;
@@ -1102,7 +1102,7 @@ void hud_render_overlay_battle (overlay_battle *ob, MKb *mkb,
{
float cost = 0;
for (int i=0; i<gst->army_bp[0].uslen; i++) {
- cost += info_unit_get_cost(info, &gst->army_bp[0].us[i].info);
+ cost += 10;
}
float p[2] = { x+10, y+h };
char s[64]; sprintf(s, "COST: %.0f", cost);
@@ -1110,7 +1110,7 @@ void hud_render_overlay_battle (overlay_battle *ob, MKb *mkb,
float cost2 = 0;
for (int i=0; i<gst->army_bp[1].uslen; i++) {
- cost2 += info_unit_get_cost(info, &gst->army_bp[1].us[i].info);
+ cost2 += 10;
}
char p2[64]; sprintf(p2, "COST: %.0f", cost2);
float p2w = get_text_width(p2, t);
@@ -1122,7 +1122,7 @@ void hud_render_overlay_battle (overlay_battle *ob, MKb *mkb,
for (int i=0; i<gst->ar.uslen; i++) {
if (gst->ar.us[i].hp <= 0) continue;
if (gst->ar.us[i].owner == 0) {
- dps += info_unit_get_dps(info, &gst->ar.us[i].info);
+ dps += 3;
}
}
float p[2] = { x+10, y+h };
@@ -1133,7 +1133,7 @@ void hud_render_overlay_battle (overlay_battle *ob, MKb *mkb,
for (int i=0; i<gst->ar.uslen; i++) {
if (gst->ar.us[i].hp <= 0) continue;
if (gst->ar.us[i].owner == 1) {
- dps2 += info_unit_get_dps(info, &gst->ar.us[i].info);
+ dps2 += 3;
}
}
char p2[64]; sprintf(p2, "DAMAGE: %.0f", dps2);