Skip to content

Commit

Permalink
Fix doors not extending at right side of a room
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 21, 2024
1 parent 0320288 commit 56ea0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMS-LIB/patches/DoorLockRando.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC
.InstanceID;

bool shouldExtendTiles = false;
if (gameObject.X == 0 || gameObject.Y == 0)
if (gameObject.X == 0 || gameObject.X == room.Width)
shouldExtendTiles = true;
else if (door.InstanceID == waterfallID || door.InstanceID == hideoutAlphaID || door.InstanceID == skreekStreetID || door.InstanceID == graveGrottoID)
shouldExtendTiles = true;
Expand Down

0 comments on commit 56ea0c7

Please sign in to comment.