home · contact · privacy
7DRL: Make "Things here" window scrollable.
[plomrogue] / src / client / io.c
index 54b65c2b438ce73e97da7f0819678f75bd60523e..d9f888d65b0176562b09d0cc1487defba67d2d69 100644 (file)
@@ -185,6 +185,8 @@ static uint8_t read_worldstate()
     uint32_t linemax = textfile_width(file);
     char * read_buf = try_malloc(linemax + 1, __func__);
     world.turn = (uint16_t) read_value_from_line(read_buf, linemax, file);
+    world.godsmood = (int16_t) read_value_from_line(read_buf, linemax, file); //
+    world.godsfavor = (int16_t) read_value_from_line(read_buf, linemax, file); //
     world.player_lifepoints = (uint16_t) read_value_from_line(read_buf, linemax,
                                                               file);
     world.player_satiation = (int16_t) read_value_from_line(read_buf, linemax,
@@ -276,6 +278,7 @@ static uint8_t read_queue()
             {
                 nl_append_string("(none known)", &world.things_here);
             }
+            world.things_here_scroll = 0;  //
         }
         else if (things_here_parsing)
         {