Core/Vehicles: Make the vehicle system more aura driven. Get rid of redundant checks and update relevant data.

Closes #805
This commit is contained in:
Machiavelli
2011-03-04 21:16:27 +01:00
parent c2a2d7201b
commit a9582964d3
14 changed files with 80 additions and 79 deletions

View File

@@ -1250,7 +1250,7 @@ void SmartScript::ProcessAction(SmartScriptHolder &e, Unit* unit, uint32 var0, u
{
if (IsUnit(*itr) && (*itr)->ToUnit()->GetVehicleKit())
{
me->EnterVehicle((*itr)->ToUnit()->GetVehicleKit(), e.action.enterVehicle.seat);
me->EnterVehicle((*itr)->ToUnit(), e.action.enterVehicle.seat);
return;
}
}