Changeset 035d852 in network-game


Ignore:
Timestamp:
May 18, 2013, 9:38:05 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
05051c7
Parents:
a78c387
Message:

Removed some dbugging statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    ra78c387 r035d852  
    100100      FLOAT_POSITION newPos;
    101101
    102       //cout << "pos.x: " << pos.x << endl;
    103       //cout << "pos.y: " << pos.y << endl;
    104       //cout << "target.x: " << target.x << endl;
    105       //cout << "target.y: " << target.y << endl;
    106 
    107102      if (dist <= pixels) {
    108103         newPos.x = target.x;
     
    117112      case WorldMap::TERRAIN_OCEAN:
    118113      case WorldMap::TERRAIN_ROCK:
    119          cout << "Encountered invalid terrain" << endl;
    120114         target.x = pos.x;
    121115         target.y = pos.y;
    122116         moveCanceled = true;
    123          cout << "move canceled" << endl;
    124117         break;
    125118      default: // if there are no obstacles
     
    131124      // using moveCanceled in a hacky way just to indicate that the server
    132125      // has updated some player info. Should change the variable name
    133       cout << "Object at location: " << map->getObject(newPos.x/25, newPos.y/25) << endl;
    134126      switch(map->getObject(newPos.x/25, newPos.y/25)) {
    135127      case WorldMap::OBJECT_BLUE_FLAG:
    136128         hasBlueFlag = true;
    137          cout << "Player got blue flag" << endl;
    138129         moveCanceled = true;
    139130         break;
    140131      case WorldMap::OBJECT_RED_FLAG:
    141132         hasRedFlag = true;
    142          cout << "Player got red flag" << endl;
    143133         moveCanceled = true;
    144134         break;
     
    148138   timeLastUpdated = curTime;
    149139
    150    if (moveCanceled)
    151       cout << "moveCancled == true" << endl;
    152 
    153140   return !moveCanceled;
    154141}
Note: See TracChangeset for help on using the changeset viewer.