Clean-up Minimap code 2893/head
authorkwolekr <kwolekr@minetest.net>
Wed, 8 Jul 2015 04:45:24 +0000 (00:45 -0400)
committerkwolekr <kwolekr@minetest.net>
Wed, 8 Jul 2015 05:50:31 +0000 (01:50 -0400)
commite234d8b3786d5adfbdf3d1a2123c3e8d91c21880
tree2775448749ab7616a9b1e69b4bb4988aa0253539
parentba15c98e4d5d7f4bc515e351d6af1a084d46092e
Clean-up Minimap code

- Fixed race conditions
- Fixed null dereference
- Fixed out-of-bounds array access
- MinimapMapblock is now allocated and added to update queue only when enabled
- Removed dependency on LocalPlayer
- Fixed code style
- Simplified expressions and program logic
- Cleaned minimap object interfaces
src/client.cpp
src/game.cpp
src/mapblock_mesh.cpp
src/minimap.cpp
src/minimap.h