diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-07-26 23:11:46 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-07-26 23:11:46 +0200 |
commit | 9d412dd0754ce9eadf0f6122437d66d1dbfbf35c (patch) | |
tree | 74f421bac8ab1f23f6f5388ca723b150c56958c2 /src/map.cpp | |
parent | 3e50850260db13ec63ce4ca0e47e7fd7e30ce484 (diff) | |
download | minetest-9d412dd0754ce9eadf0f6122437d66d1dbfbf35c.tar.gz minetest-9d412dd0754ce9eadf0f6122437d66d1dbfbf35c.tar.bz2 minetest-9d412dd0754ce9eadf0f6122437d66d1dbfbf35c.zip |
Remove unused Map::getDayNightDiff + fix one undefined variable in mapblock.cpp
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/map.cpp b/src/map.cpp index d4734cdc6..972c666e4 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -362,63 +362,6 @@ bool Map::removeNodeWithEvent(v3s16 p) return succeeded; } -bool Map::getDayNightDiff(v3s16 blockpos) -{ - try{ - v3s16 p = blockpos + v3s16(0,0,0); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - // Leading edges - try{ - v3s16 p = blockpos + v3s16(-1,0,0); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - try{ - v3s16 p = blockpos + v3s16(0,-1,0); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - try{ - v3s16 p = blockpos + v3s16(0,0,-1); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - // Trailing edges - try{ - v3s16 p = blockpos + v3s16(1,0,0); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - try{ - v3s16 p = blockpos + v3s16(0,1,0); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - try{ - v3s16 p = blockpos + v3s16(0,0,1); - MapBlock *b = getBlockNoCreate(p); - if(b->getDayNightDiff()) - return true; - } - catch(InvalidPositionException &e){} - - return false; -} - struct TimeOrderedMapBlock { MapSector *sect; MapBlock *block; |