Commit Graph

497 Commits

Author SHA1 Message Date
LRFLEW e5ff7412e4 Refactor/Improve String and Path Handling 2016-10-09 15:29:58 -05:00
Michał Janiszewski c9b0d9e24d Initialise all variables flagged by -Wmaybe-uninitialized 2016-10-06 23:13:28 +02:00
Ted John 4f247c16b2 Fix #4525: Track Designs Manager Crashing
Handle tracks that use a vehicle object that can not be found, fall-back if possible to another object of the same ride type.
2016-10-05 21:34:32 +01:00
jensj12 44a53dd031 Allow 31 trains per ride (cheat and tooltip)
Changes the disable train lenght limit cheat to also disable the limit on the number of trains and renames it to 'disable vehicle limits'. Now any tracked ride can have up to 31 trains with 255 cars each. To reduce confusion, I also added a tooltip to the spinners on the vehicle tab.
2016-10-01 20:58:46 +02:00
Ted John 23094d25bb Fix #4265: Delete trackpiece bug
Safely handle invalid track pieces when demolishing a ride.
2016-10-01 14:12:52 +01:00
Gymnasiast c84e2f3184 Name some constants 2016-09-24 11:08:52 +02:00
Ted John 64df46ba16 Integrate and remove unused globals 2016-09-11 01:02:16 +01:00
Ted John 4a6b2f2ef2 Integrate gRides and gRideMeasurements 2016-09-11 00:05:32 +01:00
Ted John 4350e53392 Integrate gS6Info 2016-09-10 18:30:53 +01:00
Ted John 708efdd08c Integrate unknown game variables 2016-09-10 14:46:53 +01:00
Ted John f303642ceb Remove unused variables 2016-09-10 14:42:57 +01:00
Ted John c21a047331 Remove variable and integrate logic instead 2016-09-10 14:40:50 +01:00
Ted John 2db375fb32 Integrate some ride variables 2016-09-10 14:37:20 +01:00
Ted John 9f4a70d642 Integrate more ride construction variables 2016-09-10 14:30:16 +01:00
Ted John 1f0820f662 Integrate various ride construction variables 2016-09-10 14:13:36 +01:00
Ted John 3b0b8a12d1 Integrate ride count 2016-09-10 13:40:58 +01:00
Michał Janiszewski 163e314379 Remove unused or set-but-not-read variables 2016-09-07 13:39:29 +01:00
Michał Janiszewski 0d9fa13dc9 Integrate gTotalRideValue, gSamePriceThroughoutParkA and B 2016-09-04 21:19:19 +02:00
Ted John e47b8d906e Integrate gLastEntranceStyle 2016-09-04 15:21:49 +01:00
jensj12 c7879d08cd Fix #2081: prevent infinite loop in ride_find_track_gap
Adds an extra iterator that steps forward at half the speed of the
normal iterator. If they ever meet, there's a loop in the track and the
track is classified as incomplete.
2016-09-03 16:56:00 +02:00
Ted John 2722a85ee4 Fix #4349: x64: Crash when placing roller coaster track designs 2016-09-03 13:09:50 +01:00
Ted John 17b69d257b Merge pull request #4097 from marijnvdwerf/clean/string-ids-2
Continue string ID cleanup
2016-08-28 14:05:13 +01:00
Ted John 8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Marijn van der Werf 3a7fa512a2 Use `rct_string_id` as type where applicable 2016-08-21 16:33:37 +02:00
Ted John 9b77bb35ae Fix #4113: Free rides: Income and profit calculated using old price 2016-08-21 13:49:37 +01:00
Ted John 3f9c5456d4 Merge pull request #4212 from marijnvdwerf/clean/data-trackflags
Include track flags
2016-08-16 17:55:29 +01:00
Marijn van der Werf 82d0d229ce Use word_981D6C 2016-08-14 13:12:07 +01:00
Michael Steenbeek 7f71bece5c Clean up some residual usage of non-integrated versions of already integrated variables 2016-08-13 10:52:42 +01:00
Marijn van der Werf 6610190e8c Include track flags 2016-08-12 22:42:48 +02:00
Ted John 97b0245697 Merge pull request #4181 from marijnvdwerf/clean/data-1
Misc RCT data integration
2016-08-12 20:52:10 +01:00
Marijn van der Werf 8903559f75 Include data at `0x99ba64` and `0x99ca64` 2016-08-12 20:51:22 +01:00
Ted John 389d75534d Merge pull request #4224 from marijnvdwerf/clean/data-5
[Clean] Use already integrated data
2016-08-12 20:50:37 +01:00
Marijn van der Werf d556281a5a Include RideColourPresets 2016-08-07 20:13:46 +02:00
Marijn van der Werf b428a95724 Ride classes 2016-08-07 20:11:43 +02:00
Marijn van der Werf ec4cf80623 Use `RideData4` 2016-08-07 13:01:20 +01:00
Marijn van der Werf ac950e0496 Integrate `0x0098DDB8` and `0x0098DDBA` 2016-08-06 13:20:18 +01:00
Marijn van der Werf b777a36722 Remove maze people limit override 2016-08-06 01:04:37 +02:00
Marijn van der Werf 1fc5681f00 Use `TrackCoordinates` 2016-08-06 01:04:35 +02:00
Marijn van der Werf d0bb8597d9 Use RideProperties 2016-08-06 01:03:45 +02:00
Ted John a66f55269b Merge pull request #4211 from marijnvdwerf/clean/data-trackdefinitions
Integrate track definitions
2016-08-05 17:29:27 +01:00
Marijn van der Werf 9288029bd6 Include RideConstructionDefaultTrackType 2016-08-05 13:11:25 +01:00
Marijn van der Werf 082e4c76fa Include data from `0x0097D7CB` 2016-08-05 11:53:44 +01:00
Marijn van der Werf de6dcaaa86 Include data at `0x00982164`
Reversed columns used for hot and cold values. Seemed to be a mistake in decompiling.
2016-08-04 23:36:51 +01:00
Marijn van der Werf 3d8b71ffbc Rename `gTrackDefinitions` to `TrackDefinitions` 2016-08-04 01:15:23 +02:00
Marijn van der Werf 69027a81e4 Add constants for flat ride tracks (#4209) 2016-08-04 00:36:42 +02:00
Michał Janiszewski 155bc054df Fix #4172: Expose ride-type changing capability in UI
This also allows changing ride type in multiplayer games. Very crashy.
2016-08-01 20:30:08 +02:00
Ted John f5f4238c0b Merge pull request #3888 from marijnvdwerf/integrate/mini-golf
Integrate mini golf data.
2016-07-26 19:24:08 +01:00
Ted John 2d1cbc916f Check for valid colour presets on vehicle game command
Fixes an issue some people were getting on servers where clients were somehow sending invalid preset IDs for a given ride entry.
2016-07-21 19:51:06 +01:00
Michał Janiszewski 313230a9a4 Refactor more code to correctly handle sprite count 2016-07-17 23:24:16 +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