From 411902af037451da2e7114f6864d76bb57f79516 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 19 Aug 2009 23:02:54 -0500 Subject: *Dismiss summoned vehicle when it is dead. --HG-- branch : trunk --- src/game/Vehicle.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) -- cgit v1.2.3