1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00
Commit Graph

121 Commits

Author SHA1 Message Date
Michał Janiszewski
f8145b6edc Refactor inclusion of addresses.h
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Ted John
25328bccc9 Merge pull request #4221 from zaxcav/pathfind
Path finding fixes and optimisations
2016-08-21 21:34:12 +01:00
zaxcav
b1da59d25a Ignore isolated footpath tiles in the wide processing. 2016-08-21 22:24:40 +02:00
zaxcav
60acab8676 Remove if statements originally used to overlay grid of non-wide paths. 2016-08-21 22:24:19 +02:00
zaxcav
86be86331e Remove exlusions from path tiles being flagged wide based on tile coordinates. 2016-08-21 22:23:38 +02:00
Marijn van der Werf
82d0d229ce Use word_981D6C 2016-08-14 13:12:07 +01:00
Marijn van der Werf
a5601b6558 Include data at 0x0098D7EC 2016-08-12 22:36:59 +02:00
Marijn van der Werf
f3bc1f13bc Integrate 0x0098D7F0 2016-08-12 22:36:53 +02:00
Marijn van der Werf
8903559f75 Include data at 0x99ba64 and 0x99ca64 2016-08-12 20:51:22 +01: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
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
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
Ted John
428724d86c refactor reset_sprite_spatial_index, integrate gSpriteSpatialIndex 2016-06-03 18:13:00 +01: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
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
Ted John
6f7db1f9b6 rename rct_path_type to rct_footpath_entry 2016-05-15 16:11:34 +01:00
Ted John
3d47f9869f write get entry methods for scenery and path 2016-05-15 16:09:26 +01:00
Ted John
81efb92d53 integrate map selection variables 2016-05-14 00:54:13 +01:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
Ted John
d2c5501eea refactor sprite heads and counts 2016-05-09 00:08:03 +01:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
marcovmun
4149bcdd30 Fix: #2579 queue lines of 2 rides merge (#3409) 2016-04-25 12:12:12 +01:00
Ted John
fc938892d8 integrate variables for command position and expenditure 2016-04-24 17:53:39 +01:00
Ted John
0f6e64ac76 add global macros for map size and tile loop 2016-04-24 14:00:26 +01:00
Ted John
0ffca3a4fc use gPeepSpawns for remaining non-refactored usages 2016-04-24 11:01:19 +01:00
Ted John
ee509caf35 integrate game paused variable and refactor 2016-04-23 13:34:55 +01:00
Ted John
4cdb2df9dc integrate screen variables 2016-04-23 11:16:46 +01:00
Ted John
307cb9e08b add global macro: gParkFlags 2016-04-23 00:51:22 +01:00
Ted John
681961eaec change ride construction addresses to defines 2016-04-15 20:35:27 +01:00
Ted John
f73e3ab0e1 integrate footpath construction variables
- uint8 gFootpathProvisionalFlags
- rct_xyz16 gFootpathProvisionalPosition
- uint8 gFootpathConstructionMode
- uint16 gFootpathSelectedId
- uint8 gFootpathSelectedType
- rct_xyz16 gFootpathConstructFromPosition
- uint8 gFootpathConstructDirection
- uint8 gFootpathConstructSlope
- uint8 gFootpathConstructValidDirections

Also fix some previous variable integrations that had been forgotten to change.
2016-04-15 19:16:48 +01:00
Ted John
1b3f46f960 integrate game command error string variables
- gGameCommandErrorTitle
- gGameCommandErrorText
2016-04-15 17:54:46 +01:00
duncanspumpkin
ff6bfdced3 Revert #3104. Fix #3100 2016-03-07 19:04:48 +00:00
Josue Acevedo
21c55fda03 Fix a bug that prevents connect footpaths to ride.
Fix a bug that prevents connect footpaths to the ride entrance/exit with multiple stations (Fixes #3100).
2016-03-07 10:18:53 -06:00
duncanspumpkin
1033e988d3 Fix #2887. Queues now correctly invalidate when breaking a chain 2016-03-03 22:01:11 +00:00
Michał Janiszewski
aa8437cb9d Minor fixes 2016-02-26 20:49:01 +01:00
Michał Janiszewski
6b514d1e3a Fix possible issues highlighted at higher warn levels
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
duncanspumpkin
9c3055224d Refactor clear funcs 2016-02-13 21:01:36 +00:00
duncanspumpkin
305ae76346 Implement clear funcs for remaining functions 2016-02-13 20:26:22 +00:00
Michał Janiszewski
ec2387082c Remove cheats from config 2016-01-25 21:44:13 +01:00
zsilencer
32f1aa064d more accurate last player action location 2016-01-24 21:00:31 -07:00
Michał Janiszewski
6d6f9f3c23 Refactor rides to be only accessible with getters
This changes how rides are accessed from macros to getter functions.
2016-01-23 01:13:36 +01:00
Hielke Morsink
f04c97fbc1 Getting path scenery type and index using helper functions throughout the entire project. 2016-01-01 21:28:53 +01:00