X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_sfd.c;h=fbe07d36d1230319c3e0671d6c2df9a6d4619b53;hb=a109f126d8adab622e38fbcc2d4281e75255246a;hp=6d663dec54dc348e569bc39b420e07d5c7fdbf2a;hpb=045a89deb1f4ef14c3fc543437fa826df4b6df94;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_sfd.c b/world_sfd.c index 6d663de..fbe07d3 100644 --- a/world_sfd.c +++ b/world_sfd.c @@ -142,8 +142,11 @@ static void world_sfd_compile_scores( struct leaderboard_cache *board, /* time */ vg_strnull( &str, buf, 100 ); - i32 centiseconds = vg_msg_getkvi32( &body, "time", 0 ), - seconds = centiseconds / 100, + + u32 centiseconds; + vg_msg_getkvintg( &body, "time", k_vg_msg_i32, ¢iseconds ); + + i32 seconds = centiseconds / 100, minutes = seconds / 60; centiseconds %= 100; @@ -298,7 +301,7 @@ static void world_sfd_init(void){ mdl_context mscoreboard; mdl_open( &mscoreboard, "models/rs_scoretext.mdl", vg_mem.scratch ); mdl_load_metadata_block( &mscoreboard, vg_mem.scratch ); - mdl_async_load_glmesh( &mscoreboard, &world_sfd.mesh_base ); + mdl_async_load_glmesh( &mscoreboard, &world_sfd.mesh_base, NULL ); mdl_load_mesh_block( &mscoreboard, vg_mem.scratch );