diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 14:52:31 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 14:52:31 +0100 |
commit | 02c89fceeb915e31b36dd4acb4218ccd913b2ce8 (patch) | |
tree | 005c263cbbe49f299d02b5dd8ccdf7d0157ad19e /hud/hud_views.c | |
parent | d1dc6ddc035193ab6e2570f58b7e3a79fc335bce (diff) |
rename ingame template and army
Diffstat (limited to 'hud/hud_views.c')
-rw-r--r-- | hud/hud_views.c | 12 |
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; |