Changeset 032e550 in network-game for common/Player.cpp
- Timestamp:
- Jun 17, 2013, 1:43:55 AM (12 years ago)
- Branches:
- master
- Children:
- 02fa8fd
- Parents:
- 5b1e31e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
r5b1e31e r032e550 199 199 this->target.y = mapPlayers[this->targetPlayer].pos.y; 200 200 201 cout << "Setting target" << endl; 202 cout << "target id: " << mapPlayers[this->targetPlayer].id << endl; 203 cout << "cur player id: " << this->id << endl; 204 201 205 if (posDistance(this->pos, this->target.toFloat()) <= this->range) { 206 cout << "Stopped chasing" << endl; 207 202 208 this->target.x = this->pos.x; 203 209 this->target.y = this->pos.y;
Note:
See TracChangeset
for help on using the changeset viewer.