]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Use full file path for temp replays (#19002)" (#20545)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Thu, 28 Sep 2023 10:49:49 +0000 (12:49 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2023 10:49:49 +0000 (20:49 +1000)
Content.Server/GameTicking/GameTicker.Replays.cs

index 42e2de02287b6c7861825bba555f3abed395ee2c..03cf748d09d350fe17d109667918016d1e06e8ca 100644 (file)
@@ -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}");
         }