summaryrefslogtreecommitdiffstats
path: root/src/Entities/ProjectileEntity.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-11 16:24:05 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-11 16:24:05 +0100
commitef3c5a97a46212a0f8cd1a05125f4b75e3f32b74 (patch)
tree7656f5b0b43fa48679aef35d41197c460851834a /src/Entities/ProjectileEntity.cpp
parentSnowballs now actualy hurt other entities. (diff)
downloadcuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar.gz
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar.bz2
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar.lz
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar.xz
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.tar.zst
cuberite-ef3c5a97a46212a0f8cd1a05125f4b75e3f32b74.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ProjectileEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp
index 92890919c..37238a0c0 100644
--- a/src/Entities/ProjectileEntity.cpp
+++ b/src/Entities/ProjectileEntity.cpp
@@ -677,7 +677,7 @@ void cThrownSnowballEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d &
TotalDamage = 1;
}
}
- a_EntityHit.TakeDamage(dtRangedAttack, m_Creator, TotalDamage, 1);
+ a_EntityHit.TakeDamage(dtRangedAttack, this, TotalDamage, 1);
Destroy(true);
}