# HG changeset patch # User saiam # Date 1228768420 0 # Node ID 5b4806c613427e332bd695b2e8d944fec85f898d # Parent 4e774439e2c6c74b254d86b74cf6c6597a4f7528 Deaths should be counted to Player::deaths parameter. Kills not counted yet. diff -r 4e774439e2c6 -r 5b4806c61342 src/Player.cc --- a/src/Player.cc Mon Dec 08 20:31:55 2008 +0000 +++ b/src/Player.cc Mon Dec 08 20:33:40 2008 +0000 @@ -28,7 +28,9 @@ rope(*this), health(PLAYER_HEALTH), respawn_timer(PLAYER_RESPAWN_DELAY), - animation_step(0) + animation_step(0), + kills(0), + deaths(0) { // XXX: populate weapons from somewhere else @@ -69,6 +71,9 @@ } void Player::die (bool start_timer) { + + deaths++; // Increment death counter + // we don't have a rope anymore rope.release();