diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-02 20:10:41 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-02 20:10:41 +0200 |
commit | 38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e (patch) | |
tree | 0d57c7ff7237e084644cf40a9f5c371bb6412643 /src/Entities | |
parent | Merge branch 'master' into Effects (diff) | |
download | cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.gz cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.bz2 cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.lz cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.xz cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.zst cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/EntityEffect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Entities/EntityEffect.cpp b/src/Entities/EntityEffect.cpp index 9cf20095d..1ebbf1926 100644 --- a/src/Entities/EntityEffect.cpp +++ b/src/Entities/EntityEffect.cpp @@ -240,7 +240,7 @@ void cEntityEffectSpeed::OnActivate(cPawn & a_Target) if (a_Target.IsMob()) { cMonster * Mob = (cMonster*) &a_Target; - Mob->SetWalkSpeed(Mob->GetWalkSpeed() + 0.2 * m_Intensity); + Mob->SetRelativeWalkSpeed(Mob->GetRelativeWalkSpeed() + 0.2 * m_Intensity); } else if (a_Target.IsPlayer()) { @@ -260,7 +260,7 @@ void cEntityEffectSpeed::OnDeactivate(cPawn & a_Target) if (a_Target.IsMob()) { cMonster * Mob = (cMonster*) &a_Target; - Mob->SetWalkSpeed(Mob->GetWalkSpeed() - 0.2 * m_Intensity); + Mob->SetRelativeWalkSpeed(Mob->GetRelativeWalkSpeed() - 0.2 * m_Intensity); } else if (a_Target.IsPlayer()) { @@ -283,7 +283,7 @@ void cEntityEffectSlowness::OnActivate(cPawn & a_Target) if (a_Target.IsMob()) { cMonster * Mob = (cMonster*) &a_Target; - Mob->SetWalkSpeed(Mob->GetWalkSpeed() - 0.15 * m_Intensity); + Mob->SetRelativeWalkSpeed(Mob->GetRelativeWalkSpeed() - 0.15 * m_Intensity); } else if (a_Target.IsPlayer()) { @@ -303,7 +303,7 @@ void cEntityEffectSlowness::OnDeactivate(cPawn & a_Target) if (a_Target.IsMob()) { cMonster * Mob = (cMonster*) &a_Target; - Mob->SetWalkSpeed(Mob->GetWalkSpeed() + 0.15 * m_Intensity); + Mob->SetRelativeWalkSpeed(Mob->GetRelativeWalkSpeed() + 0.15 * m_Intensity); } else if (a_Target.IsPlayer()) { |