From bc218347a89036045ea0899b114728be7e9ede13 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 28 Sep 2023 12:49:49 +0200 Subject: [PATCH] Revert "Use full file path for temp replays (#19002)" (#20545) --- Content.Server/GameTicking/GameTicker.Replays.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameTicking/GameTicker.Replays.cs b/Content.Server/GameTicking/GameTicker.Replays.cs index 42e2de0228..03cf748d09 100644 --- a/Content.Server/GameTicking/GameTicker.Replays.cs +++ b/Content.Server/GameTicking/GameTicker.Replays.cs @@ -43,7 +43,9 @@ public sealed partial class GameTicker { var baseReplayPath = new ResPath(_cfg.GetCVar(CVars.ReplayDirectory)).ToRootedPath(); moveToPath = baseReplayPath / finalPath; - recordPath = new ResPath(tempDir) / finalPath; + + var fileName = finalPath.Filename; + recordPath = new ResPath(tempDir) / fileName; _sawmillReplays.Debug($"Replay will record in temporary position: {recordPath}"); } -- 2.51.2