0

changed PyArray_GETPTR3 to getByteArray3D

This commit is contained in:
Aaron Griffith
2011-03-21 20:34:48 -04:00
parent b312cef52e
commit e9b30cf780

View File

@@ -158,9 +158,7 @@ chunk_render(PyObject *self, PyObject *args) {
} else { } else {
PyObject *tmp; PyObject *tmp;
/* this should be a pointer to a unsigned char */ unsigned char ancilData = getByteArray3D(blockdata_expanded, state.x, state.y, state.z);
void* ancilData_p = PyArray_GETPTR3(blockdata_expanded, state.x, state.y, state.z);
unsigned char ancilData = *((unsigned char*)ancilData_p);
if (state.block == 85) { if (state.block == 85) {
/* fence. skip the generate_pseudo_ancildata for now */ /* fence. skip the generate_pseudo_ancildata for now */
continue; continue;