OpenRCT2/src/openrct2
duncanspumpkin 55aea7188b Fix #6617. Maze deletion no longer costs 0x800000 for certain mazes.
When a maze does not have a completely hollowed out hedge the game command would return 0x8000000 as it tries to remove an element that has already been deleted. As game actions no longer use 0x80000000 to indicate a failure this would get interpreted as the refund price and cause the issue.

Fix was to introduce checks when adding up the refund price. This was done rather than changing the game action so that it can be properly fixed when get_refund_price is converted into a game action
2017-11-08 16:03:41 +01:00
..
actions Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
audio Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
cmdline Refactor includes (#6512) 2017-10-19 10:01:05 +02:00
config Fix spelling errors in neighbour 2017-11-06 23:05:21 +01:00
core Apply some refactoring 2017-11-02 12:22:28 +01:00
drawing Apply some refactoring 2017-11-02 12:22:28 +01:00
interface Move object load error window to UI module 2017-11-03 01:54:37 +01:00
localisation Add smooth nearest neighbor scaling 2017-11-06 23:05:21 +01:00
management Move Ride window to UI module 2017-11-03 01:54:37 +01:00
network Fix #6617. Maze deletion no longer costs 0x800000 for certain mazes. 2017-11-08 16:03:41 +01:00
object Apply some refactoring 2017-11-02 12:22:28 +01:00
paint Apply some refactoring 2017-11-02 12:22:28 +01:00
peep Apply some refactoring 2017-11-02 12:22:28 +01:00
platform Format shared.c 2017-11-08 08:45:05 +01:00
rct1 Replace mapElement with tileElement 2017-10-31 19:59:06 +01:00
rct2 Stub interop for NO_RCT2 builds 2017-11-06 22:05:36 +01:00
rct12 Apply some refactoring 2017-11-02 12:22:28 +01:00
ride Fix #6617. Maze deletion no longer costs 0x800000 for certain mazes. 2017-11-08 16:03:41 +01:00
scenario Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
title Move map tooltip to ui module 2017-11-03 01:54:37 +01:00
ui Move network status window to UI module 2017-11-03 01:54:37 +01:00
util Apply some refactoring 2017-11-02 12:22:28 +01:00
windows Move object load error window to UI module 2017-11-03 01:54:37 +01:00
world Allow for bit depth inspection when reading PNGs 2017-11-05 23:19:25 +01:00
CMakeLists.txt Fix failing link on Ubuntu due to missing libiconv 2017-11-06 21:53:36 +01:00
Context.cpp Fix #6500: Fail to load resources when no config 2017-11-07 21:03:58 +00:00
Context.h Move network status window to UI module 2017-11-03 01:54:37 +01:00
Editor.cpp Apply some refactoring 2017-11-02 12:22:28 +01:00
Editor.h Implement #1329: Add remove-unused-objects command (#6324) 2017-09-29 16:32:30 +02:00
FileClassifier.cpp Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
FileClassifier.h Refactor game load functions, resolves #6011 2017-08-23 08:04:36 +02:00
Imaging.cpp Allow for bit depth inspection when reading PNGs 2017-11-05 23:19:25 +01:00
Imaging.h Allow for bit depth inspection when reading PNGs 2017-11-05 23:19:25 +01:00
OpenRCT2.cpp Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
OpenRCT2.h Make sure variables are either static or declared externally 2017-10-09 22:59:40 +02:00
ParkImporter.cpp Warn when loading incompatible RCTC saves 2017-11-01 20:23:06 +01:00
ParkImporter.h Apply some refactoring 2017-11-02 12:22:28 +01:00
PlatformEnvironment.cpp Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
PlatformEnvironment.h Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
Version.cpp Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
Version.h Add Emscripten platform and architecture defines 2017-09-08 11:57:24 +02:00
cheats.c Replace mapElement with tileElement 2017-10-31 19:59:06 +01:00
cheats.h Turn 'unlock all prices' into a regular option 2017-10-11 08:33:17 +02:00
cmdline_sprite.c Minor formatting changes 2017-11-05 23:19:25 +01:00
cmdline_sprite.h Make sure variables are either static or declared externally 2017-10-09 22:59:40 +02:00
common.h Create define for MONEY16_UNDEFINED 2017-10-18 08:06:16 +02:00
diagnostic.c Fix android builds 2017-10-10 14:53:33 +02:00
diagnostic.h Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
game.c Move object load error window to UI module 2017-11-03 01:54:37 +01:00
game.h Feature: Preview title sequences in-game 2017-10-30 12:07:01 +01:00
input.c Apply some refactoring 2017-11-02 12:22:28 +01:00
input.h Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
intro.c Move screen variables to OpenRCT2.h 2017-07-29 20:29:29 +01:00
intro.h Move extern "C" {} blocks to headers (#6282) 2017-09-18 17:05:28 +02:00
libopenrct2.vcxproj Remove changes from libopenrct2.vcxproj 2017-10-05 10:42:44 +02:00
object.h Remove unused function 2017-10-24 09:40:58 +02:00
object_list.c Remove unused function 2017-10-24 09:40:58 +02:00
object_list.h Move editor to C++; add defines for object limits 2017-09-22 07:56:24 +02:00
rct1.c Expand tabs to spaces 2017-06-06 23:46:14 +02:00
rct1.h Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
rct2.h Rename map_element to tile_element 2017-10-31 19:59:06 +01:00
rct12.h Refactor expenditure table and history graph 2017-10-12 20:35:59 +02:00
readme.md Move contents of src into project sub directory 2017-01-04 17:44:12 +00:00
sprites.h Fix RCTC g1.dat rendering issues 2017-09-30 19:18:31 -05:00

readme.md

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.