From 6a5eb517d6104206cff9b135174c031a335ec4df Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Sun, 31 Jul 2011 22:33:49 -0400 Subject: [PATCH] tallgrass now appears in the same place, no matter what mode is used --- overviewer_core/src/iterate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overviewer_core/src/iterate.c b/overviewer_core/src/iterate.c index fbc3849..5639ae9 100644 --- a/overviewer_core/src/iterate.c +++ b/overviewer_core/src/iterate.c @@ -360,6 +360,10 @@ chunk_render(PyObject *self, PyObject *args) { up_right_blocks_py = PyObject_GetAttrString(state.self, "up_right_blocks"); state.up_right_blocks = up_right_blocks_py; + /* set up the random number generator again for each chunk + so tallgrass is in the same place, no matter what mode is used */ + srand(1); + for (state.x = 15; state.x > -1; state.x--) { for (state.y = 0; state.y < 16; state.y++) { PyObject *blockid = NULL;