From c7460fb054ea581e093e5ecdb2950d3d157bd786 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 4 Jul 2014 23:36:33 +0200
Subject: [PATCH] Server: Fix bug of deleting record file upon replaying it.

---
 src/server/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/init.c b/src/server/init.c
index 219223b..624d800 100644
--- a/src/server/init.c
+++ b/src/server/init.c
@@ -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()");
     }
-- 
2.30.2