Changes in common/Player.cpp [032e550:d3e8f60] in network-game


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r032e550 rd3e8f60  
    199199      this->target.y = mapPlayers[this->targetPlayer].pos.y;
    200200
    201       cout << "Setting target" << endl;
    202       cout << "target id: " << mapPlayers[this->targetPlayer].id << endl;
    203       cout << "cur player id: " << this->id << endl;
     201      cout << "this->pos.x: " << this->pos.x << endl;
     202      cout << "this->pos.x: " << this->pos.x << endl;
     203      cout << "this->target.y: " << this->target.y << endl;
     204      cout << "this->target.y: " << this->target.y << endl;
     205      cout << "this->target.toFloat().x: " << this->target.toFloat().y << endl;
     206      cout << "this->target.toFloat().y: " << this->target.toFloat().y << endl;
     207      cout << "posDistance: " << posDistance(this->pos, this->target.toFloat()) << endl;
    204208
    205209      if (posDistance(this->pos, this->target.toFloat()) <= this->range) {
    206          cout << "Stopped chasing" << endl;
    207 
    208210         this->target.x = this->pos.x;
    209211         this->target.y = this->pos.y;
Note: See TracChangeset for help on using the changeset viewer.