diff options
author | megamage <none@none> | 2009-06-16 11:19:59 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-16 11:19:59 -0500 |
commit | 3cf2be604275ec1ae7321b78dc6b62e559a5d7c7 (patch) | |
tree | d119d51bcee396d8fe913fa6b709ff45da2a2c2e /src/game/WaypointMovementGenerator.cpp | |
parent | aaec3c819167afb3f40410142654ed4d57926b10 (diff) |
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r-- | src/game/WaypointMovementGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index d256b01bd5d..cef7fd8d596 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -264,7 +264,7 @@ void FlightPathMovementGenerator::Finalize(Player & player) player.clearUnitState(UNIT_STAT_IN_FLIGHT); float x, y, z; - i_destinationHolder.GetLocationNow(player.GetMapId(), x, y, z); + i_destinationHolder.GetLocationNow(player.GetBaseMap(), x, y, z); player.SetPosition(x, y, z, player.GetOrientation()); } |