C code style fixes for lighting/normal code merge (woops...)
This commit is contained in:
@@ -192,8 +192,7 @@ chunk_render(PyObject *self, PyObject *args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* decref'd on replacement *and* at the end of the z for block */
|
/* decref'd on replacement *and* at the end of the z for block */
|
||||||
if (blockid)
|
if (blockid) {
|
||||||
{
|
|
||||||
Py_DECREF(blockid);
|
Py_DECREF(blockid);
|
||||||
}
|
}
|
||||||
blockid = PyInt_FromLong(block);
|
blockid = PyInt_FromLong(block);
|
||||||
@@ -242,8 +241,7 @@ chunk_render(PyObject *self, PyObject *args) {
|
|||||||
texture_alpha_over(img, t, imgx, imgy );
|
texture_alpha_over(img, t, imgx, imgy );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lighting)
|
if (lighting) {
|
||||||
{
|
|
||||||
// FIXME whole-block shading for transparent blocks
|
// FIXME whole-block shading for transparent blocks
|
||||||
do_shading_for_face(chunk, x, y, z+1, facemasks[0], black_color,
|
do_shading_for_face(chunk, x, y, z+1, facemasks[0], black_color,
|
||||||
img, imgx, imgy);
|
img, imgx, imgy);
|
||||||
@@ -254,8 +252,7 @@ chunk_render(PyObject *self, PyObject *args) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blockid)
|
if (blockid) {
|
||||||
{
|
|
||||||
Py_DECREF(blockid);
|
Py_DECREF(blockid);
|
||||||
blockid = NULL;
|
blockid = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user