Rename "SetPosition" to "UpdatePosition".
Replace CreatureRelocation in scripts with new Creature::SetPosition.
This commit is contained in:
@@ -266,7 +266,7 @@ void FlightPathMovementGenerator::Finalize(Player & player)
|
||||
float y = 0;
|
||||
float z = 0;
|
||||
i_destinationHolder.GetLocationNow(player.GetBaseMap(), x, y, z);
|
||||
player.SetPosition(x, y, z, player.GetOrientation());
|
||||
player.UpdatePosition(x, y, z, player.GetOrientation());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ inline float Traveller<Creature>::Speed()
|
||||
template<>
|
||||
inline void Traveller<Creature>::Relocation(float x, float y, float z, float orientation)
|
||||
{
|
||||
i_traveller.SetPosition(x, y, z, orientation);
|
||||
i_traveller.UpdatePosition(x, y, z, orientation);
|
||||
}
|
||||
|
||||
template<>
|
||||
@@ -136,7 +136,7 @@ inline float Traveller<Player>::GetMoveDestinationTo(float x, float y, float z)
|
||||
template<>
|
||||
inline void Traveller<Player>::Relocation(float x, float y, float z, float orientation)
|
||||
{
|
||||
i_traveller.SetPosition(x, y, z, orientation);
|
||||
i_traveller.UpdatePosition(x, y, z, orientation);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user