Index: common/Player.cpp
===================================================================
--- common/Player.cpp	(revision ff2133aee0f65c9b2661b1823a42193172c15167)
+++ common/Player.cpp	(revision 5b1e31e39f3ea0090e0c657ccf06a11efeedd5de)
@@ -142,4 +142,5 @@
    memcpy(buffer+44, &this->hasBlueFlag, 1);
    memcpy(buffer+45, &this->hasRedFlag, 1);
+   memcpy(buffer+46, &this->range, 4);
 
    strcpy(buffer+46, this->name.c_str());
@@ -162,4 +163,5 @@
    memcpy(&this->hasBlueFlag, buffer+44, 1);
    memcpy(&this->hasRedFlag, buffer+45, 1);
+   memcpy(&this->range, buffer+46, 4);
 
    this->name.assign(buffer+46);
@@ -192,5 +194,5 @@
 }
 
-void Player::updateTarget(map<unsigned int, Player>& mapPlayers) {
+bool Player::updateTarget(map<unsigned int, Player>& mapPlayers) {
    if (this->isChasing) {
       this->target.x = mapPlayers[this->targetPlayer].pos.x;
@@ -204,5 +206,9 @@
          this->isAttacking = true;
          this->timeAttackStarted = getCurrentMillis();
+
+         return true;
       }
    }
-}
+
+   return false;
+}
Index: common/Player.h
===================================================================
--- common/Player.h	(revision ff2133aee0f65c9b2661b1823a42193172c15167)
+++ common/Player.h	(revision 5b1e31e39f3ea0090e0c657ccf06a11efeedd5de)
@@ -47,5 +47,5 @@
    void deserialize(char* buffer);
 
-   void updateTarget(map<unsigned int, Player>& mapPlayers);
+   bool updateTarget(map<unsigned int, Player>& mapPlayers);
    bool move(WorldMap *map);
 
