mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8465] Removed not needed checks.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
bba20b92a5
commit
3b2624b86f
1 changed files with 1 additions and 5 deletions
|
|
@ -104,8 +104,7 @@ DestinationHolder<TRAVELLER>::UpdateTraveller(TRAVELLER &traveller, uint32 diff,
|
||||||
|
|
||||||
float x,y,z;
|
float x,y,z;
|
||||||
GetLocationNowNoMicroMovement(x, y, z);
|
GetLocationNowNoMicroMovement(x, y, z);
|
||||||
if( x == -431602080 )
|
|
||||||
return false;
|
|
||||||
if (traveller.GetTraveller().GetPositionX() != x || traveller.GetTraveller().GetPositionY() != y || traveller.GetTraveller().GetPositionZ() != z)
|
if (traveller.GetTraveller().GetPositionX() != x || traveller.GetTraveller().GetPositionY() != y || traveller.GetTraveller().GetPositionZ() != z)
|
||||||
{
|
{
|
||||||
float ori = traveller.GetTraveller().GetAngle(x, y);
|
float ori = traveller.GetTraveller().GetAngle(x, y);
|
||||||
|
|
@ -131,9 +130,6 @@ DestinationHolder<TRAVELLER>::UpdateTraveller(TRAVELLER &traveller, uint32 diff,
|
||||||
else
|
else
|
||||||
GetLocationNow(traveller.GetTraveller().GetBaseMap(), x, y, z, false);
|
GetLocationNow(traveller.GetTraveller().GetBaseMap(), x, y, z, false);
|
||||||
|
|
||||||
if( x == -431602080 )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (traveller.GetTraveller().GetPositionX() != x || traveller.GetTraveller().GetPositionY() != y || traveller.GetTraveller().GetPositionZ() != z)
|
if (traveller.GetTraveller().GetPositionX() != x || traveller.GetTraveller().GetPositionY() != y || traveller.GetTraveller().GetPositionZ() != z)
|
||||||
{
|
{
|
||||||
float ori = traveller.GetTraveller().GetAngle(x, y);
|
float ori = traveller.GetTraveller().GetAngle(x, y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue