0

provided options are now checked against the available options

This commit is contained in:
Aaron Griffith
2011-06-11 00:01:12 -04:00
parent da706287c8
commit bfb92de7b7
3 changed files with 49 additions and 6 deletions

View File

@@ -26,11 +26,10 @@ static PyObject *transparent_blocks = NULL;
PyObject *init_chunk_render(PyObject *self, PyObject *args) {
/* this function only needs to be called once, anything more is an
* error... */
/* this function only needs to be called once, anything more should be
* ignored */
if (blockmap) {
PyErr_SetString(PyExc_RuntimeError, "init_chunk_render should only be called once per process.");
return NULL;
Py_RETURN_NONE;
}
textures = PyImport_ImportModule("textures");