Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Optimizing A rank emblem check.
  • Loading branch information
MainMemory committed Dec 13, 2015
1 parent 15d17f2 commit 9855048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SteamAchievements/SteamAchievements.cpp
Expand Up @@ -163,7 +163,7 @@ void SetEmblemCollected_r(SaveFileData *savefile, signed int index)
}
else if (count == 65)
SteamUserStats()->IndicateAchievementProgress("NEW_ACHIEVEMENT_1_11", 65, 130);
if (savefile->Emblems[0] == 0xFF && savefile->Emblems[1] == 0xFF && savefile->Emblems[2] == 0xFF && savefile->Emblems[3] == 0xFF)
if (*(int*)savefile->Emblems == 0xFFFFFFFF)
SetAchievement("NEW_ACHIEVEMENT_1_7"); // The Fastest & Strongest
if (savefile->Emblems[0xC] == 0xFF && (savefile->Emblems[0xD] & 3) == 3)
SetAchievement("NEW_ACHIEVEMENT_1_8"); // Sub Game Master
Expand Down

0 comments on commit 9855048

Please sign in to comment.