Changeset 05051c7 in network-game for common/Player.cpp
- Timestamp:
- May 19, 2013, 7:12:07 PM (12 years ago)
- Branches:
- master
- Children:
- cc1c6c1
- Parents:
- 035d852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Player.cpp
r035d852 r05051c7 124 124 // using moveCanceled in a hacky way just to indicate that the server 125 125 // has updated some player info. Should change the variable name 126 switch(map->get Object(newPos.x/25, newPos.y/25)) {127 case WorldMap:: OBJECT_BLUE_FLAG:126 switch(map->getStructure(newPos.x/25, newPos.y/25)) { 127 case WorldMap::STRUCTURE_BLUE_FLAG: 128 128 hasBlueFlag = true; 129 129 moveCanceled = true; 130 130 break; 131 case WorldMap:: OBJECT_RED_FLAG:131 case WorldMap::STRUCTURE_RED_FLAG: 132 132 hasRedFlag = true; 133 133 moveCanceled = true;
Note:
See TracChangeset
for help on using the changeset viewer.