diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-31 00:15:43 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-31 00:15:43 +0300 |
commit | 223b3793485a76f87599d39364b1003c2ca7c49c (patch) | |
tree | 67b2dcc8603a01a32e33d3f0004e7cf4797df2c0 /src/mapblock.cpp | |
parent | 16fdb42590dc14772fcf0cc95c6baf08e6f583cd (diff) | |
download | minetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.gz minetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.bz2 minetest-223b3793485a76f87599d39364b1003c2ca7c49c.zip |
Reduced the CPU usage of the sent block selector algorithm
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index c448ef236..b2f972dde 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -540,10 +540,10 @@ void updateFastFaceRow( v3s16 p_next; - bool next_makes_face; + bool next_makes_face = false; v3s16 next_p_corrected; v3s16 next_face_dir_corrected; - u8 next_lights[4]; + u8 next_lights[4] = {0,0,0,0}; TileSpec next_tile; // If at last position, there is nothing to compare to and |