TombRunners / autosplitters

Tomb Raider Livesplit autosplitter code.
MIT License
1 stars 4 forks source link

Fixed Glitchless ShouldSplit bug affecting some loads into and out of Catacombs. #79

Closed MidgeOnGithub closed 1 year ago

MidgeOnGithub commented 1 year ago

Glitchless contains a notable exception to the normal splits for the level Catacombs. Namely, when Lara enters Catacombs, the split should only occur if the full level is playable, for which there is a check against some flags affected by a pillar's position. The item array check must occur after the level is fully loaded, rather than with the loading screen (more accurately, when gfLevelComplete changes, as with normal splits).

The general ShouldSplit has logic to avoid duplicate splits but it only worked for standard splits occurring at loading screens. So, the issue was occurring because GlitchlessShouldSplit has the need for a special exception for the Alexandria section of the game; the "subsequent frames of a load" check was not being performed once the special case was resolved. Now, the special case is all that is processed when gfLevelComplete has not changed.