aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-19 23:02:54 -0500
committermegamage <none@none>2009-08-19 23:02:54 -0500
commit411902af037451da2e7114f6864d76bb57f79516 (patch)
tree52211d9dcb5a007b6a4da935b7f42ce19f9084b4 /src
parent6169483d0f0959c813ad6302cfc9217306a8ef43 (diff)
*Dismiss summoned vehicle when it is dead.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp
index d54bd04dcec..3398030e735 100644
--- a/src/game/Vehicle.cpp
+++ b/src/game/Vehicle.cpp
@@ -144,6 +144,9 @@ void Vehicle::Update(uint32 diff)
//310
if(getPowerType() == POWER_ENERGY) // m_vehicleInfo->36
ModifyPower(POWER_ENERGY, 100);
+
+ if(m_deathState == DEAD && !GetDBTableGUIDLow())
+ Dismiss();
}
bool Vehicle::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team, float x, float y, float z, float o, const CreatureData * data)