just ignore NetworkClientPlayerBase::die
authorterom
Mon, 08 Dec 2008 18:32:56 +0000
changeset 303 36a502a0023f
parent 302 e734d8e9bbb5
child 304 d0f60a97a85e
just ignore NetworkClientPlayerBase::die
src/Network/Client.cc
src/Network/Client.hh
--- a/src/Network/Client.cc	Mon Dec 08 18:31:08 2008 +0000
+++ b/src/Network/Client.cc	Mon Dec 08 18:32:56 2008 +0000
@@ -169,18 +169,18 @@
     throw Error("NetworkClientPlayerBase::spawn called");
 }
 
-void NetworkClientPlayerBase::die (bool start_timer) {
-    (void) start_timer;
-
-    throw Error("NetworkClientPlayerBase::die called");
-}
-
 void NetworkClientPlayerBase::respawn (TimeMS dt) {
     (void) dt;
 
     throw Error("NetworkClientPlayerBase::respawn called");
 }
 
+void NetworkClientPlayerBase::die (bool start_timer) {
+    (void) start_timer;
+    
+    // ignore :>
+}
+
 void NetworkClientPlayerBase::on_position (NetworkPacketInput &pkt) {
     Vector position = pkt.read_vector();
     Vector velocity = pkt.read_vector();
--- a/src/Network/Client.hh	Mon Dec 08 18:31:08 2008 +0000
+++ b/src/Network/Client.hh	Mon Dec 08 18:32:56 2008 +0000
@@ -151,9 +151,13 @@
          * These should never be called directly, always via the network
          */
         virtual void spawn (Vector position);
-        virtual void die (bool start_timer = true);
         virtual void respawn (TimeMS dt);
         // @}
+        
+        /**
+         * Ignore, the servers tells us this
+         */
+        virtual void die (bool start_timer = true);
 
     private:
         /**