home · contact · privacy
Server/py: Fix replay to turn 1.
[plomrogue] / plomrogue-server.py
index cd54c86965c46d9cdd87530f2948d15c8df61e16..0e42ceeccbaf3d0665a29cecf1e94aae1048a848 100755 (executable)
@@ -482,7 +482,7 @@ def command_makeworld(seed_string):
         }
     # generate fov map?
     # TODO: Generate things (player first, with updated memory)
-    atomic_write(io_db["path_out"], "NEW_WORLD\n", do_append=True)
+    strong_write(io_db["file_out"], "NEW_WORLD\n")
 
 
 def command_maplength(maplength_string):
@@ -800,7 +800,7 @@ commands_db = {
 
 """World state database. With sane default values."""
 world_db = {
-    "TURN": 1,
+    "TURN": 0,
     "SEED_MAP": 0,
     "SEED_RANDOMNESS": 0,
     "PLAYER_TYPE": 0,