diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-29 00:28:48 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-29 00:28:48 +0300 |
commit | 02c035c548787a589c2bb813112b080a638e2972 (patch) | |
tree | 66ae02a8c29b5396bc86392e004c39ccc671b434 /src/server.cpp | |
parent | 418041d9067319431e4b6301851da117d2f4075b (diff) | |
download | minetest-02c035c548787a589c2bb813112b080a638e2972.tar.gz minetest-02c035c548787a589c2bb813112b080a638e2972.tar.bz2 minetest-02c035c548787a589c2bb813112b080a638e2972.zip |
Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update until it is actually needed
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index ff250596d..3aa0bd04b 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -659,7 +659,7 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime, */ if(d >= 4) { - if(block->dayNightDiffed() == false) + if(block->getDayNightDiff() == false) continue; } #endif |