aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-09 19:41:26 -0500
committermegamage <none@none>2009-05-09 19:41:26 -0500
commite5f93acf31fb3864d19393da003a261cd8881daf (patch)
treeb664b1d949ea2c0792140666351cb9049177f4b5 /src/game/WaypointMovementGenerator.cpp
parentfa17dfd78c23be1ee42964a622ef06fa3f894c07 (diff)
*Fix the bug that player get fall damage after taxi flight.
--HG-- branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r--src/game/WaypointMovementGenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp
index 7cabd63acf1..ae7ef0bce00 100644
--- a/src/game/WaypointMovementGenerator.cpp
+++ b/src/game/WaypointMovementGenerator.cpp
@@ -251,6 +251,7 @@ void FlightPathMovementGenerator::Initialize(Player &player)
player.getHostilRefManager().setOnlineOfflineState(false);
player.addUnitState(UNIT_STAT_IN_FLIGHT);
player.SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_TAXI_FLIGHT);
+ player.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
LoadPath(player);
Traveller<Player> traveller(player);
// do not send movement, it was sent already
@@ -270,6 +271,7 @@ void FlightPathMovementGenerator::Finalize(Player & player)
player.Unmount();
player.RemoveFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_DISABLE_MOVE | UNIT_FLAG_TAXI_FLIGHT);
+ player.RemoveUnitMovementFlag(MOVEMENTFLAG_FLYING2);
if(player.m_taxi.empty())
{