Changeset 05051c7 in network-game for common/Player.cpp


Ignore:
Timestamp:
May 19, 2013, 7:12:07 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
cc1c6c1
Parents:
035d852
Message:

Added support for objects that can be at any pixel on the map, not just one per grid cell. What used to be called objects are now caled structures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r035d852 r05051c7  
    124124      // using moveCanceled in a hacky way just to indicate that the server
    125125      // has updated some player info. Should change the variable name
    126       switch(map->getObject(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:
    128128         hasBlueFlag = true;
    129129         moveCanceled = true;
    130130         break;
    131       case WorldMap::OBJECT_RED_FLAG:
     131      case WorldMap::STRUCTURE_RED_FLAG:
    132132         hasRedFlag = true;
    133133         moveCanceled = true;
Note: See TracChangeset for help on using the changeset viewer.