From 5701da5df3e5f0d3a40af0abf7e03302275dcca2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 4 Dec 2012 21:42:54 +0000 Subject: Introduce Entity::hit() callback, prevent projectiles from doing no damage. --- src/core/entityprojectile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/entityprojectile.h') diff --git a/src/core/entityprojectile.h b/src/core/entityprojectile.h index 04070ff..6bbcdfd 100644 --- a/src/core/entityprojectile.h +++ b/src/core/entityprojectile.h @@ -59,7 +59,7 @@ public: /** * @brief id of the player who fired the projectile * */ - inline const int ownerid() const + inline const unsigned int ownerid() const { return projectile_ownerid; } @@ -110,7 +110,7 @@ public: /** * @brief set the id of the player who fired the projectile * */ - inline void set_ownerid(const int ownerid) + inline void set_ownerid(const unsigned int ownerid) { projectile_ownerid = ownerid; } @@ -137,7 +137,7 @@ private: float projectile_damage; - int projectile_ownerid; + unsigned int projectile_ownerid; }; } // namespace game -- cgit v1.2.3