From 9700d481fa19ab7d8c1737de040a1fb578eab81f Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sun, 29 Aug 2010 12:23:41 +0200 Subject: [PATCH] [10421] Correct typo in function name. Signed-off-by: NoFantasy --- src/game/DestinationHolderImp.h | 2 +- src/game/Traveller.h | 4 ++-- src/game/Unit.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/DestinationHolderImp.h b/src/game/DestinationHolderImp.h index 31d9da745..08bb44f81 100644 --- a/src/game/DestinationHolderImp.h +++ b/src/game/DestinationHolderImp.h @@ -83,7 +83,7 @@ DestinationHolder::StartTravel(TRAVELLER &traveller, bool sendMove) i_fromY = traveller.GetPositionY(); 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; if(sendMove) { diff --git a/src/game/Traveller.h b/src/game/Traveller.h index 89688d2f3..a88e29b20 100644 --- a/src/game/Traveller.h +++ b/src/game/Traveller.h @@ -50,7 +50,7 @@ struct MANGOS_DLL_DECL Traveller float Speed(void) { ASSERT(false); return 0.0f; } 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) { Relocation(x, y, z, i_traveller.GetOrientation()); } @@ -59,7 +59,7 @@ struct MANGOS_DLL_DECL Traveller }; template -inline uint32 Traveller::GetTotalTrevelTimeTo(float x, float y, float z) +inline uint32 Traveller::GetTotalTravelTimeTo(float x, float y, float z) { float dist = GetMoveDestinationTo(x,y,z); double speed = Speed(); diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index db3401206..f8461c117 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -395,12 +395,12 @@ void Unit::SendMonsterMoveWithSpeed(float x, float y, float z, uint32 transitTim if(GetTypeId()==TYPEID_PLAYER) { Traveller traveller(*(Player*)this); - transitTime = traveller.GetTotalTrevelTimeTo(x, y, z); + transitTime = traveller.GetTotalTravelTimeTo(x, y, z); } else { Traveller traveller(*(Creature*)this); - transitTime = traveller.GetTotalTrevelTimeTo(x, y, z); + transitTime = traveller.GetTotalTravelTimeTo(x, y, z); } } //float orientation = (float)atan2((double)dy, (double)dx); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c3e8a3711..f69ca2305 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10420" + #define REVISION_NR "10421" #endif // __REVISION_NR_H__