aboutsummaryrefslogtreecommitdiff
path: root/hud/hud_views.c
diff options
context:
space:
mode:
Diffstat (limited to 'hud/hud_views.c')
-rw-r--r--hud/hud_views.c12
1 files changed, 6 insertions, 6 deletions
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;