Skip to content

Commit

Permalink
Fix not starting in correct cell using StartCellX/StartCellY
Browse files Browse the repository at this point in the history
Conditional execution did not set correct cell in the case where cell was missing a dungeon interior or StartInDungeon is false.
  • Loading branch information
Interkarma committed Jul 13, 2021
1 parent f4ab40f commit 0d0a3e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/Game/Utility/StartGameBehaviour.cs
Expand Up @@ -396,6 +396,7 @@ void StartNewCharacter()
playerEnterExit.EnableExteriorParent();
if (streamingWorld)
{
streamingWorld.TeleportToCoordinates(mapPixel.X, mapPixel.Y);
streamingWorld.SetAutoReposition(StreamingWorld.RepositionMethods.Origin, Vector3.zero);
streamingWorld.suppressWorld = false;
}
Expand Down

0 comments on commit 0d0a3e6

Please sign in to comment.