From 9bccd75e340d7502251c233418e0afccd9c4a49c Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 16 Sep 2013 22:52:24 -0400 Subject: Weather: Clean up getHeat/getHumidity somewhat --- src/emerge.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/emerge.cpp') diff --git a/src/emerge.cpp b/src/emerge.cpp index a81ff7d92..ed9aa9044 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -512,8 +512,7 @@ void *EmergeThread::Thread() { ign(&m_server->m_ignore_map_edit_events_area, VoxelArea(minp, maxp)); { // takes about 90ms with -O1 on an e3-1230v2 - m_server->getScriptIface()-> - environment_OnGenerated( + m_server->getScriptIface()->environment_OnGenerated( minp, maxp, emerge->getBlockSeed(minp)); } @@ -535,14 +534,6 @@ void *EmergeThread::Thread() { if (block) modified_blocks[p] = block; - // Update weather data in mapblock - for(std::map::iterator - i = modified_blocks.begin(); - i != modified_blocks.end(); ++i) { - map->getHeat(m_server->m_env, MAP_BLOCKSIZE*i->first ,i->second); - map->getHumidity(m_server->m_env, MAP_BLOCKSIZE*i->first, i->second); - } - // Set the modified blocks unsent for all the clients for (std::map::iterator i = m_server->m_clients.begin(); -- cgit v1.2.3