fixed horse bug
horse could be "controlled" without a saddle or being tamed
This commit is contained in:
parent
7cc8f8dd22
commit
27968aa958
@ -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)
|
||||||
{
|
{
|
||||||
|
if ((m_bIsTame) && (m_bIsSaddled))
|
||||||
|
{
|
||||||
super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed);
|
super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user