From: Christian Heller Date: Sun, 15 Mar 2015 19:07:53 +0000 (+0100) Subject: Fix client crashing due to GOD_MOOD removal. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/conditions?a=commitdiff_plain;h=219e81b4af07085781c763faa87a1cdac0a1e0dc;p=plomrogue Fix client crashing due to GOD_MOOD removal. --- diff --git a/src/client/io.c b/src/client/io.c index b18ad5d..13a3bee 100644 --- a/src/client/io.c +++ b/src/client/io.c @@ -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); diff --git a/src/client/world.h b/src/client/world.h index 5c80143..69ba6b0 100644 --- a/src/client/world.h +++ b/src/client/world.h @@ -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 */