GalBr
df5c4dd91c
Fix #15947 , #15960 : Cannot remove rotated flat rides
...
Replace _currentTrackPieceDirection with local variable. This change
fixes a problem where when trying to remove a rotated ride,
_currentTrackPieceDirection would be reset back to 0 by calling
ride_initialise_construction_window, causing TrackRemoveAction to not
being able to find and remove the ride.
Using a local variable with the current direction, saved before resetting
the global variable, fixes this issue.
2022-01-16 14:04:00 +01:00
GalBr
f2f47aa492
Fix TrackDesignPreviewDrawOutlines using a local struct
...
TrackDesignPreviewDrawOutlines created and modified a local
TrackDesignState struct, so the calculated information was lost.
Now the function receives a ref to a TrackDesignState struct.
2022-01-15 21:24:59 +01:00
Duncan
7e46427059
refactor ride track groups to use new bitset ( #16172 )
2022-01-15 07:50:00 +00:00
GalBr
b69448d075
Refactor MazeConstruction window to class ( #16307 )
2022-01-15 07:41:24 +00:00
Hielke Morsink
1d5c0361b5
Consistently shift 8-byte constants by widget indices
2022-01-10 23:26:31 +01:00
Gymnasiast
6bcf848b2f
Use C++ filesystem for more file/path functions
2022-01-08 19:07:48 +01:00
Hielke Morsink
b4f264fe4d
Fix #16292 : .park files cannot be added to title sequence
2022-01-05 12:44:48 +01:00
Michael Steenbeek
2b0d4e6b3d
Merge pull request #16352 from Gymnasiast/fix/16061
...
Fix #16061 : Incorrect colours in minimap
2022-01-03 14:40:10 +01:00
Michael Steenbeek
819495800c
Fix #15943 : Crash accessing unset w->focus ( #16364 )
2022-01-03 10:11:34 +00:00
Michael Steenbeek
d7f5995bfd
Remove unintended execute rights
2022-01-01 19:58:28 +01:00
Michael Steenbeek
65500461e1
Fix #16073 : Crash in Sub6E1F34SmallScenery()
2022-01-01 19:56:12 +01:00
Gymnasiast
de2b893d99
Fix #16061 : Incorrect colours in minimap
2022-01-01 16:52:49 +01:00
Michael Steenbeek
875115ec33
Fix #16343 : Crash in Ride::PopulateVehicleTypeDropdown()
2022-01-01 15:07:42 +01:00
Michael Steenbeek
678dd0f69f
Merge pull request #16195 from frutiemax/ForwardDeclareFormatter
...
Forward declare Formatter
2021-12-30 23:01:42 +01:00
Michael Steenbeek
c7f87d3aa9
Merge pull request #16310 from frutiemax/ted_description
...
Add description field to TrackElementDescriptor
2021-12-30 22:26:08 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Hielke Morsink
4daae678c3
Remove unused include from Banner.cpp
2021-12-30 17:25:04 +01:00
Hielke Morsink
e7d213ded1
Remove unused include from TopToolbar.cpp
2021-12-30 17:21:15 +01:00
Vinícius Hashimoto
4155bf9ce0
Close #13748 : Refactor About window to class ( #16297 )
2021-12-27 18:44:06 -03:00
frutiemax
36f0cce65b
Add description field to TrackElementDescriptor
2021-12-25 09:55:03 -05:00
spacek531
52d55f5341
refactor ride track groups to use new bitset
...
remove erroneous value from dummy rtd
make comment more descriptive
remove comment
2021-12-23 02:17:57 -08:00
Michael Steenbeek
f65e12fc78
Close #12243 : Merge pull request #16295 from GalBr/use-coords-objects-in-maze-functions
...
Use Coords objects in maze functions
2021-12-22 19:16:34 +01:00
Gal B
343f9bbca0
Refactor maze_set_track to use const CoordsXYZD&
2021-12-22 18:48:37 +02:00
Duncan
ee297e9ed3
Fix #16287 : Incorrect sv6 extension using console or system browser
2021-12-22 16:19:02 +01:00
Michael Steenbeek
25cb49f8ce
Pass paint_session as reference
2021-12-19 14:48:00 +00:00
Gymnasiast
ef6f2cceee
Create RideConstruction.h
2021-12-18 20:27:13 +01:00
Gymnasiast
449da0d6bd
Convert ride_get_station_object() to method
2021-12-18 18:48:52 +01:00
Duncan
d6e13476ef
Merge pull request #16208 from bkolstad1/window-refactor
...
Close #13768 : Refactor window to class: DemolishRidePrompt
2021-12-14 21:25:23 +00:00
GalBr
35e8bc7f69
Refactor Land Rights window to class ( #16183 )
2021-12-14 21:19:27 +00:00
Brian Kolstad
35a56c0810
Split demolish and refurbish into seperate windows
2021-12-14 14:03:22 -05:00
ζeh Matt
fa737dc4ac
Merge pull request #16207 from ZehMatt/refactor/bitset
...
#16198 : Implement custom BitSet and replace std::bitset
2021-12-13 14:49:16 -08:00
Ted John
6d7e2446db
Fix #16204 : Invisible entrance/exits render as tiny land sprites
2021-12-13 22:11:55 +00:00
Brian Kolstad
bb6e265700
Refactor window to class: DemolishRidePrompt
2021-12-12 19:51:40 -05:00
ζeh Matt
16635b9192
Implement custom BitSet and replace std::bitset
2021-12-12 23:47:17 +02:00
Duncan
3deaa1af2e
Fix #16197 : Park award time and type accidentally swapped
2021-12-12 11:20:17 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Michael Steenbeek
b83f7c3859
Merge pull request #16150 from IntelOrca/refactor/imageid-ui
...
Refactor footpath, scenery, terrain and mapgen windows to use ImageId
2021-12-11 23:21:19 +01:00
ζeh Matt
cec30e093d
Merge pull request #15991 from ZehMatt/refactor/bannerid
...
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Duncan
6dc1efde82
Make awards a vector ( #16134 )
...
* Make awards a vector
* Fix compiler and use one less branch
2021-12-11 14:45:50 +00:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c
Move over switches to normalised tile element types
2021-12-11 00:30:59 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Ted John
d427098e39
Refactor terrain and path to use ImageId
2021-12-07 20:46:15 +00:00
Ted John
9fb490aec0
Refactor ride window to use ImageId
2021-12-07 20:17:22 +00:00
Ted John
5fcc0f4499
Refactor scenery window to use ImageId
2021-12-07 20:17:22 +00:00
Ted John
2108322806
Use ImageId for picked up peep
2021-12-07 20:17:22 +00:00
Michael Steenbeek
ea099c0d2d
Merge pull request #16129 from Gymnasiast/refactor/normalised-tile-element-type
...
Part of #15485 : Use normalised tile element type enum for setting type
2021-12-07 11:50:54 +01:00
Gymnasiast
91635a5047
Replace SetType and old strong enum with normalised
2021-12-05 13:54:01 +01:00
Gal B
1a6fffb64a
Replace strtol with Parse in CustomCurrency window
2021-12-04 19:20:39 +02:00
Gal B
8e1750b775
Refactor Custom Currency window to class
2021-12-04 18:53:11 +02:00