From e234d8b3786d5adfbdf3d1a2123c3e8d91c21880 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 8 Jul 2015 00:45:24 -0400 Subject: 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/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 94fb41852..0189143b8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -4045,10 +4045,11 @@ void Game::updateFrame(std::vector &highlight_boxes, } /* - Update minimap pos + Update minimap pos and rotation */ if (flags.show_minimap && flags.show_hud) { mapper->setPos(floatToInt(player->getPosition(), BS)); + mapper->setAngle(player->getYaw()); } /* -- cgit v1.2.3