This commit is contained in:
Ovahlord
2018-03-19 12:43:12 +01:00
3 changed files with 5 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
#include "Utilities/ByteConverter.h"
#include <cassert>
class TC_SHARED_API DBCFileLoader
class TC_COMMON_API DBCFileLoader
{
public:
DBCFileLoader();

View File

@@ -2626,7 +2626,7 @@ bool Player::IsInAreaTriggerRadius(const AreaTriggerEntry* trigger) const
if (!trigger)
return false;
if (int32(GetMapId()) != trigger->mapid && !GetPhaseShift().HasVisibleMapId(trigger->mapid))
if (GetMapId() != trigger->mapid && !GetPhaseShift().HasVisibleMapId(trigger->mapid))
return false;
if (trigger->PhaseID || trigger->PhaseGroupID || trigger->PhaseUseFlags)

View File

@@ -507,6 +507,7 @@ void Transport::UpdatePosition(float x, float y, float z, float o)
Cell oldCell(GetPositionX(), GetPositionY());
Relocate(x, y, z, o);
m_stationaryPosition.SetOrientation(o);
UpdateModelPosition();
UpdatePassengerPositions(_passengers);
@@ -619,6 +620,8 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl
}
else
{
UpdatePosition(x, y, z, o);
// Teleport players, they need to know it
for (PassengerSet::iterator itr = _passengers.begin(); itr != _passengers.end(); ++itr)
{
@@ -637,7 +640,6 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl
}
}
UpdatePosition(x, y, z, o);
return false;
}
}