Stephan Spengler
bfcf66a8f7
Rename ParkSetEntranceFee to fit naming pattern
2023-01-06 22:57:18 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Michał Janiszewski
0f11246a81
Sync cmake version required for tests to main project ( #18766 )
...
b7a1db6e69/CMakeLists.txt (L2)
2022-12-17 18:33:01 +01:00
73
48ba81371f
Fix #18600 : Some copyright years are not updated
...
this will address issue report #18600
2022-11-16 11:13:32 +01:00
Hielke Morsink
31dd4bf604
Use lower-case u integral suffix
2022-10-29 16:33:05 +02:00
Hielke Morsink
97a7fcc110
Consistently use literal suffix in upper-case
2022-10-29 16:28:53 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
Duncan
406b73d904
Remove final snakes from map and world ( #18304 )
2022-10-12 09:14:45 -03:00
Duncan
7dd8989e70
Next chunk of World/Map.h snakes ( #18296 )
...
* Next chunk of World/Map.h snakes
* Apply clang-format
2022-10-12 06:35:20 +01:00
Duncan
67bbc8560d
Code style: Remove snakes from everything world apart from Map.h ( #18273 )
...
* Remove remaining snakes from world (outside of map)
* Initial few desnaking of Map.h
2022-10-11 19:39:24 +01:00
Gymnasiast
830fedb6b8
Replace load_from_sv6() and load_from_sc6()
2022-10-08 20:12:35 +02:00
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03:00
Michał Janiszewski
692935f1e0
Fix old-style casts in tests ( #18225 )
2022-10-06 12:43:52 -03:00
duncanspumpkin
16581e9288
Address snakes in mapgen and map animation
2022-10-05 20:22:51 +01:00
duncanspumpkin
3e8dc1b2ac
Remove snakes from the foopaths
2022-10-04 20:08:14 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
ZeeMajora
234c125a73
Attempt to fix ratings test
2022-09-27 15:45:18 -04:00
Michael Steenbeek
5661da1c68
Unwrap game action compat wrappers
2022-08-11 00:00:58 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Michael Steenbeek
88b3e88bdd
Remove Testpaint ( #17333 )
...
TestPaint served us well, but it hasn’t compiled for years, and before that it produced incorrect results for years.
2022-06-06 10:07:07 +02:00
LordOfLunacy
fa71bbc1b2
Implement requested changes
...
- Change the GuestPathfinder object to a smart pointer
- Improved function signatures
- Added javadoc comments to the abstract base class
- Converted pointers to references in pathfinding function calls
2022-05-14 15:28:24 -04:00
LordOfLunacy
eddda64e20
Fixed formatting
2022-05-13 19:59:47 -04:00
LordOfLunacy
45013a90cc
Part of pathfinding rework
2022-05-13 19:18:46 -04:00
Michael Steenbeek
db900b12db
Create enum for codepages ( #17181 )
2022-05-10 12:55:39 +02:00
Michał Janiszewski
1670aa759f
Remove support for vendored gtest
...
Originally implemented only to satisfy the (somewhat dubious) claim of
gtest about the necessity to provide your own copy. The original claim
got removed here:
5437926b22
2022-05-09 23:04:53 +02:00
Micha Janiszewski
dfd5b4e775
Update MSVC project to use correct Google Test library
2022-05-08 22:22:36 +02:00
Michał Janiszewski
d81b36e16f
Update GoogleTest version
2022-05-08 22:22:03 +02:00
Michał Janiszewski
3bc5c6c563
Introduce MSVC ARM64 platform
2022-05-07 23:48:27 +02:00
Michał Janiszewski
81203598fd
Fix BitSetTests for ARM64 MSVC targets
2022-05-07 23:48:27 +02:00
Gymnasiast
34eeacf376
Update tests
2022-05-01 18:52:28 +02:00
Ted John
8aafab2a70
Split paint item into element and entity
2022-03-14 21:55:15 +00:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Michael Steenbeek
70121eae38
Close #14484 : Make the Heartline Twister ratings less hateful ( #16680 )
...
This raises two parameters: the base excitement value (which is very low, especially since the air-time bonus is limited too) and the bonus value (the novelty of this ride type warrants a bigger value).
It leaves the rest of the poor bonuses as-is, as some of them (like scenery and synchronisation bonuses) might just be there because the track obscures the view.
2022-02-23 11:24:02 +01:00
Hielke Morsink
ad0a2a8f96
Remove entrance/exit location functions
2022-02-18 23:28:17 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
ζeh Matt
c0474d2d27
Merge pull request #16466 from ZehMatt/refactor/identifier-rideid
...
Use TIdentifier for RideId
2022-02-12 11:23:54 -08:00
Michael Steenbeek
44a607800e
Bring ImageImporter enum names in line with code style
2022-02-12 18:56:17 +01:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Michael Steenbeek
1062c3d08d
Clean up palette import
2022-02-07 19:34:22 +01:00
Michael Steenbeek
4e17bb54b4
Remove now-unused RCT2 export functions
2022-01-08 20:00:30 +01:00
Gymnasiast
e4496c41bd
Upgrade platform_sanitise_filename()
2022-01-05 15:26:52 +01:00
ζeh Matt
2329d3d681
Refactor tile access to be continuous when iterating
2021-12-30 23:03:32 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
duncanspumpkin
7e7947fe8b
Move legacy identifier interpreting to separate file from parkfile
2021-12-15 21:29:02 +00:00
ζeh Matt
e405658f6a
Code style and cleanup
2021-12-13 16:00:51 +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
ζeh Matt
59682291f0
Fix warnings and supply template argument
2021-12-13 02:31:33 +02:00
ζeh Matt
ae61d7956a
Add tests for BitSet
2021-12-12 23:47:20 +02:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
91635a5047
Replace SetType and old strong enum with normalised
2021-12-05 13:54:01 +01:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
275d565e52
Start splitting up ride.h ( #16011 )
...
* Start splitting up ride.h
* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
ζeh Matt
03fb9b390f
Rename Sprite to EntityRegistry
2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c
Fix includes
2021-11-24 16:48:33 +02:00
ζeh Matt
c6242fd310
More renaming
2021-11-24 15:50:18 +02:00
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Michael Steenbeek
e6e0b31397
Fix #15899 : Odd ratings bonus for path 0 ( #15905 )
2021-11-13 12:28:42 +01:00
Hielke Morsink
76b5479bbb
Fix undefined use of cctype functions
2021-11-06 16:27:54 +01:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Duncan
e13307a28d
Small cleanup of variables ( #13655 )
...
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2021-10-20 23:51:06 -03:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
ζeh Matt
eb2de0222b
Use GetLocation in more places
2021-09-28 03:16:04 +03:00
Ted John
8cdece0252
Fix incorrect objects in S6 import
2021-09-15 11:28:40 +02:00
ZehMatt
47b782ec2d
Use correct type in path finding code
2021-09-10 19:10:12 +03:00
Michael Steenbeek
7b2554cdae
Addendum to #15340 : guard size of object_entry_group_counts
2021-09-05 16:06:34 +02:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Michael Steenbeek
95111047b0
Merge pull request #15249 from Broxzier/feature/make_ptr
...
Refactor use of std::unique_ptr
2021-08-21 21:50:42 +02:00
Hielke Morsink
dd2467d805
Update include guards
...
- Update from C-style to pragma once
- Add missing include guard to ui.h
2021-08-21 09:43:26 +02:00
Hielke Morsink
be4159f9ac
Create std::unique_ptr<ILanguagePack>instead of raw pointer
2021-08-21 00:28:21 +02:00
Duncan
940cab87d3
Map size refactors from NSF ( #15112 )
...
* Support large map sizes
* Fix top spin painting
* Fix crooked house
* Increase bb size
* Decrease limit back
* Clang format
* Remove asserts and apply review comments
* Fix rebase mistake
Co-authored-by: Ted John <ted@brambles.org>
2021-08-16 20:51:16 +01:00
Michael Steenbeek
86af7f486d
Fix spelling of “continuous”
2021-07-29 17:07:49 +03:00
ZehMatt
cd43cab999
Add tests for EnumMap
2021-07-29 17:07:49 +03:00
Hielke Morsink
c887a049d2
Fix various Cppcheck warnings ( #15081 )
2021-07-24 23:41:50 +02:00
Hielke Morsink
617bb698ae
Use UK spelling of center
2021-06-29 00:03:45 +02:00
duncanspumpkin
d4381ffeea
Update ride rating test data
2021-06-27 09:36:55 +01:00
Jamie Quigley
4f6d0a00fd
Refactor RIDE_STATUS to use strong enum ( #14840 )
...
* Refactor RIDE_STATUS to use strong enum
* Change platform-specific code to match RIDE_STATUS refactor
* Re-added check for valid RideStatus value
* Fixed errors in "g2" build target
* Use EnumValue instead of static_cast<uint8_t>
* Revert rct{1,2}.h to use uint8_t.
* Fix formatting
* Reverted from constexpr variable to additional enum variant
* Fix formatting
2021-06-10 07:09:58 +01:00
Duncan
072772af7b
Rework importexport test to use GameStateSnapshots ( #14838 )
...
Rework importexport test to use GameStateSnapshots
Output errors
Rename function
2021-06-08 08:35:31 +01:00
duncanspumpkin
08bd6080fd
Add missing compare
...
This should hopefully fail the test
2021-06-08 07:46:56 +01:00
Ted John
81d7c3f02b
Make tile elements dynamic and resizeable
2021-06-05 21:17:03 +01:00
Matt
2ec5cca3a2
Fix TestPaint
2021-06-05 17:16:07 +03:00
duncanspumpkin
3199029168
Split off EntityTweener into seperate file
2021-05-29 07:47:49 +01:00
Duncan
39fcc5d078
Split up Sprite header ( #14764 )
...
* Remove fields from rct_sprite union
* more header fun
* Fix guest include
2021-05-29 06:01:32 +01:00
Silent
94da3cf422
Fix #13445 : Make FileScanner::ScanDirectory return a unique_ptr
...
Also fixes a resource leak in TitleSequence::GetSaves.
2021-05-20 19:22:36 +02:00
ZxBiohazardZx
36b2742c19
Change Vehicle Rotation namings in accordance with OpenRCT2 Codestyle ( #14616 )
...
* Code Refactor: Rename vehicle_sprite_type to Pitch
In some of the issues the vehicle_sprite_type is used to check for properties in regards to the pitch of the vehicle.Similarly bank_rotation is used to provide information on the Roll property. This is not in alignment with the https://github.com/OpenRCT2/OpenRCT2/wiki/Coding-Style and makes it harder to refactor other elements of the codebase and makes for undesired nested logics.
This PR also includes the change from rename bank_rotation to Roll in alignment with the OpenRCT2 Coding Style
Related to PullRequest #11956
* Apply formatting
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-05-12 12:38:46 +01:00
Duncan
3fd8bee32b
Re-enable 32bit replay tests ( #14614 )
...
After the changes made to the serialise functions the 32bit replay tests can now be re-enabled
2021-05-10 09:42:18 +01:00
Duncan
8eabdf8c8f
Split guest and staff peep variables ( #14462 )
...
* Split guest and staff peep variables
* Move variable location
* Increment network version
* Update replays
2021-04-18 17:48:21 +01:00
Duncan
a9e1f2e89c
Remove SpriteBase::flags ( #14460 )
...
* Remove SpriteBase::flags
* Increment network version
* update replays
2021-04-11 18:02:19 +01:00
Duncan
977d05ba29
Entity type5: Remove peep assigned type ( #14380 )
...
* Remove users of AssignedPeepType
* Remove AssignedPeepType
Field no longer required due to changes to EntityType
* Move enum to the RCT12 header
* Increment network version
* Update replays
2021-03-24 08:54:05 +00:00
Duncan
ccfa22c230
Entity type4: Remove MiscEntityType and add FountainType ( #14344 )
...
* Move jumpingfountain type out of misc entity type
* Remove SubType for MiscEntities as it is no longer required
* Update replays
* Apply review comments
* Increment network version
2021-03-22 21:24:50 +00:00
Duncan
df7a284822
Entity type 2: Remove sprite_identifier ( #14334 )
...
* Start changing the underlying type
* Further work
* Complete refactor
* Further cleanup
* Remove pointless check
* Increment network and plugin versions
* Add defaults
* Further defaults
* Fix test paint
* Update replays
2021-03-17 08:04:41 +00:00
Duncan
5474194905
Implement train view and remove linked_list_index ( #13956 )
...
* Make train manager view
* Remove linked list index field
* Remove merge mistake
* Fix further rebase errors
* Rename and add comments
* Update replays
* Fix Xcode project
* Increment network version
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-03-15 08:13:00 +00:00
Michał Janiszewski
29a1cf018d
Add negative tests for SawyerChunkReader
2021-03-03 21:55:05 +01:00
Michael Steenbeek
28c680f97f
Merge pull request #14163 from Gymnasiast/refactor/get-rtd
...
Use GetRideTypeDescriptor() in more places
2021-02-26 10:46:38 +01:00
Gymnasiast
48f513f73f
Apply review request; fix Testpaint
2021-02-26 10:19:03 +01:00
Gymnasiast
44d0e77afb
Make all access to RTD table use the bounds checking function
2021-02-26 10:01:00 +01:00
Gymnasiast
f118b2ede4
Replace ride_type_has_flag() with retrieving RTD
2021-02-26 09:49:09 +01:00
Michał Janiszewski
ac6e4fc0d6
Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes
2021-02-25 10:56:27 +01:00