Fix lighting of neighbour chunks not saved to disk

This commit is contained in:
xtreme8000 2023-02-13 20:57:33 +01:00
parent 3bc13b932d
commit 7be3341cb9
4 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name>CavEX</name>
<version>Alpha 0.2.0</version>
<version>Alpha 0.2.1</version>
<release_date>20230211000000</release_date>
<coder>ByteBit/xtreme8000</coder>
<short_description>Beta 1.7.3 for the Wii</short_description>

View file

@ -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 {

View file

@ -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);

View file

@ -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,