Game ranking screen fixes.
- Show retry button only when appropriate (e.g. not when viewing replays or when playing with "Auto" enabled). - Watching a (fake) "replay" with "Auto" enabled will actually just call the "retry" code now. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -738,6 +738,7 @@ public class Game extends BasicGameState {
|
||||
r.save();
|
||||
}
|
||||
ScoreData score = data.getScoreData(beatmap);
|
||||
data.setGameplay(!isReplay);
|
||||
|
||||
// add score to database
|
||||
if (!unranked && !isReplay)
|
||||
@@ -1111,6 +1112,8 @@ public class Game extends BasicGameState {
|
||||
GameMod.loadModState(replay.mods);
|
||||
}
|
||||
|
||||
data.setGameplay(true);
|
||||
|
||||
// check restart state
|
||||
if (restart == Restart.NEW) {
|
||||
// new game
|
||||
|
||||
Reference in New Issue
Block a user