diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-03-05 16:54:26 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-03-05 16:54:26 +0100 |
commit | d1af4269c4130d11d77f61f1a2ac8f3e249f72f2 (patch) | |
tree | 05618430db0951262bd22e7bbe77b663c3c0346f /main.c | |
parent | 02e55b0647eb5c631e7d7669a13fd0d47ec26c15 (diff) |
unit generator in hud, minor fix in movement, % in view and cost weights
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |