diff options
author | Rat <none@none> | 2010-05-03 13:01:20 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-05-03 13:01:20 +0200 |
commit | a70d56b6f105b9ef75049e0d93b78df282971cb4 (patch) | |
tree | a67b5a6cd35068807b3e138da9e0fb79f41a58e0 /src | |
parent | f9ebcce8f6b380bfce6d3fed9a43d6aef22d1bdc (diff) |
*when dismounting from a flying vehicle (and it was flying) you will get a pretty parachute
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Vehicle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp index f802bcfb04d..ed50bfe651b 100644 --- a/src/game/Vehicle.cpp +++ b/src/game/Vehicle.cpp @@ -342,8 +342,9 @@ void Vehicle::RemovePassenger(Unit *unit) if (me->GetTypeId() == TYPEID_UNIT && me->ToCreature()->IsAIEnabled) me->ToCreature()->AI()->PassengerBoarded(unit, seat->first, false); - // only for flyable vehicles? - //CastSpell(this, 45472, true); // Parachute + // only for flyable vehicles + if (unit->HasUnitMovementFlag(MOVEMENTFLAG_FLYING)) + me->CastSpell(unit, 45472, true); // Parachute } void Vehicle::RelocatePassengers(float x, float y, float z, float ang) |