From d1af4269c4130d11d77f61f1a2ac8f3e249f72f2 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Fri, 5 Mar 2021 16:54:26 +0100 Subject: unit generator in hud, minor fix in movement, % in view and cost weights --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5c7400b..c66cec0 100644 --- a/main.c +++ b/main.c @@ -99,11 +99,12 @@ int main( int argc, char* args[] ) { infos info; info_load(&info); + /* move to tests info_unit ugen; generate_unit(&info, &ugen, 10000); stats_unit base; stats_unit_compute(&info, &ugen, &base); stats_unit_printf(&info, &base); info_unit_printf(&ugen); - printf("COST: %.2f\n", stats_compute_cost(&info.cost_weights, &base)); + printf("COST: %.2f\n", stats_compute_cost(&info.cost_weights, &base));*/ gamestate gst; gst_init(&gst); @@ -180,7 +181,7 @@ int main( int argc, char* args[] ) { gst.army_bp+0, &gst.map_editor, &textd, &gst, &netc, &nets, sounds); - gst_process(&gst, &info, &fx, tot_time); + gst_process(&gst, &info, &mkb, &fx, tot_time); fx_process(&fx, tot_time); render = 1; -- cgit v1.2.3-54-g00ecf