diff options
author | megamage <none@none> | 2009-08-15 20:36:54 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-15 20:36:54 -0500 |
commit | c88304af95f9e289036a9c4e4e5433cc95044677 (patch) | |
tree | 73e736c620d4e42e4f7381cc7c8150257baf765b /src/game/Unit.cpp | |
parent | 917bf34a9855d68ebe13e94d9beeb1473f729230 (diff) |
*Add some vehicle ai functions.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 567a3628c9c..038a8cdcb1a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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) |