Changeset b26229c in network-game


Ignore:
Timestamp:
May 18, 2013, 9:29:09 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
a78c387
Parents:
2864d8e
Message:

Some more map debugging

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r2864d8e rb26229c  
    131131      // using moveCanceled in a hacky way just to indicate that the server
    132132      // has updated some player info. Should change the variable name
     133      cout << "Object at location: " << map->getObject(newPos.x/25, newPos.y/25) << endl;
    133134      switch(map->getObject(newPos.x/25, newPos.y/25)) {
    134135      case WorldMap::OBJECT_BLUE_FLAG:
  • common/WorldMap.cpp

    r2864d8e rb26229c  
    177177                  break;
    178178               case 1:
    179                   object = OBJECT_RED_FLAG;
     179                  object = OBJECT_BLUE_FLAG;
    180180                  break;
    181181               case 2:
    182                   object = OBJECT_BLUE_FLAG;
     182                  object = OBJECT_RED_FLAG;
    183183                  break;
    184184               }
  • server/server.cpp

    r2864d8e rb26229c  
    131131               it->second.serialize(serverMsg.buffer);
    132132
     133               cout << "(" << it->second.pos.x << "," << it->second.pos.y << ")" << endl;
     134
    133135               if (it->second.hasBlueFlag)
    134136                  cout << "Got blue flag" << endl;
Note: See TracChangeset for help on using the changeset viewer.