Use smoothed transformation in minimap

This commit is contained in:
Benau 2018-07-06 22:40:57 +08:00
parent 1efce9ae29
commit 7a1355d415

View File

@ -518,10 +518,10 @@ void RaceGUI::drawGlobalMiniMap()
dynamic_cast<const SpareTireAI*>(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();