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
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
d05d675ed9
Refactor window functions to take references 6
2022-07-31 17:23:17 +02:00
Hielke Morsink
a258008bef
Refactor window functions to take references 4
2022-07-31 17:23:16 +02:00
Hielke Morsink
523bb8136e
Refactor window functions to take references 3
2022-07-31 17:23:16 +02:00
Hielke Morsink
c8605a8763
Refactor window functions to take references 2
2022-07-31 17:23:15 +02:00
Hielke Morsink
76c1bc8980
Refactor window functions to take references 1
2022-07-31 17:23:15 +02:00
Michał Janiszewski
3c4a07859b
Provide enough space in temp buffer
...
```
src/openrct2-ui/windows/Ride.cpp:3338:44: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
3338 | snprintf(buffer, std::size(buffer), "%u", currentValue);
|
(...)
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:35: note: ‘__builtin___snprintf_chk’ output between 2 and 6 bytes into a destination of size 5
```
2022-07-30 23:19:52 +02:00
Michael Steenbeek
5a5b107245
Refactor Twist rotations, fix truncating of operating value ( #17636 )
2022-07-30 16:32:22 +02:00
Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Michael Steenbeek
e5d2e3001d
Fix buffer size handling for ride operations input
...
Ensure a nicely terminated string
2022-07-28 14:24:19 +02:00
Michael Steenbeek
1a8660d59d
Pass window reference to tool_set ( #17625 )
2022-07-27 22:22:22 -03:00
Gymnasiast
39f60c3412
Input current value; fix dodgems mode detection
2022-07-27 23:13:01 +02:00
Rik Smeets
1eb3a86770
Ride operating settings can be set via text input
...
Both minimum and maximum wait time and operating settings for flat rides can now be set via text input.
2022-07-27 22:50:04 +02:00
8street
213696ea27
Add option to sell merchandise in random colours
...
Co-authored-by: 8street <nikolai_e@rambler.ru>
2022-07-12 22:20:49 +00:00
Gymnasiast
06c368694a
Update variables containing a CarEntry
2022-07-11 18:06:22 +02:00
Artem Yanenko
29beb2962d
Fix primary color picker for canvas tent ( #17416 )
2022-06-20 21:24:09 +02:00
Hielke Morsink
13db5a771b
Annotate hardcoded arrays and verify their sizes
...
This also reduces the number of lines within // clang-format comments
2022-06-16 23:51:24 +02:00
Michael Steenbeek
3fae2413db
Use “car” instead of the ambiguous “vehicle”, part 1
...
Currently, the word “vehicle” is used for both “train” and “car”. This is a first effort towards disambiguation.
2022-06-07 20:36:20 +00:00
spacek531
673ec0fa10
Frames rotation count part 1 ( #17106 )
...
Refactor vehicle sprite groups
rename rotationType to spriteGroup
remove numframes getters from scobject
add sprite groups getters
add documentation to plugin
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-06-03 23:03:02 +01:00
Hielke Morsink
d709668eab
Remember scroll position instead of ride selection
2022-05-28 13:09:26 +02:00
Rik Smeets
275adc9e68
Fix #7983 : Change when certain G-forces show up in red
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-05-27 22:09:18 +00:00
Sebastian Flinck Lindström
8fe124b1dd
Close #13966 : Sort Music Style dropdown by name
2022-05-07 20:51:51 +00:00
spacek531
5659d43f46
Cleanup vehicle drawing code part 3 ( #16968 )
...
* Cleanup vehicle drawing code part 3
* Create functions to convert between rotation amounts
* Add regions to ease code navigation
2022-04-30 07:56:23 +01:00
Hielke Morsink
35915b0a5d
Fix: Writing out of bounds when trains have over 144 cars
2022-04-27 22:02:39 +02:00
Geoff Banh
85baa6f7ca
Fix #14093 : Replace MONEY macro with user defined literal
2022-03-29 07:23:35 -03:00
Michael Steenbeek
e78c29ea5c
Fix most occurrences of ‘ternary’ ( #16832 )
2022-03-20 19:22:05 +01:00
Ivan Krushkov
eb423a73b7
Close #12793 : Excitement/Intensity/Nausea ratings to Ride List view with sorting ( #16655 )
2022-03-11 11:17:14 +00:00
Rik Smeets
2a7209bee5
Fix #16140 : Disable 'follow this' in 'overall' and 'station' view
2022-03-02 20:05:53 +01:00
spacek531
82378c09c3
Rename VAR_CE and its unions ( #16215 )
2022-02-20 23:20:06 -03:00
Hielke Morsink
5c5f86ac42
Correct some mistakes
2022-02-18 23:28:21 +02:00
Hielke Morsink
ad0a2a8f96
Remove entrance/exit location functions
2022-02-18 23:28:17 +02:00
Hielke Morsink
2137cea3bb
Reduce use of UnderlyingType
2022-02-18 23:21:38 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
054f7392a1
Let index underflow for reverse loops
2022-02-18 23:11:11 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
Michael Steenbeek
ffe67ff33e
Merge pull request #16642 from Gymnasiast/refactor/dropdown
...
Create Dropdown::Item and use it for gDropdownItems
2022-02-15 18:50:26 +01:00
Ted John
b775832d01
Refactor window flags to be read with the helper methods
2022-02-13 23:09:42 +00:00
Ted John
da89a4e413
Remove rct_window::enabled_widgets ( #16643 )
...
`enabled_widgets` was used to enable input for widgets. However I do not recall anywhere this being used to specifically disable a widget which doesn't use the dedicated `disabled_widgets` flag. I don't think there is any purpose in keeping this, so I have removed all uses of it.
2022-02-13 23:06:19 +00:00
Gymnasiast
723867e0a0
Create Dropdown::Item and use it for gDropdownItems
2022-02-12 23:57:22 +01:00
Gymnasiast
49ccc21d84
Fix #16576 : Cannot select vehicle types with entry index >= 256
2022-02-12 20:43:45 +01:00
Gymnasiast
3ff8225bb9
Replace some uint8_t in Ride.cpp
2022-02-12 20:43:45 +01:00
ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Duncan
5157b57a15
OpenRCT2 Limits ( #16088 )
...
* Move over max rides to limits file
* Move max stations to limits file
* Move over max inversions, golf holes, helices, custhistsize
* Move over max trains per ride
* Bring over Max cars per train and max circuits per ride
* Port over NumColourSchemes and max vehicle colours
* Fix compilation
* Move over max awards
* Move over max peep spawns and park entrances
* Fix rebase issues
* Remove future work
* Switch style
* Update copyright
2022-02-01 20:59:48 +00:00
ζeh Matt
383412252c
Only modify gLastEntranceStyle for the callee of the game action
2022-01-29 16:42:27 +02:00