use the hitdata for replay hitresults and show per player acc

This commit is contained in:
yugecin
2018-04-14 17:55:19 +02:00
parent 9af2b01657
commit 8fed11ba86
3 changed files with 47 additions and 136 deletions

View File

@@ -733,7 +733,7 @@ public class Game extends ComplexOpsuState {
float h = replayPlayback.getHeight();
ypos += h;
//if (h > 0f) {
replayPlayback.render(beatmap, hitResultOffset, displayContainer.renderDelta, g, ypos, trackPosition);
replayPlayback.render(displayContainer.renderDelta, g, ypos, trackPosition);
//}
}
@@ -1581,9 +1581,6 @@ public class Game extends ComplexOpsuState {
}
gameObjects = new GameObject[beatmap.objects.length];
for (ReplayPlayback replayPlayback : replays) {
replayPlayback.gameObjects = new GameObject[gameObjects.length];
}
playbackSpeed = PlaybackSpeed.NORMAL;
// reset game data
@@ -1630,9 +1627,6 @@ public class Game extends ComplexOpsuState {
} else if (hitObject.isSpinner()) {
gameObjects[i] = new Spinner(hitObject, this, data);
}
for (ReplayPlayback replayPlayback : replays) {
replayPlayback.gameObjects[i] = gameObjects[i].clone(replayPlayback.gdata);
}
} catch (Exception e) {
String message = String.format("Failed to create %s at index %d:\n%s", hitObject.getTypeName(), i, hitObject.toString());
Log.error(message, e);