Gymnasiast
849af8c2d8
Split Supports.{cpp,h} into two
2024-02-19 21:59:59 +01:00
Gymnasiast
accfa1af61
Add WoodenSupportType::Null, replace std::nullopt with it
2024-02-17 22:26:15 +01:00
Harry Hopkinson
a55da09e1c
Move gMapBaseZ to GameState_t ( #21370 )
...
* Move gMapBaseZ to GameState_t
* Fix fomatting
2024-02-11 21:40:32 +00:00
ζeh Matt
a5dde0f8dc
Replace gCurrentTicks with the one in GameState_t
2024-01-19 16:32:19 +02: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
b6bcb8e106
Add secondary colour to supports scheme
...
The wooden roller coaster and air powered vertical coaster both
construct a paint scheme that incorporates the tertiary colour in the
primary slot and the secondary colour in the secondary slot.
Constructing the scheme requires at least one condition that can be
removed by constructing the scheme when populating the PaintSessionCore.
2023-12-23 17:13:27 -08: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
Gymnasiast
5e38c15f58
Split up drawing functions for covered track elements
2023-12-10 15:11:46 +01:00
Gymnasiast
8df55ce5a9
Use modern support calls in TrackPaint.cpp
2023-11-17 23:24:45 +01:00
Gymnasiast
3b074be920
Confine RotatedMetalSupports to Supports.cpp
2023-10-25 19:43:34 +02:00
Gymnasiast
2d16df1072
Create TrackPaintUtilOnridePhotoPlatformPaint()
2023-10-25 19:43:34 +02:00
Gymnasiast
0e5c413385
Merge TrackPaintUtilDrawStationMetalSupports() and ...2()
2023-10-25 19:43:28 +02:00
Gymnasiast
4ee088e27d
Also include the thick supports in RotatedMetalSupports
2023-10-25 19:37:49 +02:00
Gymnasiast
7cf75ab11d
Use common method for station/on-ride supports
2023-10-25 19:37:49 +02:00
Michael Steenbeek
3f5be95972
Use strong enum for metal support placement ( #20855 )
...
Co-authored-by: tupaschoal <tupaschoal@noreply.github.com >
2023-10-18 06:09:44 -03:00
spacek531
79730e50fd
Diagonal Brakes and Block Brakes
2023-10-01 18:58:03 -07:00
Michael Bernardi
909fd42a4e
Tile inspector can now highlight tracks
2023-08-12 22:00:29 +02:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Michael Steenbeek
c96762517f
Use strong enum for metal supports ( #20045 )
2023-04-24 21:46:33 -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
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Stephan Spengler
76b918e7ed
Change openrct2/ride methods to UpperCamelCase, part 1
2023-01-17 01:32:54 +01:00
Duncan
8504c8d05e
Finish Removing snake_case from Drawing Methods
2023-01-16 22:31:34 +00:00
Gymnasiast
5309c80e29
Remove snake_case in interface folder
2023-01-16 22:20:41 +01: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
9226448eb1
Fix #18552 : Trains clipping through helixes
2022-12-08 19:49:54 +01:00
frutiemax
76faa77f6b
Part of #16152 : Use BoundBoxXYZ for PaintAddImageAsChild
2022-11-27 18:33:11 +00:00
Michał Janiszewski
3e4e8bccc5
Pass ImageId by value instead by const-ref
...
ImageId struct is 8-bytes large and can fit in CPU register. Passing it
by value lets compiler pass it in register instead of forcing to
reference it from memory.
In my tests this brings
[dome park](https://github.com/OpenRCT2/OpenRCT2/files/6134362/dome-export.zip )
benchgfx results from 42.16s down to 41.08s, or by 2.5%.
2022-11-12 00:06:05 +01:00
spacek531
aa685e4cf6
move session flags into new header ( #18504 )
...
* move session flags into new header
2022-11-04 05:50:36 +00:00
Rik Smeets
c80bd455e9
Code style: Remove struct snakes from Paint ( #18341 )
2022-10-14 20:26:36 +02:00
Rik Smeets
1d557f40ee
Code style: Remove snakes from steel supports
2022-10-08 19:59:32 +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
Rik Smeets
8ea34a5360
Fix #18134 : Photo section clips through terrain
2022-10-05 18:35:37 +00:00
73
8c3ff1bfa8
Replace Transparancy with Transparency
2022-10-04 18:28:15 +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
73
edc79d77eb
fix visual glitch with supports
...
maze and shops get their original support colors instead of yellow
Co-authored-by: beam41 <beam_baimon@hotmail.com >
2022-09-29 11:13:15 -04: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
frutiemax
6868b3dcaf
Rename IS_SHOP to IS_SHOP_OR_FACILITY and use it for RideObject
2022-08-06 15:00:52 +02:00
frutiemax
2d75858589
Add IS_FIRST_AID flag
2022-08-06 15:00:52 +02:00
frutiemax
76104cbbee
Use RIDE_TYPE_FLAG_IS_TOILET
2022-08-06 15:00:52 +02:00
Michael Steenbeek
2b859c7099
Remove __ENABLE_LIGHTFX__ define
...
It is already enabled for all our builds, and upcoming changes to RTD would add a slew more.
Discussed in team chat with Duncan and Hielke.
2022-07-28 21:34:02 +00:00
Karst
a74acee961
Fix: Wrong boundboxes for tunnels & terrain. ( #17312 )
...
* Edit Boundboxes
* Make all code consistent
Eight is the magic number
2022-07-21 07:57:49 +01:00
duncanspumpkin
68d0d05d49
Remove extra non rotated PaintAddImageAsChild
2022-03-11 21:45:12 +00:00
ζeh Matt
d9bdc1441f
Rename IsPassedSurface to PassedSurface and cleanup values
2022-02-25 01:21:36 +02:00
ζeh Matt
b5d6abdd22
Refactor out DidPassSurface and rename Unk141E9DB to Flags
2022-02-25 00:34:24 +02:00