diff options
author | archshift <admin@archshift.com> | 2014-07-12 02:27:29 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-12 02:27:29 +0200 |
commit | 4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4 (patch) | |
tree | c43c02cef430c346a0ab310d1e6714bf66897052 /src/Entities/Pawn.cpp | |
parent | Merge remote-tracking branch 'origin/master' into potions (diff) | |
download | cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.gz cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.bz2 cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.lz cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.xz cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.zst cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.zip |
Diffstat (limited to 'src/Entities/Pawn.cpp')
-rw-r--r-- | src/Entities/Pawn.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp index 62f71e20f..840736f6a 100644 --- a/src/Entities/Pawn.cpp +++ b/src/Entities/Pawn.cpp @@ -52,16 +52,17 @@ void cPawn::Tick(float a_Dt, cChunk & a_Chunk) void cPawn::KilledBy(cEntity * a_Killer) { ClearEntityEffects(); + super::KilledBy(a_Killer); } -void cPawn::AddEntityEffect(cEntityEffect::eType a_EffectType, int a_Duration, short a_Intensity, cPawn * a_Creator, double a_DistanceModifier) +void cPawn::AddEntityEffect(cEntityEffect::eType a_EffectType, int a_Duration, short a_Intensity, double a_DistanceModifier) { // Check if the plugins allow the addition: - if (cPluginManager::Get()->CallHookEntityAddEffect(*this, a_EffectType, a_Duration, a_Intensity, a_Creator, a_DistanceModifier)) + if (cPluginManager::Get()->CallHookEntityAddEffect(*this, a_EffectType, a_Duration, a_Intensity, a_DistanceModifier)) { // A plugin disallows the addition, bail out. return; @@ -74,7 +75,7 @@ void cPawn::AddEntityEffect(cEntityEffect::eType a_EffectType, int a_Duration, s } a_Duration = (int)(a_Duration * a_DistanceModifier); - m_EntityEffects[a_EffectType] = cEntityEffect::CreateEntityEffect(a_EffectType, a_Duration, a_Intensity, a_Creator, a_DistanceModifier); + m_EntityEffects[a_EffectType] = cEntityEffect::CreateEntityEffect(a_EffectType, a_Duration, a_Intensity, a_DistanceModifier); m_World->BroadcastEntityEffect(*this, a_EffectType, a_Intensity, a_Duration); m_EntityEffects[a_EffectType]->OnActivate(*this); } |