home · contact · privacy
Server: Fix bug of deleting record file upon replaying it.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 4 Jul 2014 21:36:33 +0000 (23:36 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 4 Jul 2014 21:36:33 +0000 (23:36 +0200)
src/server/init.c

index 219223ba5e0ba7dc39ef1573443836e4aea4cf3d..624d800f6db17a0492922fc1aba7fe867fb66f57 100644 (file)
@@ -148,7 +148,7 @@ extern void remake_world()
     {
         t->fov_map = t->lifepoints ? build_fov_map(t) : NULL;
     }
-    if (!access(s[PATH_RECORD], F_OK))
+    if (!world.replay && !access(s[PATH_RECORD], F_OK))
     {
         exit_trouble(unlink(s[PATH_RECORD]), f_name, "unlink()");
     }