Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

types: fix NO_ROOM shenaningans #127

Merged
merged 1 commit into from
Aug 6, 2024
Merged

types: fix NO_ROOM shenaningans #127

merged 1 commit into from
Aug 6, 2024

Conversation

rr-
Copy link
Collaborator

@rr- rr- commented Aug 6, 2024

Resolves #125. The problem and the fix found by @lahm86.

@rr- rr- requested review from a team, eikehein, lahm86 and walkawayy and removed request for a team August 6, 2024 09:57
@rr-
Copy link
Collaborator Author

rr- commented Aug 6, 2024

I have a small doubt about flipped_room which originally I believe only uses -1. Room_FlipMap assigns NO_ROOM to it in TR2X (as I think it makes more sense) whereas in the OG it uses -1 (which is a deviation from everywhere else).

I'm afraid this can cause problems – a scenario that comes to my mind is that the level load routines fill it with -1 rather than 255, but we don't have these decompiled yet.

@rr- rr- force-pushed the b125-bad-no_room branch from 15d1d64 to 3b14ba3 Compare August 6, 2024 10:08
@rr- rr- merged commit 3b14ba3 into develop Aug 6, 2024
2 checks passed
@rr- rr- deleted the b125-bad-no_room branch August 6, 2024 10:10
@rr- rr- added the TRX bug A bug with TR2X label Sep 5, 2024
@rr- rr- added the TR2 label Oct 3, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
TR2 TRX bug A bug with TR2X
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TR2X bug: The game crashes when Lara kills the first enemy in Living Quarters
2 participants