From: Christian Heller Date: Tue, 10 Mar 2015 19:31:35 +0000 (+0100) Subject: Fix replay mode overwriting save file on quit. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/cards/%7B%7Bcard_id%7D%7D/day?a=commitdiff_plain;h=210d6a216ecfd22d1ea8be5f80b2a38fb092a87b;p=plomrogue Fix replay mode overwriting save file on quit. --- diff --git a/roguelike-server b/roguelike-server index ffc75e6..98a92df 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1141,8 +1141,9 @@ def command_ping(): 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")