Changeset 6 for trunk/src/game/WaypointMovementGenerator.cpp
- Timestamp:
- 11/19/08 13:22:12 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/WaypointMovementGenerator.cpp
r2 r6 112 112 // Now we re-set destination to same node and start travel 113 113 creature.addUnitState(UNIT_STAT_ROAMING); 114 if (creature.canFly()) 115 creature.SetUnitMovementFlags(MOVEMENTFLAG_FLYING2); 114 116 const WaypointNode &node = i_path->at(i_currentNode); 115 117 i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z); … … 174 176 { 175 177 creature.addUnitState(UNIT_STAT_ROAMING); 178 if (creature.canFly()) 179 creature.SetUnitMovementFlags(MOVEMENTFLAG_FLYING2); 176 180 const WaypointNode &node = i_path->at(i_currentNode); 177 181 i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z);