aboutsummaryrefslogtreecommitdiff
path: root/src/game/Vehicle.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-23 01:08:09 -0500
committermegamage <none@none>2009-08-23 01:08:09 -0500
commitdee4a9fd872c28587efe18f6859b91ce3d5ae805 (patch)
treee1839645709ee3e693a22bdb489c41499b98504f /src/game/Vehicle.cpp
parentb35fe879ad812947a50666ccc41d3603227291f9 (diff)
*Update flame leviathan script.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Vehicle.cpp')
-rw-r--r--src/game/Vehicle.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp
index 7dcff65fe06..2b49df166ef 100644
--- a/src/game/Vehicle.cpp
+++ b/src/game/Vehicle.cpp
@@ -90,11 +90,8 @@ void Vehicle::InstallAllAccessories()
InstallAccessory(33139,7);
break;
case 33114:
- InstallAccessory(33142,0);
- //InstallAccessory(33143,1);
- //InstallAccessory(33142,2);
- InstallAccessory(33143,2);
- InstallAccessory(33142,1);
+ InstallAccessory(33143,2); // Overload Control Device
+ InstallAccessory(33142,1); // Leviathan Defense Turret
break;
}
}
@@ -122,7 +119,8 @@ void Vehicle::setDeathState(DeathState s) // overwrite vir
if(passenger->GetOwnerGUID() == GetGUID())
{
passenger->ExitVehicle();
- ((Vehicle*)passenger)->setDeathState(s);
+ passenger->setDeathState(s);
+ passenger->AddObjectToRemoveList();
}
}
RemoveAllPassengers();
@@ -266,7 +264,6 @@ void Vehicle::InstallAccessory(uint32 entry, int8 seatId)
const CreatureInfo *cInfo = objmgr.GetCreatureTemplate(entry);
if(!cInfo)
return;
-
Creature *accessory;
if(cInfo->VehicleId)
accessory = SummonVehicle(entry, GetPositionX(), GetPositionY(), GetPositionZ());
@@ -274,7 +271,6 @@ void Vehicle::InstallAccessory(uint32 entry, int8 seatId)
accessory = SummonCreature(entry, GetPositionX(), GetPositionY(), GetPositionZ());
if(!accessory)
return;
-
accessory->EnterVehicle(this, seatId);
// This is not good, we have to send update twice
accessory->SendMovementFlagUpdate();