return 1;
}
+static highscore_record *highscore_find_user_record( u64 playerid, u32 trackid )
+{
+ struct highscore_system *sys = &highscore_system;
+
+ highscore_track_table *table = &sys->dbheader.tracks[trackid];
+ highscore_record temp;
+ temp.playerid = playerid;
+
+ aatree_ptr find =
+ aatree_find( &sys->aainfo_playerid, table->root_playerid, &temp );
+
+ if( find == AATREE_PTR_NIL )
+ return NULL;
+
+ return aatree_get_data( &sys->aainfo_playerid, find );
+}
+
static aatree_ptr highscores_push_record( highscore_record *record )
{
struct highscore_system *sys = &highscore_system;
highscore_strl( line+3, inf->nickname, 10 );
}
- u16 miliseconds = record->time,
- seconds = miliseconds / 100,
- minutes = seconds / 60;
+ u16 centiseconds = record->time,
+ seconds = centiseconds / 100,
+ minutes = seconds / 60;
- miliseconds %= 100;
+ centiseconds %= 100;
seconds %= 60;
minutes %= 60;
line[15] = ':';
highscore_intr( line+16, seconds, 2, '0' );
line[18] = '.';
- highscore_intr( line+19, miliseconds, 2, '0' );
+ highscore_intr( line+19, centiseconds, 2, '0' );
/* Score */
- highscore_intl( line+22, record->time, 5 );
+ highscore_intl( line+22, record->points, 5 );
it = aatree_next( &sys->aainfo_time, it );
}
}