1
0

fixed horse bug

horse could be "controlled" without a saddle or being tamed
This commit is contained in:
tonibm19 2016-03-01 12:58:02 +01:00
parent 7cc8f8dd22
commit 27968aa958

View File

@ -176,5 +176,8 @@ void cHorse::InStateIdle(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
void cHorse::HandleSpeedFromAttachee(float a_Forward, float a_Sideways) void cHorse::HandleSpeedFromAttachee(float a_Forward, float a_Sideways)
{ {
super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed); if ((m_bIsTame) && (m_bIsSaddled))
{
super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed);
}
} }