Skip to content

Fix skybox being manipulated outside of appropriate scenes#5925

Merged
garrettjoecox merged 1 commit intoHarbourMasters:develop-copperfrom
garrettjoecox:fix-skybox-camera-issue
Nov 8, 2025
Merged

Fix skybox being manipulated outside of appropriate scenes#5925
garrettjoecox merged 1 commit intoHarbourMasters:develop-copperfrom
garrettjoecox:fix-skybox-camera-issue

Conversation

@garrettjoecox
Copy link
Contributor

@garrettjoecox garrettjoecox commented Nov 5, 2025

& other tweaks to disable 2d backgrounds impl

The main culprit was the usage of VB_DRAW_2D_BACKGROUND in z_scene_otr.cpp which always set skyboxDisabled = false. We're instead now relying on the already existing AfterSceneCommands hook which only disables the skybox when in appropriate scenes.

From what I could tell this doesn't break any of the scenes with Djipi's pack, but would appreciate a second look.

Fixes #5923

Build Artifacts

@garrettjoecox garrettjoecox force-pushed the fix-skybox-camera-issue branch from 1a99e95 to 64175d9 Compare November 5, 2025 05:02
@Malkierian
Copy link
Contributor

Would like this pointed at develop-copper, please.

@garrettjoecox garrettjoecox force-pushed the fix-skybox-camera-issue branch from 64175d9 to c3342bb Compare November 5, 2025 05:20
@garrettjoecox garrettjoecox changed the base branch from develop to develop-copper November 5, 2025 05:20
@garrettjoecox
Copy link
Contributor Author

Would like this pointed at develop-copper, please.

done

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't tested it but code looks good.

other than the couple c-style casts that'd be good to move to static casts (these were updated while i was writing this) everything i'd want to see changed (magic number for gWeatherMode, lack of information around what the HREG conditional means) isn't new to this PR and shouldn't block it

@PurpleHato
Copy link
Member

🥖 for me, but thanks for fixing my mess, I thought it wasn't going to affect oher scenes anymore, looks like I was wrong o7
Sorry!

@garrettjoecox garrettjoecox merged commit 0e162cb into HarbourMasters:develop-copper Nov 8, 2025
6 checks passed
@garrettjoecox garrettjoecox deleted the fix-skybox-camera-issue branch November 8, 2025 21:49
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.

[Bug] Disable 2D Pre-Rendered Scenes messes with camera in some instances

4 participants