home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix replay mode overwriting save file on quit.
[plomrogue]
/
roguelike-server
diff --git
a/roguelike-server
b/roguelike-server
index 344f5a5618f59f80ae521404587334a467dbca38..57f0b6c1bc737dd92c8ebd3e14fa9bca2697c662 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-1111,8
+1111,9
@@
def command_ping():
def command_quit():
"""Abort server process."""
def command_quit():
"""Abort server process."""
- save_world()
- atomic_write(io_db["path_record"], io_db["record_chunk"], do_append=True)
+ if None == opts.replay:
+ save_world()
+ atomic_write(io_db["path_record"], io_db["record_chunk"], do_append=True)
raise SystemExit("received QUIT command")
raise SystemExit("received QUIT command")