1
0

Renamed SetWalkSpeed() to SetRelativeWalkSpeed()

This commit is contained in:
Howaner
2014-09-02 20:10:41 +02:00
parent d3b8100a7b
commit 38e824dbcf
4 changed files with 11 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ cMonster::cMonster(const AString & a_ConfigName, eType a_MobType, const AString
, m_DropChanceBoots(0.085f)
, m_CanPickUpLoot(true)
, m_BurnsInDaylight(false)
, m_WalkSpeed(1.0)
, m_RelativeWalkSpeed(1.0)
{
if (!a_ConfigName.empty())
{
@@ -304,7 +304,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
}
// Apply walk speed:
Distance *= m_WalkSpeed;
Distance *= m_RelativeWalkSpeed;
AddSpeedX(Distance.x);
AddSpeedZ(Distance.z);