This commit is contained in:
MatteoS 2015-08-09 17:41:29 +02:00
parent fee85c6a73
commit 35524a22ad

View File

@ -1037,10 +1037,13 @@ public class GameData {
* or {@code Grade.NULL} if no objects have been processed.
*/
private Grade getGrade() {
boolean silver = scoreData==null?
(GameMod.HIDDEN.isActive() || GameMod.FLASHLIGHT.isActive()):
(scoreData.mods&(GameMod.HIDDEN.getBit()|GameMod.FLASHLIGHT.getBit()))!=0;
return getGrade(
hitResultCount[HIT_300], hitResultCount[HIT_100],
hitResultCount[HIT_50], hitResultCount[HIT_MISS],
(GameMod.HIDDEN.isActive() || GameMod.FLASHLIGHT.isActive())
silver
);
}