0

Fix one more time the how water is lit.

Added ancildata and pseudo_ancildata to the renderstate.
Added special case for water in rendermode_ligting_draw().
This commit is contained in:
Alejandro Aguilera
2011-08-03 10:43:31 +02:00
parent 4070a79409
commit f7e1867588
3 changed files with 20 additions and 1 deletions

View File

@@ -412,11 +412,15 @@ chunk_render(PyObject *self, PyObject *args) {
PyObject *tmp;
unsigned char ancilData = getArrayByte3D(state.blockdata_expanded, state.x, state.y, state.z);
state.block_data = ancilData;
if ((state.block == 2) || (state.block == 9) ||
(state.block == 20) || (state.block == 54) ||
(state.block == 55) || (state.block == 85) ||
(state.block == 90)) {
ancilData = generate_pseudo_data(&state, ancilData);
state.block_pdata = ancilData;
} else {
state.block_pdata = 0;
}
tmp = PyTuple_New(2);