build system revision
[carveJwlIkooP6JGAAIwe30JlM.git] / world_sfd.c
index 6d663dec54dc348e569bc39b420e07d5c7fdbf2a..fbe07d36d1230319c3e0671d6c2df9a6d4619b53 100644 (file)
@@ -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, &centiseconds );
+
+         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 );