Jump to content

[fix] Traveller, player relocation


Guest SilverIce

Recommended Posts

What bug does the patch fix? What features does the patch add?

used more correct Player::Setposition instead of Map::Relocation at player's relocation in Traveller

every relocation tick we need call CheckExploreSystem, update underwater state, update player position on minimap, etc. All that things doing in Player::SetPosition

diff --git a/src/game/Traveller.h b/src/game/Traveller.h
index dd58976..0116bea 100644
--- a/src/game/Traveller.h
+++ b/src/game/Traveller.h
@@ -141,7 +141,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.GetMap()->PlayerRelocation(&i_traveller, x, y, z, orientation);
+    i_traveller.SetPosition(x, y, z, orientation);
}

template<>

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use