From: Christian Heller Date: Fri, 4 Jul 2014 21:36:33 +0000 (+0200) Subject: Server: Fix bug of deleting record file upon replaying it. X-Git-Tag: tce~740 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/new_day?a=commitdiff_plain;h=c7460fb054ea581e093e5ecdb2950d3d157bd786;p=plomrogue Server: Fix bug of deleting record file upon replaying it. --- 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()"); }