1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00
Commit Graph

100 Commits

Author SHA1 Message Date
Tulio Leao
f6de4b2e44 Fix #13263: SceneryGroup problems (#13270)
* Fix #13263: Scenery group research not working

* ResearchCategory::Group to SceneryGroup
2020-10-23 12:30:39 +01:00
Łukasz Pękalski
384e0ee718 Close #12418: Refactor RESEARCH_CATEGORY_* to use strong enum (#13216) 2020-10-17 22:15:46 +02:00
Matt
38e03ae45d Use the Formatter for News items 2020-09-17 22:14:36 +03:00
pizza2004
d217dfa9b9 Refactor NewsItem into namespace and Pascal Case (#12511) 2020-08-02 23:14:00 -03:00
pizza2004
cee7f8d34c Close #12397: Refactor NEWS_ITEM_* to use strong enum 2020-07-28 12:54:18 -06:00
Duncan
4a235e3bb6 Refactor ResearchItem Type to an enum class (#12346)
* Change type of ResearchItem.type to enum class

This is to prevent any future issues caused by confusion as to what the type is and further improves the codebase.

* Specifiy a size for the type

Also remove the static cast where not required

* Apply review comments
2020-07-22 14:25:05 +01:00
Aaron van Geffen
7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Gymnasiast
cf664c8340 Close #11971: Replace ride groups with new ride types 2020-07-17 00:19:49 +02:00
Gymnasiast
f8699d1244 Apply review requests; fix error; remove debug code 2020-06-19 23:35:18 +02:00
Gymnasiast
5029f754ed Fix #7324: Research window shows vehicle name instead of ride name 2020-06-19 22:50:53 +02:00
Gymnasiast
96678a14eb Move ride naming to RTD
This also means that all unused ride types will now have the same name. I have made an exception for the 'arbitrary ride type change' dropdown only.
2020-06-16 22:52:48 +02:00
Gymnasiast
6cdee9db93 Fix #7006: Use RTDs for determining ride category 2020-04-30 12:59:18 +02:00
Gymnasiast
505ac0f1a0 Remove unused function 2020-04-30 12:59:18 +02:00
Gymnasiast
7bda0c5fd9 Create constructor for ResearchItem 2020-04-30 12:59:18 +02:00
Gymnasiast
73671bbeeb Make ResearchItem use ObjectEntryIndex 2020-04-30 12:59:18 +02:00
Breno Rodrigues Guimarães
a0619d04cf Replace usage of set_format_arg by Formatter::Common() (#11412) 2020-04-25 18:44:14 -03:00
Michael Steenbeek
b89130e0f3 Use ObjectEntryIndex in more places (#11440) 2020-04-25 00:10:47 +02:00
Michał Janiszewski
cb74c5bbb6 Fix globals that really aren't 2020-04-21 13:30:55 +02:00
Michael Steenbeek
e1e58423fc Replace RideTypeHasRideGroups with flag (#11375) 2020-04-20 21:50:35 +02:00
Michael Steenbeek
8127437de1 Reduce direct ride type checking; move available piece lookup to RTD (#11353) 2020-04-19 13:32:43 +02:00
Gymnasiast
5d3bf2be20 Move category to RTD; move RideTypeIsIndependent to a flag 2020-04-18 15:22:41 +02:00
Tulio Leao
6cf113ae6f Improve bound checking on scenery invention (#11171) 2020-04-03 13:31:13 +02:00
Michał Janiszewski
5276ce767a Add missing check for valid scenery type (#11067) 2020-03-26 22:44:41 +01:00
Michael Steenbeek
c519512cfe Create ObjectEntryIndex (#10980) 2020-03-20 19:28:39 +01:00
Gymnasiast
be4f723287 Avoid writing outside _researchedSceneryItems bounds 2020-03-16 14:04:02 +01:00
Gymnasiast
567e70bfb6 Pass ScenerySelection as const & 2020-03-15 13:28:20 +01:00
Gymnasiast
70e287b076 Clean up scenery handling 2020-03-15 12:15:12 +01:00
Michael Steenbeek
86a79e742f Use RideTypeDescriptor for available track pieces 2020-02-22 20:13:44 +01:00
Michael Steenbeek
08ca829ac2 Create RideTypeDescriptors (#10707) 2020-02-20 11:00:03 +01:00
Gymnasiast
66dbb5e166 Refactor access to ResearchItem's rawValue 2020-01-26 15:17:37 +01:00
Gymnasiast
e6c32230bc Convert rawValue to uint32 2020-01-26 14:12:57 +01:00
Gymnasiast
63fddee603 Convert gResearchLast/NextItem to std::optional 2020-01-26 10:07:16 +01:00
Michael Steenbeek
3192bfb7c6 Move research functions to method; remove unused function (#10609) 2020-01-22 22:51:11 +01:00
Gymnasiast
ad96aa5785 Fix bug introduced after empty vector check 2019-08-23 22:52:13 +02:00
Gymnasiast
984fd5e58a Make EditorInventionsList a bit less buggy 2019-08-23 22:41:50 +02:00
Gymnasiast
9de2819cef Process feedback from code review 2019-08-23 22:41:50 +02:00
Gymnasiast
1265913bdb Fix dragging crash and some bugs 2019-08-23 22:41:43 +02:00
Gymnasiast
5ce3d4b947 Use new iterator syntax in more places 2019-08-23 22:41:43 +02:00
Gymnasiast
b1fb75e496 Move everything to research vectors 2019-08-23 22:41:43 +02:00
Gymnasiast
c3fdb728d1 Rename rct_research_item to ResearchItem 2019-08-23 22:41:43 +02:00
Gymnasiast
daa00147d5 Split off RCT12ResearchItem 2019-08-23 22:41:43 +02:00
Aaron van Geffen
2af13904c5 Update copyright notices for 2019. (#8903) 2019-03-17 07:16:15 +00:00
Michał Janiszewski
8a395e3706 Fix misaligned access (#8665)
Platforms like ARM are very sensitive to unaligned access. This change
makes sure the addresses obey the C++ standard and are properly aligned.
2019-02-04 23:15:14 +01:00
Hielke Morsink
354d973a48 Use std::size instead of Util::CountOf 2018-11-23 21:59:08 +01:00
clang-format
b02dfdbc93 Binpack function arguments together
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:22 +02:00
Hielke Morsink
472320d8f3 Correct formatting up to the management folder
I went over the commits ab7f22f..8726712 (bulk format commits for game actions to management inclusive) and corrected all mistakes I found. Most of them have to do with arrays missing trailing commas, making clang-format indent the entire array or not add breaks between the values.
2018-07-23 16:00:15 +02:00
clang-format
f514c223cb clang-format management 2018-07-23 16:00:05 +02:00
Matthew Beaudin
183411aa54 Fix #7773: Once research has been completed, player is still charged for research 2018-07-17 21:54:42 +02:00
Michael Steenbeek
1b08fb4e69 Replace our own integer types with standard ones 2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e Ready copyright notice for clang-format
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.

I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00