home · contact · privacy
Fix client crashing due to GOD_MOOD removal.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 15 Mar 2015 19:07:53 +0000 (20:07 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 15 Mar 2015 19:07:53 +0000 (20:07 +0100)
src/client/io.c
src/client/world.h

index b18ad5da6123bb2136e78c3d811ca122d8dd59b1..13a3bee884eb5115b602eb5a7422b22bd04ebd30 100644 (file)
@@ -185,7 +185,6 @@ 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);
index 5c80143a2b70b1ae255ccfceaf94ae57af87ad7b..69ba6b0c3d6d6da559f691de8ae872f6fdc25311 100644 (file)
@@ -46,7 +46,6 @@ struct World
     uint16_t turn; /* world/game turn */
     uint16_t things_here_scroll; /* scroll position things here win */ // 7DRL
     int16_t player_satiation; /* player's belly fullness */
-    int16_t godsmood; /* island god's mood */ // 7DRL
     int16_t godsfavor; /* island god's favor to player */ // 7DRL
     uint8_t player_inventory_select; /* index of selected item in inventory */
     uint8_t player_lifepoints; /* how alive the player is */