From e0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 3 Apr 2011 19:50:54 +0300 Subject: Modified block mesh generation to have clearer input and output. Instead of being a messy object oriented cludge, it now is a messy cludge with separate parameters. --- src/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/environment.cpp') diff --git a/src/environment.cpp b/src/environment.cpp index 8d9af480d..d144baeef 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -891,7 +891,8 @@ void ClientEnvironment::step(float dtime) { v3s16 p_blocks = getNodeBlockPos(bottompos); MapBlock *b = m_map->getBlockNoCreate(p_blocks); - b->updateMesh(m_daynight_ratio); + //b->updateMesh(m_daynight_ratio); + b->setMeshExpired(true); } } } -- cgit v1.2.3