mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10421] Correct typo in function name.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
04b62bb9ee
commit
9700d481fa
4 changed files with 6 additions and 6 deletions
|
|
@ -83,7 +83,7 @@ DestinationHolder<TRAVELLER>::StartTravel(TRAVELLER &traveller, bool sendMove)
|
||||||
i_fromY = traveller.GetPositionY();
|
i_fromY = traveller.GetPositionY();
|
||||||
i_fromZ = traveller.GetPositionZ();
|
i_fromZ = traveller.GetPositionZ();
|
||||||
|
|
||||||
i_totalTravelTime = traveller.GetTotalTrevelTimeTo(i_destX,i_destY,i_destZ);
|
i_totalTravelTime = traveller.GetTotalTravelTimeTo(i_destX,i_destY,i_destZ);
|
||||||
i_timeElapsed = 0;
|
i_timeElapsed = 0;
|
||||||
if(sendMove)
|
if(sendMove)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ struct MANGOS_DLL_DECL Traveller
|
||||||
|
|
||||||
float Speed(void) { ASSERT(false); return 0.0f; }
|
float Speed(void) { ASSERT(false); return 0.0f; }
|
||||||
float GetMoveDestinationTo(float x, float y, float z);
|
float GetMoveDestinationTo(float x, float y, float z);
|
||||||
uint32 GetTotalTrevelTimeTo(float x, float y, float z);
|
uint32 GetTotalTravelTimeTo(float x, float y, float z);
|
||||||
|
|
||||||
void Relocation(float x, float y, float z, float orientation) {}
|
void Relocation(float x, float y, float z, float orientation) {}
|
||||||
void Relocation(float x, float y, float z) { Relocation(x, y, z, i_traveller.GetOrientation()); }
|
void Relocation(float x, float y, float z) { Relocation(x, y, z, i_traveller.GetOrientation()); }
|
||||||
|
|
@ -59,7 +59,7 @@ struct MANGOS_DLL_DECL Traveller
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
inline uint32 Traveller<T>::GetTotalTrevelTimeTo(float x, float y, float z)
|
inline uint32 Traveller<T>::GetTotalTravelTimeTo(float x, float y, float z)
|
||||||
{
|
{
|
||||||
float dist = GetMoveDestinationTo(x,y,z);
|
float dist = GetMoveDestinationTo(x,y,z);
|
||||||
double speed = Speed();
|
double speed = Speed();
|
||||||
|
|
|
||||||
|
|
@ -395,12 +395,12 @@ void Unit::SendMonsterMoveWithSpeed(float x, float y, float z, uint32 transitTim
|
||||||
if(GetTypeId()==TYPEID_PLAYER)
|
if(GetTypeId()==TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
Traveller<Player> traveller(*(Player*)this);
|
Traveller<Player> traveller(*(Player*)this);
|
||||||
transitTime = traveller.GetTotalTrevelTimeTo(x, y, z);
|
transitTime = traveller.GetTotalTravelTimeTo(x, y, z);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Traveller<Creature> traveller(*(Creature*)this);
|
Traveller<Creature> traveller(*(Creature*)this);
|
||||||
transitTime = traveller.GetTotalTrevelTimeTo(x, y, z);
|
transitTime = traveller.GetTotalTravelTimeTo(x, y, z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//float orientation = (float)atan2((double)dy, (double)dx);
|
//float orientation = (float)atan2((double)dy, (double)dx);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10420"
|
#define REVISION_NR "10421"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue