summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorRorkh <rorkh@internet.ru>2021-09-18 10:18:05 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-10-02 22:18:18 +0200
commit798fdb07092fceaccfde41d2f27e2756f29f4eda (patch)
treeaaa7f6bd1be6a33e08be230bda3166b31a2b57a2 /src/Entities/Entity.h
parentSpectation: add dedicated pathway for spectator mode (#5303) (diff)
downloadcuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.gz
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.bz2
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.lz
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.xz
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.zst
cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.zip
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r--src/Entities/Entity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 285ae8fac..941d07339 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -351,8 +351,8 @@ public:
// tolua_begin
- /** Called when the entity kills another entity */
- virtual void Killed(cEntity * a_Victim) {}
+ /** Called when the entity kills another entity. */
+ virtual void Killed(const cEntity & a_Victim, eDamageType a_DamageType) {}
/** Heals the specified amount of HPs */
virtual void Heal(int a_HitPoints);