X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Finit.c;h=dd6ee15408a70a83b37a76b338e76878d475888c;hb=036e0f646d4b55cc0162a8fad7f1a9559db50c50;hp=ea13bc105afd39ef1ff9dc08b4ca0db77d58ee8b;hpb=02faa5bf7e77b6bbf111819164f9a15e3792215a;p=plomrogue diff --git a/src/server/init.c b/src/server/init.c index ea13bc1..dd6ee15 100644 --- a/src/server/init.c +++ b/src/server/init.c @@ -13,7 +13,8 @@ #include /* time() */ #include /* optarg, getopt(), access(), unlink(), getpid() */ #include "../common/readwrite.h" /* try_fopen(), try_fclose(), textfile_width(), - * try_fgets(), try_fwrite() + * try_fgets(), try_fwrite(), + * detect_atomic_leftover() */ #include "../common/rexit.h" /* exit_err(), exit_trouble() */ #include "../common/try_malloc.h" /* try_malloc() */ @@ -126,7 +127,7 @@ extern void remake_world() world.log = NULL; /* thing_actions.c's update_log() checks for this. */ world.seed_map = world.seed; free_things(world.things); - world.last_update_turn = 0; + world.do_update = 1; remake_map(); struct ThingType * tt; for (tt = world.thing_types; NULL != tt; tt = tt->next) @@ -162,6 +163,8 @@ extern void remake_world() extern void run_game() { char * f_name = "run_game()"; + detect_atomic_leftover(s[S_PATH_SAVE]); + detect_atomic_leftover(s[S_PATH_RECORD]); if (world.replay) { replay_game();