From 610a10fb85e03b88f6288f9328aaf9f00eacbae5 Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Thu, 7 Sep 2023 06:56:33 +0300 Subject: [PATCH] Use full file path for temp replays (#19002) --- Content.Server/GameTicking/GameTicker.Replays.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Content.Server/GameTicking/GameTicker.Replays.cs b/Content.Server/GameTicking/GameTicker.Replays.cs index a9df697647..3254fb840d 100644 --- a/Content.Server/GameTicking/GameTicker.Replays.cs +++ b/Content.Server/GameTicking/GameTicker.Replays.cs @@ -43,9 +43,7 @@ public sealed partial class GameTicker { var baseReplayPath = new ResPath(_cfg.GetCVar(CVars.ReplayDirectory)).ToRootedPath(); moveToPath = baseReplayPath / finalPath; - - var fileName = finalPath.Filename; - recordPath = new ResPath(tempDir) / fileName; + recordPath = new ResPath(tempDir) / finalPath; _sawmillReplays.Debug($"Replay will record in temporary position: {recordPath}"); } -- 2.51.2