1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 03:35:09 +01:00
Commit Graph

638 Commits

Author SHA1 Message Date
Michał Janiszewski
381545aa2b Refactor loop in vehicle update not to access invalid memory 2016-07-17 23:14:27 +02:00
Michał Janiszewski
9f57c82653 Refactor access to g_sprite_list
Hide g_sprite_list behind accessor function with a check. `assert` is
temporarily disabled, as it breaks nearly every park.
2016-07-17 22:19:34 +02:00
Ted John
3a8b0c662f import peep sprite data 2016-07-15 23:56:51 +01:00
Michał Janiszewski
a6d0e6916e Fix function definitions to match their declarations
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Marijn van der Werf
5204fb0ce9 Clean up string and sprite ID's (#3977) 2016-07-14 14:07:49 +02:00
Ted John
04340021f6 Fix #4071: Guests paid when free entry park flag
Make most usages of park entrance fee use a common function which does the necessary checks.
2016-07-13 19:48:42 +01:00
Ted John
dca816cfd3 Merge pull request #4024 from IntelOrca/refactor/object-list
Refactor and improve the object system:
- Objects are now exported to user directory under 'object'.
- Object directories are scanned recursively.
- Improves reliability of object loading and handling of bad objects.
- Improve performance of object scanning.
- Only load new objects when loading a new game.
- Improve changing language experience.
2016-07-11 23:45:45 +01:00
Daniel Trujillo Viedma
1e3504cd36 Fix #1432: Sandbox mode reducing map size causes game to freeze
Shift correctly direction bits when calling game_do_command.

game_command_remove_large_scenery() expects the direction bits
to be shifted 8 times to the left, so the call to game_do_command
has been modified to match this requirement.
2016-07-10 23:11:04 +01:00
Ted John
82d90fe350 use pointer for smallscenery/var10 2016-07-08 22:58:38 +01:00
Ted John
52c11267bc add small scenery preview 2016-07-08 22:58:38 +01:00
Michał Janiszewski
dfa482b1b5 Revert "Merge pull request #3897 from janisozaur/rebase-no-rct2"
This reverts commit 22c0cc92e6, reversing
changes made to 7b421c8052.
2016-06-24 22:40:37 +02:00
Michał Janiszewski
0b50ce44f1 Revert "Merge pull request #3937 from janisozaur/fix-3897"
This reverts commit d892f6b683, reversing
changes made to c487e1278b.
2016-06-24 22:40:37 +02:00
Michał Janiszewski
6e35eac6f8 Update fields in rct_small_scenery_entry_32bit 2016-06-22 21:37:44 +02:00
Michał Janiszewski
58b4361e8d Pack structs for when loading from files 2016-06-19 18:12:14 +02:00
Hugo Wallenburg
fc9595d013 Freeze climate only freezes climate updates, allowing lightning to strike (#3904) 2016-06-18 17:48:17 +01:00
Michał Janiszewski
78e2aec5fe Make map element arrays static 2016-06-16 22:51:28 +02:00
Michał Janiszewski
c2bf4b75e7 Integrate tile map element pointers usage (#3442) 2016-06-16 19:05:15 +02:00
Ted John
d07b9535c2 integrate variables: object entry lists 2016-06-16 11:36:15 +02:00
Marijn van der Werf
b13f499d5b Fix typo in enum value 2016-06-12 19:01:16 +02:00
duncanspumpkin
a36a6c3ef9 Small refactor 2016-06-11 11:24:45 +02:00
duncanspumpkin
a37d5e7382 Finish var_0A paths 2016-06-11 11:06:53 +02:00
Marijn van der Werf
9de7492121 Start decompilation of 0x6A3590 2016-06-11 11:06:53 +02:00
Ted John
428724d86c refactor reset_sprite_spatial_index, integrate gSpriteSpatialIndex 2016-06-03 18:13:00 +01:00
Ted John
82dd7601eb Merge pull request #3782 from janisozaur/desyncs
synchronise reset_0x69EBE4 over network
2016-06-03 10:47:01 +01:00
Michał Janiszewski
1508e49a28 Change macro to assert_struct_size 2016-06-03 11:29:50 +02:00
Michał Janiszewski
934ce5e84e Fix 64 bit by skipping static_asserts for structs with pointers 2016-06-03 10:55:21 +02:00
Michał Janiszewski
60630b9ad7 Drop PACKED attribute 2016-06-03 10:55:21 +02:00
Michał Janiszewski
df3030e4a9 Provide static_assert for hard-coded struct sizes. 2016-06-03 10:55:21 +02:00
Michał Janiszewski
3907fcd9d2 Explicitly pack structs 2016-06-03 10:55:21 +02:00
Michał Janiszewski
4955279b7b Synchronise reset_0x69EBE4 over network
Clients calling reset_0x69EBE4 not in sync is a major cause of desyncs,
this change tries to force sync across clients
2016-06-03 00:33:15 +02:00
Goddesen
809e459495 Added cheat to disable plant aging 2016-06-03 00:33:15 +02:00
Hugo Wallenburg
9eab82a7d9 Update height check for slopes to match new limits. Fixes #3792. (#3799) 2016-06-02 19:34:37 +02:00
Ted John
2a614ec4d9 rename path bits (var_06) to (flags) 2016-05-30 23:39:43 +01:00
Ted John
3e307b8e2a name path addition flags 2016-05-30 23:31:36 +01:00
CraigCraig
c946d2fb06 Various Spelling Fixes - 5/29/16 (#3770) 2016-05-29 10:00:38 +01:00
Michael Steenbeek
1d14f21e25 Allow raising terrain to 64 in-game units, fixes #3568, fixes #3455 (#3764) 2016-05-28 12:24:11 +01:00
CraigCraig
3f9afb9744 Various Spellchecks (#3741) 2016-05-26 09:49:19 +02:00
zsilencer
1c5a73db54 integrate ScenerySubTileOffsets 2016-05-25 00:03:25 -06:00
zsilencer
a963935c11 Decompile scenery_multiple_paint 2016-05-22 08:23:03 -06:00
Ted John
25ac99e04a add variable for gS6Info 2016-05-20 23:26:19 +01:00
Ted John
9a09cb5dad Merge pull request #3639 from zsilencer/paint-setup/scenery
Decompile scenery_paint
2016-05-20 08:12:26 +01:00
Michał Janiszewski
9081ddcc5d Take care not to dereference NULL element (#3137) 2016-05-19 23:57:56 +01:00
zsilencer
c0e187a023 Decompile scenery_paint 2016-05-18 16:23:48 -06:00
Marijn van der Werf
44021fdb0a Rename flag 2016-05-18 22:46:24 +02:00
Ted John
6510de394b remove use of 0x00F1AEE0 in footpath_is_connected_to_map_edge 2016-05-17 22:03:06 +01:00
Ted John
e73aeb9a42 integrate gGameCommandNestLevel 2016-05-17 21:47:14 +01:00
Ted John
4847cfe84f clean up footpath_get_coordinates_from_pos 2016-05-17 21:42:46 +01:00
Ted John
14825a8dbc integrate queue chain and refactor 2016-05-17 21:29:05 +01:00
Ted John
c879638f22 integrate ground flag variables 2016-05-17 20:51:11 +01:00
Ted John
eb19ca8626 integrate variable: gFootpathPrice 2016-05-16 19:05:37 +01:00