Merge pull request #6306 from GameDragon2k/master

RetroAchievements reset addition buffer
This commit is contained in:
Twinaphex 2018-02-15 20:53:42 +01:00 committed by GitHub
commit d7ab78d923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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