The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
This targets initial gradle task which takes over a minute in CI:
> `Calculating task graph as no cached configuration is available for tasks: app:assembleRelease`
Background jobs in PreloaderScene call OpenProgress/SetProgress/CloseProgress which modify gWindowList. Meanwhile, Tick() was iterating gWindowList viaContextHandleInput() and InvalidateAll(), causing iterator invalidation whenthe vector reallocates.
This commit fixes it by skipping window iteration while background jobs are running, which is safe because the progress window has no interactive elements during loading (close button is hidden, viewport inhibited)
This putts all mini golf track motion, flag handling, collision detection, and hole measurement logic into Vehicle.MiniGolf.cpp. Two static helper functions (GetAccelerationDecrease2 and PitchAndRollStart) are hole in ...two'd (duped) since they're also used by the main Vehicle.cpp
This commit departs Synchronised departure, loading/waiting, departing, travelling, and arriving functions. They're now are now stationed in Vehicle.Station.cpp
This moves the flat ride operating logic like the swinging, ferris wheel, rotating, simulator, haunted house, top spin, circus, etc etc, swing/spin car physics, and the vehicle animation system for the steam locomotive, swan boat, multi-dimension, animal flying, etc etc etc to Vehicle.Animation.cpp. Animates vehicleBreakdown from static to extern to allow shared access across translation units
Part of #25951
This moves vehicle sound logic like UpdateSound, scream and friction sound handling, lift hill sounds and Claxon to Vehicle.Sound.cpp. Also, it promotes SoundIdVolume struct definition from Vehicle.cpp to Vehicle.h to allow shared access across translation units. Music to my ears. Except.. not really.
Part of #25951
This moves all crash and collision functions from Vehicle.cpp into a dedicated Vehicle.Crash.cpp file. Functions are moved intact with
no logic changes. Also, ride_get_train_index_from_vehicle is made non static and it's now declared in Vehicle.h as it's now needed across translation units
Part of #25951
Moved all boat hire functions from Vehicle.cpp into a dedicatedVehicle.BoatHire.cpp file. Functions are moved intact with nologic changes.
Moved functions:
- UpdateTravellingBoatHireSetup
- UpdateDepartingBoatHire
- UpdateTravellingBoat
- TryReconnectBoatToTrack
- UpdateMotionBoatHire
- UpdateBoatLocation
- vehicle_boat_is_location_accessible
Commit 43f7d2d91 introduced a regression where logicalCmp compared digit starting strings lexicographically instead of numerically, causing folders to sort as "1, 10, 11, 2..." instead of "1, 2... 10, 11". This commit removes the broken special case, the main loop already handles
numeric comparison correctly