hdpoliveira
857db2925c
Part of #9473 : Convert cable_lift_update to Vehicle private method CableLiftUpdate
2020-04-18 14:29:19 -03:00
Michael Steenbeek
b4a763c751
Move naming convention to RTD ( #11319 )
2020-04-18 12:12:07 +02:00
Tulio Leao
b449e445f7
Use named casts on openrct2/ride ( #11163 )
...
Excluding subfolders
2020-04-17 19:53:33 +02:00
Gymnasiast
edd31d9f16
Move flags to RideTypeDescriptors
2020-04-17 17:03:33 +02:00
Michael Stowe
163119ea3b
Fix #11275 : Crashes that kill only 1 peep create grammatically incorrect messages ( #11278 )
...
Fix #11275 : Crashes that kill only 1 peep create grammatically incorrect messages (#11278 )
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-04-16 21:04:12 -03:00
Duncan
92449773c5
Fix #11106 : Crash on getting invalid vehicle index ( #11305 )
...
* Fix #11106 : Fix crash on bad value prev_vehicle
This allows Thorpe Park to be loaded again. This is ultimately not a great fix. In the future it should be made so that the vehicle pointers are validated on load to ensure there are no loops or bad values.
2020-04-16 18:24:07 -03:00
Aaron van Geffen
a81488d704
Fix #11272 : Make casualty and stalled vehicle notifications optional
2020-04-16 14:41:39 +02:00
duncanspumpkin
54a058ca6c
Fix boat location import/export/update.
...
After a refactoring to split off the boat location the import/export functions meant incorrect information could be loaded into the s6 file for boats that had not left the station. Boats that had left the station had other fields clobbered for the same reason
2020-04-07 20:19:26 +01:00
Duncan
f64ea65d03
Rename SPRITE_LIST_TRAIN_HEAD to reduce car head confusion ( #11105 )
...
A single car on a coaster can comprise of multiple vehicles. One of those vehicles will be the car head vehicle. The train can comprise of multiple cars. Therefore not all vehicle->IsHead 's will be in SPRITE_LIST_TRAIN_HEAD. This rename makes that slightly more clear
2020-03-29 09:23:24 +01:00
Michael Steenbeek
b70c5cefd6
Use station index in a few more places ( #11066 )
2020-03-27 11:13:02 +01:00
Michael Steenbeek
cfb405f0ed
Use StationIndex in many more places ( #10992 )
2020-03-26 21:38:26 +01:00
Ted John
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Gymnasiast
04a6eaea3f
Replace registers in vehicle_update_track_motion_forwards_get_new_track()
2020-03-19 17:20:44 +01:00
Aaron van Geffen
e27a1a230a
Fix regression in boat hire pathfinding ( #10958 )
...
This doesn't fix the guests falling into the water (#10902 ), but it does fix the spotty pathfinding.
2020-03-18 10:52:27 +01:00
Michael Steenbeek
c31ef8e635
Extract vehicle subposition data to its own file ( #10912 )
2020-03-15 11:27:45 +01:00
Gymnasiast
bdf681f440
Clean up many other coordinates
2020-03-13 12:03:43 +01:00
Gymnasiast
cf945f7656
Clean up collide coords
2020-03-13 10:36:45 +01:00
Gymnasiast
2eb967b30d
Change station start to CoordsXY
2020-03-05 12:29:02 +01:00
Michael Steenbeek
8351a0477d
Merge pull request #10854 from tupaschoal/coords-3
...
Increase usage of ScreenCoordsXY on viewport functions and structs
2020-03-05 12:21:04 +01:00
Michael Steenbeek
22768ea915
Merge pull request #10596 from tupaschoal/pr-10070-copy
...
Remove global variable for sound param list
2020-03-04 11:06:22 +01:00
Tulio Leao
09fad0ef7f
Change rct_viewport to use ScreenCoordsXY
2020-03-02 20:50:58 -03:00
Michael Steenbeek
61175a4fbf
Confine use of LocationXY8 to RCT12 load/save code ( #10698 )
2020-03-01 21:16:10 +01:00
Michael Steenbeek
d5c4d78d49
Move vehicle track location to CoordsXYZ ( #10856 )
...
* Move vehicle track location to CoordsXYZ
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-03-01 15:45:51 -03:00
Tulio Leao
0aab236c01
Use vector for soundParamList instead of array
2020-03-01 14:29:17 -03:00
UltimaBGD
2d35c50a9a
Refactor gVehicleSoundParamsList to use std::array
2020-03-01 14:29:17 -03:00
Michael Steenbeek
f41f878581
Replace some usages of LocationXY(Z)16 ( #10699 )
2020-02-18 22:42:38 +01:00
Michael Steenbeek
1690361b36
Increase size of ride_id_t to 16 bits
2020-02-16 22:21:17 +01:00
Michael Steenbeek
6d97601d6f
Replace hardcoded occurrences of maximum map size ( #10696 )
2020-02-13 20:27:13 +01:00
TusharSariya
3df79cb4d5
Part of #9473 : Convert vehicle_update to Vehicle struct method ( #10677 )
...
* Issue #9473 , moved static void vehicle_update in Vehicle.cpp to a member of the Vehicle struct
* Fix formatting
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-02-11 11:44:05 +00:00
duncanspumpkin
5e9e9df7ce
Refactor invalidate_sprite
2020-01-19 17:16:42 +00:00
duncanspumpkin
bdcfd615ed
Refactor sprite_move
2020-01-19 17:16:41 +00:00
duncanspumpkin
a5ef8d6240
Rename rct_vehicle
2020-01-19 17:14:56 +00:00
duncanspumpkin
164acc85cc
Rename sprites to newer style naming
2020-01-19 17:10:53 +00:00
Gymnasiast
af12421f2d
Apply fixes
2020-01-19 17:34:11 +01:00
modulo7
fdf0c17fd8
Name field var_CD of vehicle struct. Refactor to enum
2020-01-19 17:34:11 +01:00
Michael Steenbeek
d798811c4a
Make GetWaterHeight return big Z ( #10579 )
...
* Make GetWaterHeight return big Z
* Restore > 0 [ci skip]
2020-01-19 15:12:48 +00:00
Duncan
20223eb5fb
Refactor update_sound_params to be member functions
2020-01-11 20:54:28 +01:00
Tulio Leao
98110c0544
Make Map::map_invalidate*() use CoordsXY ( #10437 )
...
* Make Map::map_invalidate_element() use CoordsXY
* Make Map::map_invalidate_tile_full() use CoordsXY
* Make Map::map_invalidate_tile_zoom0() use CoordsXY
* Make Map::map_invalidate_tile_zoom1() use CoordsXY
* Make Map::map_invalidate_tile() use CoordsXY
* Use CoordsXYRangedZ for map invalidation
* Fix vehicle tile invalidation use Z instead of Y coord
* Fix BannerRemoveAction sending Z TileCoords to invalidate tile
* Fix wrong tile invalidation on peep_update_walking_break_scenery
* Prefer ToTileStart over bitwise and
2019-12-28 08:44:33 +00:00
Michael Steenbeek
64f7cac6d6
Create getters for station height and start ( #10453 )
2019-12-27 15:57:40 +01:00
Tulio Leao
21435a4d01
Make Map::map_get_track_element_at_of_type_seq() use CoordsXYZ
2019-12-24 11:19:05 -03:00
Tulio Leao
77503fee97
Make Map::map_get_track_element_at_of_type() use CoordsXYZ
2019-12-24 11:19:05 -03:00
Tulio Leao
6c998d7b4d
Make Map::map_get_track_element_at() use CoordsXYZ
2019-12-24 11:19:03 -03:00
duncanspumpkin
0f90b2c353
Rename variable as its technically new
2019-12-24 11:46:56 +00:00
duncanspumpkin
370a9b1113
Change type of cur_test_track_location
2019-12-24 11:44:01 +00:00
duncanspumpkin
c08958a705
Prepare cur_test_track_location for type change
2019-12-24 11:43:55 +00:00
duncanspumpkin
a5ad2f9a87
Change overall view and boat hire return type to TileCoordsXY
2019-12-24 08:51:48 +00:00
duncanspumpkin
0a5d094785
Change type of ChairLiftBullwheel to TileCoordsXYZ
2019-12-24 08:28:10 +00:00
Gymnasiast
62fcbb07ca
Rename methods to GetBaseZ/GetClearanceZ
2019-12-23 20:08:37 +01:00
Gymnasiast
85ecb52e7c
Manually replace more Z occurrences
2019-12-23 20:05:26 +01:00
Gymnasiast
7d11858dbe
Create getter for GetBaseHeight()/GetClearanceHeight()
2019-12-23 20:05:24 +01:00