Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/teamcomm/net/logging/LogYamlLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public KindConstructor(final String kind) {
*/
static void load(final File file, final Deque<LogReplayTask.LoggedObject> queue) throws IOException {
final LoaderOptions options = new LoaderOptions();
options.setCodePointLimit(67108864);
options.setCodePointLimit(2147483647);
new LogYamlLoader(options).parse(file, queue);
}

Expand Down Expand Up @@ -188,8 +188,13 @@ private void parse(final File file, final Deque<LogReplayTask.LoggedObject> queu
baseTime = time;
recording = true;
}
queue.addLast(new LogReplayTask.LoggedObject(time - baseTime + recordedTime, message));
// Create a copy for the log.
final GameControlData copy = new GameControlData();
copy.fromByteArray(ByteBuffer.wrap(data.toByteArray().array()));
queue.addLast(new LogReplayTask.LoggedObject(time - baseTime + recordedTime, copy, message));
} else if (recording) { // Ending the current section?
// end section signal
queue.addLast(new LogReplayTask.LoggedObject(time - baseTime + recordedTime, null, 14383421));
recordedTime += time - baseTime;
recording = false;
}
Expand Down