Changeset d3e8f60 in network-game


Ignore:
Timestamp:
Jun 17, 2013, 1:39:47 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
02fa8fd
Parents:
5b1e31e
Message:

Add some debugging stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r5b1e31e rd3e8f60  
    199199      this->target.y = mapPlayers[this->targetPlayer].pos.y;
    200200
     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;
     208
    201209      if (posDistance(this->pos, this->target.toFloat()) <= this->range) {
    202210         this->target.x = this->pos.x;
Note: See TracChangeset for help on using the changeset viewer.