From 16bca58803c5ff76de20889bc064f22e5305b9ed Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Mon, 22 Feb 2021 16:28:34 +0100 Subject: blinking cursor and fix net --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.c') 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++; -- cgit v1.2.3-54-g00ecf