home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1452d43
)
Server: Fix bug of deleting record file upon replaying it.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 4 Jul 2014 21:36:33 +0000
(23:36 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 4 Jul 2014 21:36:33 +0000
(23:36 +0200)
src/server/init.c
patch
|
blob
|
history
diff --git
a/src/server/init.c
b/src/server/init.c
index 219223ba5e0ba7dc39ef1573443836e4aea4cf3d..624d800f6db17a0492922fc1aba7fe867fb66f57 100644
(file)
--- 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()");
}