- Timestamp:
- Jun 19, 2013, 11:54:55 PM (12 years ago)
- Branches:
- master
- Children:
- 5c95436
- Parents:
- 66c4ec4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Projectile.cpp
r66c4ec4 r5a5f131 74 74 // if the current target logs off, this method will run into problems 75 75 76 cout << "Inside projectile move" << endl;77 78 76 unsigned long long curTime = getCurrentMillis(); 79 cout << "Got current time" << endl;80 77 81 78 Player targetP = mapPlayers[target]; 82 cout << "Got target" << endl;83 79 84 80 if (timeLastUpdated == 0) { … … 92 88 float dist = sqrt(pow(targetP.pos.x-pos.x, 2) + pow(targetP.pos.y-pos.y, 2)); 93 89 94 cout << "About to finish projectile move" << endl;95 96 90 if (dist <= pixels) { 97 91 pos.x = targetP.pos.x;
Note:
See TracChangeset
for help on using the changeset viewer.