*Add some vehicle ai functions.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-15 20:36:54 -05:00
1 parent 917bf34a98
commit c88304af95
4 files changed
+17 -2

No files matched your search

+6
View File
@@ -14555,11 +14555,17 @@ void Unit::EnterVehicle(Vehicle *vehicle, int8 seatId)
if(m_Vehicle == vehicle)
{
if(seatId >= 0)
{
sLog.outDebug("EnterVehicle: %u leave vehicle %u seat %d and enter %d.", GetEntry(), m_Vehicle->GetEntry(), GetTransSeat(), seatId);
ChangeSeat(seatId);
}
return;
}
else
{
sLog.outDebug("EnterVehicle: %u exit %u and enter %u.", GetEntry(), m_Vehicle->GetEntry(), vehicle->GetEntry());
ExitVehicle();
}
}
if(GetTypeId() == TYPEID_PLAYER)