#include "otpch.h" #include "player.h" #include "z_replay.h" void ZReplays::saveReplay(ZReplayData& replay) { replay.recording = false; replay.title = formatDate(time(0)); ZReplayData copy = replay; // clear player replay structure to be able to record again. replay.title.clear(); PacketQueue().swap(replay.packets); replayList.push_back(std::move(copy)); }