From 7a1355d4157d67f3c7ff8fe006865dee9ac210d3 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 6 Jul 2018 22:40:57 +0800 Subject: [PATCH] Use smoothed transformation in minimap --- src/states_screens/race_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index a6c56cd7c..ad080e4a5 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -518,10 +518,10 @@ void RaceGUI::drawGlobalMiniMap() dynamic_cast(kart->getController()); // don't draw eliminated kart if(kart->isEliminated() && !(sta && sta->isMoving())) continue; - const Vec3& xyz = kart->getXYZ(); + const Vec3& xyz = kart->getSmoothedTrans().getOrigin(); Vec3 draw_at; track->mapPoint2MiniMap(xyz, &draw_at); - + video::ITexture* icon = sta ? irr_driver->getTexture(FileManager::GUI, "heart.png") : kart->getKartProperties()->getMinimapIcon();