0

declaration tweak to make some compilers happy

This commit is contained in:
Andrew Chin
2011-03-19 14:37:48 -04:00
parent 79d021279f
commit 26d781f249

View File

@@ -59,7 +59,7 @@ chunk_render(PyObject *self, PyObject *args) {
PyObject *blocks_py; PyObject *blocks_py;
PyObject *textures, *blockmap, *special_blocks, *specialblockmap, *chunk_mod; PyObject *textures, *blockmap, *special_blocks, *specialblockmap, *chunk_mod, *transparent_blocks;
int imgx, imgy; int imgx, imgy;
int x, y, z; int x, y, z;
@@ -95,7 +95,7 @@ chunk_render(PyObject *self, PyObject *args) {
blockmap = PyObject_GetAttrString(textures, "blockmap"); blockmap = PyObject_GetAttrString(textures, "blockmap");
special_blocks = PyObject_GetAttrString(textures, "special_blocks"); special_blocks = PyObject_GetAttrString(textures, "special_blocks");
specialblockmap = PyObject_GetAttrString(textures, "specialblockmap"); specialblockmap = PyObject_GetAttrString(textures, "specialblockmap");
PyObject *transparent_blocks = PyObject_GetAttrString(chunk_mod, "transparent_blocks"); transparent_blocks = PyObject_GetAttrString(chunk_mod, "transparent_blocks");
if (transparent_blocks == NULL) { if (transparent_blocks == NULL) {
PyErr_SetString(PyExc_ValueError, PyErr_SetString(PyExc_ValueError,
"transparent_blocks is NULL"); "transparent_blocks is NULL");