]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Use full file path for temp replays (#19002)
authorMorb <14136326+Morb0@users.noreply.github.com>
Thu, 7 Sep 2023 03:56:33 +0000 (06:56 +0300)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 03:56:33 +0000 (13:56 +1000)
Content.Server/GameTicking/GameTicker.Replays.cs

index a9df6976471a3552b5df2a5b1ca3dbc416add02a..3254fb840dee09109536840d55d82bb16ec9ef9e 100644 (file)
@@ -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}");
         }