Harry-Hopkinson
97e9634a61
Rename edges_2x2 to kEdges2x2
2024-04-28 14:08:02 +00:00
Harry-Hopkinson
b795d4ba8a
Rename track_map_2x2 to kTrackMap2x2
2024-04-28 14:04:26 +00:00
Gymnasiast
632f29e6a9
Name segment constants
2024-03-11 00:22:35 +01:00
Gymnasiast
849af8c2d8
Split Supports.{cpp,h} into two
2024-02-19 21:59:59 +01:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Spacek531
a890844115
replace TrackColours array with two ImageId values
2023-12-23 17:01:56 -08:00
spacek531
1306dc048b
Remove SCHEME_MISC, SCHEME_3 from PaintSessionCore
2023-12-23 16:42:00 +01:00
Michael Steenbeek
9dd5fd8d98
Update support drawing for thrill rides and water rides ( #21007 )
...
* Update support drawing for thrill rides and water rides
* Consolidate support drawing calls for Go Karts
2023-12-18 07:38:25 -03:00
Michael Steenbeek
70af1c6c0d
Clean up PaintAddImageAsParent() calls ( #19392 )
2023-02-13 22:07:39 +00:00
Stephan Spengler
a79d753d76
Change openrct2/ride methods to UpperCamelCase, part 3/3 ( #19195 )
2023-01-17 20:14:27 +00:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Gymnasiast
b712cc8f07
Refactor checks for ghost tracks while painting
2022-12-31 15:16:07 +01:00
Rik Smeets
c80bd455e9
Code style: Remove struct snakes from Paint ( #18341 )
2022-10-14 20:26:36 +02:00
Rik Smeets
29f61fd403
Code style: Remove snakes from wooden supports
2022-10-08 19:20:59 +02:00
Rik Smeets
c5904d81d6
Code Style: Remove snakes from paint tile elements ( #18212 )
2022-10-05 21:27:38 +02:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Michael Steenbeek
6f3790cf98
Modify ride drawing code to use ImageId
2022-09-28 21:36:56 +02:00
Michael Steenbeek
7bb7d97bdc
More bound box refactors
2022-09-27 21:20:49 +02:00
Michael Steenbeek
3fae2413db
Use “car” instead of the ambiguous “vehicle”, part 1
...
Currently, the word “vehicle” is used for both “train” and “car”. This is a first effort towards disambiguation.
2022-06-07 20:36:20 +00:00
Ted John
8aafab2a70
Split paint item into element and entity
2022-03-14 21:55:15 +00:00
Michael Steenbeek
25cb49f8ce
Pass paint_session as reference
2021-12-19 14:48:00 +00:00
Gymnasiast
9d3b76388a
Pass Ride ref to individual track paint functions
2021-12-18 23:01:39 +01:00
Gymnasiast
cf6c1d0a40
Pass Ride ref to track_paint_util_draw_narrow_station_platform()
2021-12-18 22:58:26 +01:00
Gymnasiast
76f6fa1b0d
Remove superfluous ride null checks
2021-12-18 22:58:24 +01:00
Michael Steenbeek
4005d3b86a
Make Ride::GetStationObject() const
2021-12-18 20:49:24 +00:00
Gymnasiast
449da0d6bd
Convert ride_get_station_object() to method
2021-12-18 18:48:52 +01:00
Ted John
b759f9ab39
Refactor paint motion simulator to use ImageId
2021-12-05 23:05:13 +00:00
ζeh Matt
c4ad5fcd15
Adjust includes
2021-11-26 21:01:44 +02:00
Duncan
275d565e52
Start splitting up ride.h ( #16011 )
...
* Start splitting up ride.h
* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02:00
ζeh Matt
01c808c601
Remove unused argument of wooden_(a|b)_supports_paint_setup
2021-08-26 20:54:06 +03:00
ZehMatt
7feea62ab3
Remove overload of PaintAddImageAsParent with bbox offset
2021-08-20 23:34:44 +03:00
Michael Steenbeek
8f5ec43486
Pass derived tile element classes to functions ( #15206 )
2021-08-11 23:26:46 +02:00
ζeh Matt
87007ba2a3
Change track paint signature to pass ride instead of ride index
2021-07-28 18:21:59 +02:00
Gymnasiast
bb682ca09d
Hide brown base on flat rides if "no platform" station style is selected
2021-07-28 11:22:44 +02:00
Duncan
39fcc5d078
Split up Sprite header ( #14764 )
...
* Remove fields from rct_sprite union
* more header fun
* Fix guest include
2021-05-29 06:01:32 +01:00
ZxBiohazardZx
36b2742c19
Change Vehicle Rotation namings in accordance with OpenRCT2 Codestyle ( #14616 )
...
* Code Refactor: Rename vehicle_sprite_type to Pitch
In some of the issues the vehicle_sprite_type is used to check for properties in regards to the pitch of the vehicle.Similarly bank_rotation is used to provide information on the Roll property. This is not in alignment with the https://github.com/OpenRCT2/OpenRCT2/wiki/Coding-Style and makes it harder to refactor other elements of the codebase and makes for undesired nested logics.
This PR also includes the change from rename bank_rotation to Roll in alignment with the OpenRCT2 Coding Style
Related to PullRequest #11956
* Apply formatting
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2021-05-12 12:38:46 +01:00
Gymnasiast
1b964c0f2e
Refactor flat ride track pieces
2021-02-18 17:50:19 +01:00
Dennis Devriendt
3073cca6aa
Close #13624 : Refactor ViewportInteractionItem to use strong enum ( #13657 )
...
* Closes #13624 : Refactor ViewportInteractionItem to use strong enum
2020-12-29 15:09:15 -03:00
duncanspumpkin
d6669be939
Rename main paint add image functions
2020-11-07 14:15:24 +00:00
Richard Fine
74b581c572
Remove unused 'direction' parameter
...
The get_track_paint_function functions have all been taking an extra 'direction' parameter, but nothing is actually using it. To simplify things, remove the parameter.
2020-09-07 21:20:34 -04:00
Duncan
c6e26267a4
Reduce the use of GET_VEHICLE ( #12494 )
...
* Start removing GET_VEHICLE macro use
* Further work
* Remove further GET_VEHICLE's
* Further removal of GET_VEHICLE
* Remove the last of GET_VEHICLE
* Fix testpaint
* Fix nullptr deref
* Make review changes
Also swapped in helper functions and used a standard patern for iterating the train cars
* Further simplify loops for train cars
2020-07-31 07:48:27 +01:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Matt
c381d9ff3f
Remove obsolete construction of CoordsXY object
2020-02-13 12:11:20 +01:00
duncanspumpkin
a5ef8d6240
Rename rct_vehicle
2020-01-19 17:14:56 +00:00
Sijmen Schoon
ab2dbea32a
Change a sizable portion of LocationXY(Z) to (Tile)CoordsXY(Z)
2019-10-31 00:19:14 +01:00
Ted John
9954f0b725
Add nullptr checks for more instances of get_ride ( #9819 )
2019-08-09 14:20:59 +01:00
Ted John
ab7b17fc4e
Add nullptr checks for get_ride in libopenrct2 ( #9788 )
2019-08-08 22:58:56 +01:00
Michael Steenbeek
5a906b2378
Port more functions to Ride struct ( #9119 )
2019-04-20 22:22:39 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00