File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -954,9 +954,9 @@ static void rc_client_subset_get_user_game_summary(const rc_client_subset_info_t
954
954
}
955
955
else if (achievement -> public_ .type == RC_CLIENT_ACHIEVEMENT_TYPE_WIN )
956
956
{
957
- first_win_condition_unlock = (first_win_condition_unlock == 0 ) ?
958
- achievement -> public_ .unlock_time :
959
- first_win_condition_unlock ;
957
+ if (first_win_condition_unlock == 0 ||
958
+ ( achievement -> public_ . unlock_time > 0 && achievement -> public_ .unlock_time < first_win_condition_unlock ))
959
+ first_win_condition_unlock = achievement -> public_ . unlock_time ;
960
960
}
961
961
}
962
962
@@ -979,7 +979,7 @@ static void rc_client_subset_get_user_game_summary(const rc_client_subset_info_t
979
979
* is unlocked, or all progression achievements are unlocked and no there are no win condition achievements. */
980
980
summary -> beaten_time = 0 ;
981
981
if (num_progression_achievements > 0 && unlocked_progression_achievements == num_progression_achievements &&
982
- (num_win_condition_achievements == 0 || first_win_condition_unlock > 0 )) {
982
+ (num_win_condition_achievements == 0 || first_win_condition_unlock > 0 )) {
983
983
summary -> beaten_time = (num_win_condition_achievements == 0 ) ? last_progression_unlock : first_win_condition_unlock ;
984
984
}
985
985
You can’t perform that action at this time.
0 commit comments