Skip to content

Commit

Permalink
tr1/objects/door: fix initialising doors (#1798)
Browse files Browse the repository at this point in the history
This fixes initialising doors sitting on portals where the portal room
has a flipped room.

Resolves #1797.
  • Loading branch information
lahm86 authored Nov 2, 2024
1 parent b84a9ff commit 8dd93d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tr1/game/objects/general/door.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void Door_Initialise(int16_t item_num)
if (r->flipped_room == -1) {
door->d2flip.sector = NULL;
} else {
r = Room_Get(r->flipped_room);
M_Initialise(r, item, 0, 0, &door->d2flip);
}

Expand Down

0 comments on commit 8dd93d9

Please sign in to comment.