1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 18:07:53 +01:00
Files
OpenRCT2/src/openrct2
Duncan 12dde3a589 Refactor of Vehicle Sound Functions (#6907)
* Refactor vehicle_update_sound_params

Named known params.
Changed function structure to use more return statements to prevent multiple nested ifs.
Used core memory functions instead of hand rolled version.
Added more comments.
Named sub_6BC2F3.
Added comment on likely source of corruption of sound.

* Refactor vehicle_sounds_update

Split the function up into multiple functions.
Rework code to remove GoTos.

* Label params. Refactor slightly the restraint code to use bools
2018-01-04 21:38:27 +00:00
..
2018-01-03 20:40:51 +01:00
2018-01-04 07:36:54 +01:00
2018-01-04 01:12:34 +00:00
2018-01-04 07:36:54 +01:00
2018-01-04 06:58:44 +01:00
2018-01-03 20:40:51 +01:00
2018-01-04 17:44:51 +01:00
2018-01-04 06:58:44 +01:00
2018-01-04 06:58:44 +01:00
2018-01-04 07:36:54 +01:00
2018-01-04 17:44:51 +01:00
2017-12-14 10:03:21 +01:00
2018-01-04 17:44:51 +01:00
2017-12-31 20:03:09 +01:00
2017-12-16 15:47:38 +02:00
2018-01-04 07:36:54 +01:00
2018-01-03 10:16:51 +01:00
2018-01-04 06:58:44 +01:00
2017-12-14 10:03:21 +01:00
2018-01-04 06:58:44 +01:00
2018-01-01 23:49:09 +01:00
2018-01-03 10:16:51 +01:00
2017-12-16 15:47:38 +02:00
2018-01-04 07:36:54 +01:00
2017-12-13 08:03:48 +01:00
2018-01-03 10:16:51 +01:00
2018-01-03 10:16:51 +01:00
2018-01-03 15:07:17 +01:00
2018-01-03 20:40:51 +01:00
2018-01-03 15:07:17 +01:00
2017-12-16 15:47:38 +02:00
2017-12-16 15:47:38 +02:00
2018-01-04 06:58:44 +01:00
2017-12-13 08:03:48 +01:00
2017-12-07 22:04:33 +00:00
2018-01-03 10:16:51 +01:00
2018-01-04 17:44:51 +01:00

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.