Use the visual rotation in replay files, so that skidding is properly shown.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-02-29 05:44:37 +00:00
parent 19ad29ff90
commit 1e90311e5e

View File

@ -113,7 +113,8 @@ void ReplayRecorder::update(float dt)
}
TransformEvent *p = &(m_transform_events[i][m_count_transforms[i]-1]);
p->m_time = World::getWorld()->getTime();
p->m_transform = kart->getTrans();
p->m_transform.setOrigin(kart->getXYZ());
p->m_transform.setRotation(kart->getVisualRotation());
} // for i
} // updateRecording