Skip to content

Commit

Permalink
tr2/objects/door: fix initialising doors
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 3, 2024
1 parent d7c49a4 commit 432f7bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tr2/game/objects/general/door.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ void __cdecl Door_Initialise(const int16_t item_num)

Door_Shut(&door->d2);
Door_Shut(&door->d2flip);
}

const int16_t prev_room = item->room_num;
Item_NewRoom(item_num, room_num);
item->room_num = prev_room;
const int16_t prev_room = item->room_num;
Item_NewRoom(item_num, room_num);
item->room_num = prev_room;
}
}

void __cdecl Door_Control(const int16_t item_num)
Expand Down

0 comments on commit 432f7bd

Please sign in to comment.