Changeset 5a5f131 in network-game for common/Projectile.cpp


Ignore:
Timestamp:
Jun 19, 2013, 11:54:55 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
5c95436
Parents:
66c4ec4
Message:

Dead players aren't drawn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Projectile.cpp

    r66c4ec4 r5a5f131  
    7474   // if the current target logs off, this method will run into problems
    7575
    76    cout << "Inside projectile move" << endl;
    77 
    7876   unsigned long long curTime = getCurrentMillis();
    79    cout << "Got current time" << endl;
    8077
    8178   Player targetP = mapPlayers[target];
    82    cout << "Got target" << endl;
    8379
    8480   if (timeLastUpdated == 0) {
     
    9288   float dist = sqrt(pow(targetP.pos.x-pos.x, 2) + pow(targetP.pos.y-pos.y, 2));
    9389
    94    cout << "About to finish projectile move" << endl;
    95 
    9690   if (dist <= pixels) {
    9791      pos.x = targetP.pos.x;
Note: See TracChangeset for help on using the changeset viewer.