Skip to content

Fix PBI when enemy attacks starting sector in tactical view#519

Merged
Asdow merged 1 commit into
masterfrom
ub-arrival-pbi-fix
Sep 26, 2025
Merged

Fix PBI when enemy attacks starting sector in tactical view#519
Asdow merged 1 commit into
masterfrom
ub-arrival-pbi-fix

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented Sep 26, 2025

Closes #518

When enemy attacks the starting sector and player is in tactical view. We go from tactical to strategic screen to show the prebattle interface instead of staying in tactical. The game errors on the sector assert in HandleBlitOfSectorLocatorIcon() when trying to draw the glowing red locator around the sector just before displaying the prebattle interface.

Normally the locator sector gets set properly when compressing time for the first time in a new game start but due to UB going into playing the intro video, it skips the call to HandleTimeCompressWithTeamJackedInAndGearedToGo() that would eventually set it. Neither can we rely on setting the sector when initiating the prebattle interface since MapScreenHandle() tries to display the locator before the PBI gets initialized.

When enemy attacks the starting sector and player is in tactical view. We go from tactical to strategic screen to show the prebattle interface instead of staying in tactical. The game errors on the sector assert when trying to draw the glowing red locator around the sector just before displaying the prebattle interface.

Normally the sector gets set properly when compressing time for the first time in a new game start but due to UB going into playing the intro video, it skips the call to HandleTimeCompressWithTeamJackedInAndGearedToGo() that would eventually set it. Neither can we rely on setting the sector when initiating the prebattle interface since MapScreenHandle() tries to display the locator before the PBI gets initialized.
@Asdow Asdow merged commit 6c42f22 into master Sep 26, 2025
9 checks passed
@Asdow Asdow deleted the ub-arrival-pbi-fix branch September 26, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UB - Game Crash when enemies arrive in H7 if player is in tactical view

1 participant