This includes following changes: * Reorder exit conditions by frequency they're hit at, this makes the function exit earlier in many cases without having to do expensive accesses to global memory. * The code in C tested (eax > 0x2000) || (ecx > 0x2000) while I believe it was meant to check for >= instead (`cmp ax,2000h; jnb`) * The check mentioned above was changed to be expressed more concisely: `((eax | ecx) & 0xe000)`, which generates a single `test` instead of two. It improves performance by 1-2fps in parks that rely heavily on this function, like the mega-micro park from https://github.com/OpenRCT2/OpenRCT2/issues/2589
Source directory structure
-
audio
Contains files for mixing and playing music and sound.
-
drawing
Low level drawing logic and palette tables.
-
interface
Window and widget logic, includes high level drawing and input.
-
localisation
String IDs, currency and date logic.
-
network
Network and multiplayer logic, includes management of network games and downloading / uploading of content.
-
management
Park management logic such as finance, marketing and research.
-
peep
Guest and staff definitions and logic such as action management and pathfinding.
-
platform
Compiler and operating system specific code such as type definitions, message handling and file input / output.
-
ride
Data and logic for rides, vehicles and track.
-
util
Utility and helper functions.
-
windows
Definitions and logic for all the windows in the game.
-
world
World objects and mechanics such as the climate, landscape, sprites and park.