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
* Move Csg unit into OpenRCT2 namespace
* Move G1Element into its own header file
* Clean up SpriteCommands.h
* Add trailing namespace comment to Csg.cpp
* Remove Drawing.h dependency from Graph.h
* Add <memory> include to G1Element.h
* Remove Drawing.h include from ImageTable.h (used by all objects!)
* Drop Drawing.h dependency from OpenGLFramebuffer.h
* Drop Drawing.h dependency from TextureCache.h
* Drop Drawing.h include from TitleScene.h
* Drop Drawing.h dependency from Widget.h
* Add <optional> include to SpriteFile.h
* Add Drawing.h to PlayTests, S6ImportExportTests
* Include <cstdint> in TitleScene.h for SIZE_MAX
Previously it was getting captured by reference and the action using it
was queued up for execution in next tick, resulting in reference going
out of scope. Capturing it by value fixes this issue as it is POD
struct.
* Fix#20486: Placing track designs with scenery disabled desyncs
* Remove pointless error logging, too much log spam
* Don't entirely disable all scenery when one element is obstructed
* Update changelog.txt
* Bump up network version
* clang-format
Since about a year ago, OpenRCT2 has allowed players to shift ride/track designs using modifier keys (#22669). This was, however, limited to heights above-ground. This PR changes this by omitting the 'Z placement assist' when ctrl/shift modifiers are used. This means the helpful 'nudge' to overground is now omitted if (and only if) these modifier keys are involved.
Below is an example of what placement now looks like (with clearance checks disabled for easier debugging):
https://github.com/user-attachments/assets/3b23bc1d-ab7b-43a2-ad40-216ab83952d2