From 7be3341cb9206ff9ff80d71296204b906c7e53af Mon Sep 17 00:00:00 2001 From: xtreme8000 Date: Mon, 13 Feb 2023 20:57:33 +0100 Subject: [PATCH] Fix lighting of neighbour chunks not saved to disk --- meta.xml | 2 +- source/game/game_state.h | 2 +- source/game/gui/screen_ingame.c | 2 +- source/network/server_world.c | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meta.xml b/meta.xml index d54150f..668a68b 100644 --- a/meta.xml +++ b/meta.xml @@ -1,7 +1,7 @@ CavEX - Alpha 0.2.0 + Alpha 0.2.1 20230211000000 ByteBit/xtreme8000 Beta 1.7.3 for the Wii diff --git a/source/game/game_state.h b/source/game/game_state.h index 002928c..7cbc0ae 100644 --- a/source/game/game_state.h +++ b/source/game/game_state.h @@ -31,7 +31,7 @@ #define GAME_NAME "CavEX" #define VERSION_MAJOR 0 #define VERSION_MINOR 2 -#define VERSION_PATCH 0 +#define VERSION_PATCH 1 struct game_state { struct { diff --git a/source/game/gui/screen_ingame.c b/source/game/gui/screen_ingame.c index 17d7913..b3a30e5 100644 --- a/source/game/gui/screen_ingame.c +++ b/source/game/gui/screen_ingame.c @@ -214,7 +214,7 @@ static void screen_ingame_render2D(struct screen* s, int width, int height) { } else { icon_offset += gutil_control_icon(icon_offset, CONTROL_Z, "Punch"); } - icon_offset += gutil_control_icon(icon_offset, CONTROL_HOME, "Quit"); + icon_offset += gutil_control_icon(icon_offset, CONTROL_HOME, "Save & quit"); gfx_bind_texture(TEXTURE_GUI); diff --git a/source/network/server_world.c b/source/network/server_world.c index 8e07f0e..1621edf 100644 --- a/source/network/server_world.c +++ b/source/network/server_world.c @@ -124,6 +124,7 @@ static void server_world_light_set_light(void* user, w_coord_t x, w_coord_t y, size_t idx = S_CHUNK_IDX(x, y, z); nibble_write(sc->lighting_sky, idx, light & 0xF); nibble_write(sc->lighting_torch, idx, light >> 4); + sc->modified = true; } bool server_world_set_block(struct server_world* w, w_coord_t x, w_coord_t y,