projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system revision
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_sfd.c
diff --git
a/world_sfd.c
b/world_sfd.c
index b247ba6e778f5f173627704e38427b4f153c4eb9..fbe07d36d1230319c3e0671d6c2df9a6d4619b53 100644
(file)
--- 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 );
/* 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;
minutes = seconds / 60;
centiseconds %= 100;