diff options
author | Dániel Juhász <juhdanad@gmail.com> | 2016-10-27 23:25:44 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-02-13 00:05:49 +0000 |
commit | f17c9c45dc30a388675d46418d278a4a029206e2 (patch) | |
tree | 8facf82b6c5b3fb3ff5e3632a738272de06c6952 /src/clientiface.cpp | |
parent | 2bd10022cb06850a404f180c455954ed2f817ce3 (diff) | |
download | minetest-f17c9c45dc30a388675d46418d278a4a029206e2.tar.gz minetest-f17c9c45dc30a388675d46418d278a4a029206e2.tar.bz2 minetest-f17c9c45dc30a388675d46418d278a4a029206e2.zip |
Lighting: Update lighting at block loading
This commit updates mapblocks' light if necessary when they are loaded.
This removes ghost lighting.
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r-- | src/clientiface.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp index 47730343c..0eb68c9c1 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -283,12 +283,6 @@ void RemoteClient::GetNextBlocks ( surely_not_found_on_disk = true; } - // Block is valid if lighting is up-to-date and data exists - if(block->isValid() == false) - { - block_is_invalid = true; - } - if(block->isGenerated() == false) block_is_invalid = true; |