src/Player.cc
changeset 330 dcc47278e5ab
parent 322 f94a5c192097
child 335 47dc65c8df71
--- a/src/Player.cc	Mon Dec 08 23:24:40 2008 +0000
+++ b/src/Player.cc	Mon Dec 08 23:42:40 2008 +0000
@@ -68,6 +68,11 @@
     // update position
     setPosition(position);
 
+    // reset health
+    health = PLAYER_HEALTH;
+
+    // XXX: reload weapons
+
     // enable
     enable();
 }
@@ -94,11 +99,6 @@
 void Player::respawn (TimeMS dt) {
     (void) dt;
 
-    // reset health
-    health = PLAYER_HEALTH;
-
-    // XXX: reload weapons
-
     // XXX: ...
     spawn(Vector(PLAYER_INITIAL_X, PLAYER_INITIAL_Y));
 }