1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00
Commit Graph

17592 Commits

Author SHA1 Message Date
Michael Steenbeek
4005d3b86a Make Ride::GetStationObject() const 2021-12-18 20:49:24 +00:00
Michael Steenbeek
4ee1df7de1 Merge pull request #16266 from Gymnasiast/refactor/more-ride-functions
More Ride.h cleanup
2021-12-18 20:52:46 +01:00
Gymnasiast
ef6f2cceee Create RideConstruction.h 2021-12-18 20:27:13 +01:00
Michael Steenbeek
6d19c983e8 Normalise RCT12TileElementType 2021-12-18 19:43:30 +01:00
Gymnasiast
517fbe2d8d Remove unused ride_entry_get_train_layout() 2021-12-18 18:49:29 +01:00
Gymnasiast
449da0d6bd Convert ride_get_station_object() to method 2021-12-18 18:48:52 +01:00
Ted John
e165de7482 Refactor paint structs to use ImageId and extend size of image list (#16258)
* Move to image ID for paint struct

* Move image list to be past the end of legacy limit

* Extend image list size

* Introduce constants for image list size

* Use std::array to store internal paint struct
2021-12-18 07:40:10 +00:00
ζeh Matt
186d3efb59 Merge pull request #16092 from ZehMatt/refactor/timing
Refactor update/time related things
2021-12-17 10:08:42 -08:00
X123M3-256
7e158a1787 Make srcX and srcY work with indexed images 2021-12-17 11:48:55 +01:00
Michael Steenbeek
b6c541c805 Close #16231: Do not load image table when creating object index 2021-12-17 09:45:40 +01:00
Sadret
8282579b63 Close #16251: Improve null handling in plugin API 2021-12-16 21:41:02 +01:00
Ted John
efca2852c4 Refactor remaining object preview to ImageId 2021-12-16 21:39:10 +01:00
duncanspumpkin
8426914c0e Make identifier fixing more conservative. Bump park version
It is still possible to make a park with the legacy names in a version 7 as we don't fail to start the game with the old identifiers loaded
2021-12-15 21:31:47 +00:00
duncanspumpkin
2916daa29d Handle mixed install object loading more gracefully 2021-12-15 21:29:02 +00:00
duncanspumpkin
7e7947fe8b Move legacy identifier interpreting to separate file from parkfile 2021-12-15 21:29:02 +00:00
duncanspumpkin
01722cc85d Merge branches 'pf legacy' 2021-12-15 21:29:00 +00:00
duncanspumpkin
74b0f5da5a Move legacy 2021-12-15 21:28:57 +00:00
duncanspumpkin
c0f13ad44a Remove legacy part 2021-12-15 21:27:12 +00:00
duncanspumpkin
98e0782b07 Move parkfile 2021-12-15 21:27:12 +00:00
Duncan
8e1fd54c5a Rename type and add static assert from review (#16247) 2021-12-15 05:56:43 +00: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
Ted John
5cc776c622 Fix #16206: Wooden supports for scenery are not drawn 2021-12-14 14:25:41 +01:00
Duncan
3572c3f466 Fix #16201: Rides don't get properly deleted when you remove them (#16236)
* Fix #16201. Remove all tracks on a tile when demolishing

* Bump network version
2021-12-14 12:37:35 +00:00
spacek531
35d4410fb5 Remove VAR_CF union and fix mini golf mistake (#16216)
Mistake in mini golf implementation meant that the brake_speed (var_cf) was being set from the seat rotation instead of the booster brake speed. Mini golfs do not use seat rotations or booster brakes but for consistency reasons this has been fixed anyway.
2021-12-14 07:25:36 +00: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
04dac023cb Fix crash during underground mode
Also includes crash during track design preview.
2021-12-13 22:16:24 +00:00
Ted John
6d7e2446db Fix #16204: Invisible entrance/exits render as tiny land sprites 2021-12-13 22:11:55 +00:00
ζeh Matt
fc2862323a Add utility function and some minor cleanup/documentation 2021-12-13 19:10:47 +02:00
ζeh Matt
c464e38515 Use chrono::duration for Timer 2021-12-13 19:04:49 +02:00
ζeh Matt
531aace060 Move real time calculation into Context 2021-12-13 19:04:48 +02:00
ζeh Matt
94e20ba7fe Rename some Update functions to Tick 2021-12-13 19:04:48 +02:00
ζeh Matt
1261ccc7b9 Add missing pragma once 2021-12-13 19:04:48 +02:00
ζeh Matt
25e1553555 Use Timer in DiscordService 2021-12-13 19:04:48 +02:00
ζeh Matt
20ef683744 Use Timer and cleanup some code in Context 2021-12-13 19:04:48 +02:00
ζeh Matt
30cc3dff3f Implement Timer class 2021-12-13 19:04:44 +02:00
ζeh Matt
fb93b9d81f Use fold expressions to enable potential simd optimizations 2021-12-13 17:05:01 +02:00
ζeh Matt
e405658f6a Code style and cleanup 2021-12-13 16:00:51 +02:00
ζeh Matt
9ec4e9c326 Fix trim condition 2021-12-13 15:35:42 +02:00
ζeh Matt
a742b49f2c Pass const data by template parameters 2021-12-13 05:05:12 +02:00
ζeh Matt
ecfbaec47e Cleanup and fix block size calculation 2021-12-13 03:25:28 +02:00
Brian Kolstad
bb6e265700 Refactor window to class: DemolishRidePrompt 2021-12-12 19:51:40 -05:00
ζeh Matt
59682291f0 Fix warnings and supply template argument 2021-12-13 02:31:33 +02:00
ζeh Matt
4f0b0e8aa4 Fix template parameter to be size_t 2021-12-12 23:47:20 +02:00
ζeh Matt
16635b9192 Implement custom BitSet and replace std::bitset 2021-12-12 23:47:17 +02:00
Michał Janiszewski
7b0e6ad0b6 Reformat with clang-format-12 from updated CI image 2021-12-12 17:48:52 +01:00
Gymnasiast
4ebc23ad36 Move ride_get_total_time() to method 2021-12-12 13:00:28 +01:00
Gymnasiast
5e8a204365 Move ride_get_total_length() to method 2021-12-12 13:00:28 +01:00
Gymnasiast
9b81bacecd Move ride_remove_peeps() to method 2021-12-12 12:31:19 +01:00