Merge pull request #6300 from GameDragon2k/master

Small fix for certain RetroAchievement conditions.
This commit is contained in:
Twinaphex 2018-02-14 03:59:21 +01:00 committed by GitHub
commit a6539570a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1691,9 +1691,13 @@ static int cheevos_test_cond_set(const cheevos_condset_t *condset,
continue;
}
if ( (cond->req_hits != 0) &&
if ( (cheevos_locals.add_hits > 0) &&
(cond->req_hits != 0) &&
(cond->curr_hits + cheevos_locals.add_hits) >= cond->req_hits)
continue;
{
cheevos_locals.add_hits = 0;
continue;
}
cond_valid = cheevos_test_condition(cond);