Skip to content

Commit

Permalink
Lower secondary "isplayerinside" flags on building exit
Browse files Browse the repository at this point in the history
Also lower these flags when player enters a dungeon, as this is technically "inside" but not a building.
  • Loading branch information
Interkarma committed Feb 15, 2023
1 parent 64737cd commit 8b5e3b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Scripts/Game/PlayerEnterExit.cs
Expand Up @@ -870,6 +870,8 @@ private void BuildingTransitionExteriorLogic()

// Player is now outside building
isPlayerInside = false;
isPlayerInsideOpenShop = false;
IsPlayerInsideTavern = false;
PlayerTeleportedIntoDungeon = false;
buildingType = DFLocation.BuildingTypes.None;
factionID = 0;
Expand Down Expand Up @@ -1106,6 +1108,8 @@ public void EnableDungeonParent(bool cleanup = true)
if (DungeonParent != null) DungeonParent.SetActive(true);

isPlayerInside = true;
isPlayerInsideOpenShop = false;
IsPlayerInsideTavern = false;
isPlayerInsideDungeon = true;

GameManager.UpdateShadowDistance();
Expand Down

0 comments on commit 8b5e3b0

Please sign in to comment.