0

And the other location for the temporary variables

This commit is contained in:
Daniel Grimwood
2020-02-13 19:58:02 +08:00
parent 1770e2e6cd
commit ede3ac5db4

View File

@@ -89,7 +89,8 @@ cave_hidden(void* data, RenderState* state, int32_t x, int32_t y, int32_t z) {
if (get_data(state, SKYLIGHT, x, dy, z) != 0) { if (get_data(state, SKYLIGHT, x, dy, z) != 0) {
return true; return true;
} }
if (get_data(state, BLOCKS, x, dy, z) != 8 && get_data(state, BLOCKS, x, dy, z) != 9) { blockUpID = get_data(state, BLOCKS, x, dy, z);
if (blockUpID != 8 && blockUpID != 9) {
/* we are out of the water! and there's no skylight /* we are out of the water! and there's no skylight
* , i.e. is a cave lake or something similar */ * , i.e. is a cave lake or something similar */
break; break;