Fix hard rock coordinate modifier in replays. (fixes #118)
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
e68bcf8abc
commit
a4898d01a7
|
@ -1037,9 +1037,9 @@ 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;
|
||||
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],
|
||||
|
|
|
@ -1103,6 +1103,13 @@ public class Game extends BasicGameState {
|
|||
|
||||
// restart the game
|
||||
if (restart != Restart.FALSE) {
|
||||
// load mods
|
||||
if (isReplay) {
|
||||
previousMods = GameMod.getModState();
|
||||
GameMod.loadModState(replay.mods);
|
||||
}
|
||||
|
||||
// check restart state
|
||||
if (restart == Restart.NEW) {
|
||||
// new game
|
||||
loadImages();
|
||||
|
@ -1187,10 +1194,6 @@ public class Game extends BasicGameState {
|
|||
|
||||
// load replay frames
|
||||
if (isReplay) {
|
||||
// load mods
|
||||
previousMods = GameMod.getModState();
|
||||
GameMod.loadModState(replay.mods);
|
||||
|
||||
// load initial data
|
||||
replayX = container.getWidth() / 2;
|
||||
replayY = container.getHeight() / 2;
|
||||
|
|
Loading…
Reference in New Issue
Block a user