--- a/src/Network/Client.hh Mon Dec 08 16:46:48 2008 +0000
+++ b/src/Network/Client.hh Mon Dec 08 17:24:40 2008 +0000
@@ -233,12 +233,23 @@
* so that we can remove the ground reliably
*/
virtual void onDestroy (Vector position, bool removeGround);
+
+ /**
+ * Overrides Projectile::onHitPlayer to ignore this, as we must wait for the server to tell us if it really did
+ * happen.
+ */
+ virtual void onHitPlayer (Player *player, Health damage);
private:
/**
* NETMSG_PROJECTILE_DESTROY -> Projectile::onDestory
*/
void on_destroy (NetworkPacketInput &pkt);
+
+ /**
+ * NETMSG_PROJECTILE_HIT_PLAYER -> Projectile::onHitPlayer
+ */
+ void on_hit_player (NetworkPacketInput &pkt);
};
#endif