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
Michael Steenbeek
d28e8a6126
Introduce calls to check for research markers
2018-06-15 12:11:03 +02:00
Andy Ford
ea371144e7
Fix #7643 : No Money scenarios can have funding set to zero
...
If research funding is set to no funding and scenario money is turned
off, then update research at the normal rate.
2018-06-14 13:17:09 +02:00
Tomas Dittmann
cb162edcfe
Fix #7331 : Invention list crashes upon removing previously-enabled ride/stall entries
2018-05-11 13:28:56 +02:00
Michael Steenbeek
907d318e1c
Make Ride Groups more C++-like
2018-05-07 20:18:06 +02:00
Michael Steenbeek
695d3762e5
Remove last usages of SEPARATE_RIDE flag
2018-03-26 20:36:16 +02:00
Michael Steenbeek
919533d7c2
Show ride and vehicle names in research list
2018-03-21 22:04:10 +01:00
Ted John
5a803d2551
Implement game action for park set research funding
2018-03-20 09:31:39 +01:00
Michał Janiszewski
441b7ebe71
Don't try setting null ride type as invented
2018-02-10 13:07:52 +01:00
Michał Janiszewski
4732afa315
Add some bounds checks
2018-02-10 13:07:52 +01:00
Ted John
7851446a6f
Replace Memory::Set with std::fill or similar
2018-02-04 12:35:02 +00:00
Gymnasiast
b78e84702d
Always show vehicle name in Research window
2018-01-29 20:09:05 +01:00
Gymnasiast
e8b2a3df0d
Slight research refactor
2018-01-29 12:52:12 +01:00
Gymnasiast
566f3d901f
Small refactor of research_get_current_item()
2018-01-28 21:39:50 +01:00
ZehMatt
84f2917f59
Use const and constexpr whenever possible.
2018-01-11 22:29:08 +01:00
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Michał Janiszewski
469e142c7b
Change casing of header files
2018-01-11 09:30:09 +01:00
Michael Steenbeek
ddd8479827
Move some research logic out of the Inventions window
2018-01-10 16:31:13 +01:00
Michael Steenbeek
4db3323973
Create scenery_group_set_invented()
2018-01-10 16:31:13 +01:00
Michael Steenbeek
0995ab9910
Fold gResearchNextCategory into gResearchNextItem
2018-01-10 15:31:47 +01:00
Michael Steenbeek
b11f59ba6c
Refactor gResearchedSceneryItems
2018-01-10 15:31:47 +01:00
Michael Steenbeek
d2de1a4a95
Abstract access to gResearchedRide{Types,Entries}
2018-01-10 15:31:47 +01:00