Skip to content

Commit

Permalink
Fixes RigsOfRods#3079 - Minimap teleport doesn't work if in vehicle
Browse files Browse the repository at this point in the history
Broken in RigsOfRods@3111ec9 - adding linked actors to the worklist accidentally overwrites the player actor.
  • Loading branch information
ohlidalp committed Sep 3, 2023
1 parent b427e49 commit 699e203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main/GameContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,8 @@ void GameContext::TeleportPlayer(float x, float z)
Ogre::Vector3 translation = Ogre::Vector3(x, y, z) - this->GetPlayerActor()->ar_nodes[0].AbsPosition;

std::vector<ActorPtr> actorsToBeamUp;
actorsToBeamUp.push_back(this->GetPlayerActor());
actorsToBeamUp.assign(this->GetPlayerActor()->ar_linked_actors.begin(), this->GetPlayerActor()->ar_linked_actors.end());
actorsToBeamUp.push_back(this->GetPlayerActor());

float src_agl = std::numeric_limits<float>::max();
float dst_agl = std::numeric_limits<float>::max();
Expand Down

0 comments on commit 699e203

Please sign in to comment.