From 02c89fceeb915e31b36dd4acb4218ccd913b2ce8 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Mon, 22 Feb 2021 14:52:31 +0100 Subject: rename ingame template and army --- hud/hud_views.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hud/hud_views.c') diff --git a/hud/hud_views.c b/hud/hud_views.c index 046ba53..a58e058 100644 --- a/hud/hud_views.c +++ b/hud/hud_views.c @@ -373,13 +373,13 @@ void render_view_brain (SDL_Renderer* rend, txtd *t, int px, int py, void render_view_template (SDL_Renderer* rend, txtd *t, int px, int py, infos *info, int temp, int lvl) { - button b = { "edit", 4, { px, py } }; - render_button(rend, t, &b); - float wedit = get_text_width("edit", t); + { button b = { "edit", 4, { px, py } }; + render_button(rend, t, &b); } + float wedit = get_text_width("edit", t); - button b1 = { "place", 4, { px+wedit+2*4+5, py } }; - render_button(rend, t, &b1); - float wplace = get_text_width("place", t); + { button b = { "place", 4, { px+wedit+2*4+5, py } }; + render_button(rend, t, &b); } + float wplace = get_text_width("place", t); float pname[2] = { wplace+wedit+4*4+10+px, py+4 }; char *sname = info->templates[temp].name; -- cgit v1.2.3-54-g00ecf