aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-22 16:28:34 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-22 16:29:15 +0100
commit16bca58803c5ff76de20889bc064f22e5305b9ed (patch)
treea0d154e84071677d1bd76a07fc8e4dc771c1f5a0 /main.c
parent02c89fceeb915e31b36dd4acb4218ccd913b2ce8 (diff)
blinking cursor and fix net
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 0e4f77d..89e5edd 100644
--- a/main.c
+++ b/main.c
@@ -101,7 +101,8 @@ int main( int argc, char* args[] ) {
hud _hud;
hud_init(&gs, &_hud, &textd);
_hud.og.army_listlen = info_army_get_list(_hud.og.army_list);
- info_load_army(gst.army_bp+0, _hud.og.army_list[0]);
+ if (_hud.og.army_listlen > 0)
+ info_load_army(gst.army_bp+0, _hud.og.army_list[0]);
info_load_playername(_hud.og.playername);
float mlast[2] = {0, 0};
@@ -223,7 +224,8 @@ int main( int argc, char* args[] ) {
SDL_SetTextureColorMod(txsmall, 0, 0, 0);
}
- hud_render(&_hud, rend, &textd, &mkb, &info, txsprites);
+ hud_render(&_hud, rend, &textd, &mkb, &info, txsprites, &gst,
+ tot_time);
SDL_RenderPresent(rend);
frames++;