James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
matoro
191b0c4d6d
Use __LP64__ for BitSet 64-bit blocksize conditional check
...
The canonical way to check for 64-bit system is __LP64__ preprocessor
define. This allows to build and pass test suite on ppc64le.
2023-12-24 18:30:48 +01:00
ζeh Matt
ae3c1037ad
Properly name what the getter/setter for surface object index is
2023-08-26 20:50:06 +03:00
ζeh Matt
5f515b6a73
Refactor the code that uses MapGetFootpathElement
2023-08-05 18:09:38 +03:00
ζeh Matt
378e1f3c15
Ensure the tests use the correct overloads
2023-07-06 01:32:28 +03:00
ζeh Matt
c55eb50740
Add some basic tests for Equals and IEquals
2023-07-06 00:51:52 +03:00
Matthias Moninger
379287ed0f
Remove legacy stuff in common.h ( #20523 )
...
* Remove old interop macro
* Remove legacy string macro things
* Unbreak the posix/linux/unix builds
* Add String::IEquals and use it for case insensitive compare
* Add missing include for posix
* Replace _strnicmp with String::StartsWith
* Add LoByte and HiByte into Util.h, swap macros
* Fix android build
* Hopefully last of the string things
* Replace STUB directly with the warning
2023-07-02 12:59:20 +03:00
ζeh Matt
ac583569da
Remove Platform::CoreInit
2023-06-27 23:35:11 +03:00
Matthias Moninger
b291c87d51
Merge pull request #20271 from duncanspumpkin/objDescriptor
...
Rework Object Identifier callers
2023-06-26 16:11:45 +03:00
ζeh Matt
e4ac1f9e3c
Add EverythingPark ride ratings to the tests
2023-06-09 17:30:07 +03:00
ζeh Matt
befb72b826
Add the Everything Park created by Marcel Vos to the test parks
2023-06-09 16:53:27 +03:00
duncanspumpkin
86c02b839f
Format and fix tests
2023-05-22 20:07:06 +01:00
duncanspumpkin
dbb04f6a94
Further removal
2023-05-22 08:52:43 +01:00
Silent
c4b70358c8
More MAX_PATH removals ( #20113 )
...
* Refactor FileScanner to lift a MAX_PATH limit
* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory
* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
kyphii
6f55454ae8
Add ratings modifier for reversed trains ( #20091 )
...
* Add ratings modifier for reversed trains
* Add test save file and ratings for this
* Changelog entry
* Bump network version
* Modify changelog
* Changelog edit
---------
Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-05-06 02:40:41 +03:00
ζeh Matt
c6c29dbf64
Add BigTestMap to ride rating tests
2023-04-26 17:48:38 +03:00
Michael Steenbeek
812ea151bb
Fix duplicate RGB colours in palette ( #18299 )
...
* Remove duplicate RGB colours from palette
* Update hash
* Update reference dat file
---------
Co-authored-by: Spacek531 <spacek531@comcast.net>
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-04-16 15:15:26 +01:00
Duncan
1ec62e44bb
Add missing string test ( #19837 )
2023-04-05 21:28:50 +01:00
Michał Janiszewski
049d962a7c
Merge pull request #19462 from duncanspumpkin/cmakeTests
...
Actually Run All Unit Tests in CMake
2023-04-03 17:43:23 +02:00
Michael Steenbeek
fd80b4c822
Refactor and clean up date handling ( #19666 )
...
* Refactor and clean up date handling
* Remove gDate, remove direct access to days_in_month
* Adjust the MultiLaunch test
* Bump network version
---------
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2023-04-02 09:25:41 +01:00
Matthias Moninger
9e4099fcdf
Fix VS debug builds not finding gtestd.lib ( #19798 )
2023-04-02 09:20:47 +02:00
duncanspumpkin
b9ce206044
Move to pretest discovery
2023-03-30 08:31:59 +01:00
duncanspumpkin
bde48f0b25
Fix running the tests
2023-03-29 22:05:21 +01:00
duncanspumpkin
2ea289d5c6
Fix tests that now fail to compile
2023-03-29 22:05:19 +01:00
duncanspumpkin
aee3f17b93
Fix cmake tests compiling
2023-03-29 22:04:13 +01:00
Matthias Moninger
62b0a5edfe
Build with link time code generation only on the develop branch
2023-03-26 16:50:18 +02:00
Gymnasiast
fd4c9a7b9d
Close #19176 , close #19273 : Consistent “CmdLine” naming
2023-02-23 00:03:30 +01:00
Duncan
7d08372c80
Remove snake_case from Class names OpenRCT2/Ride*-S* ( #19232 )
...
* Remove snake_case from Class names OpenRCT2/Ride*-S*
* Clang format
2023-01-20 20:58:55 +00:00
duncanspumpkin
3fc1dc7eee
Fix tests so that they actually run something
2023-01-19 21:51:04 +00:00
duncanspumpkin
c3aab4e460
Fix duplicated variable name
...
This was tripping up clang-tidy preventing it from running on tests
2023-01-19 21:40:23 +00:00
Duncan
23b6d1840e
Rename classes with snakes OpenRCT2/G*-M*
2023-01-19 15:13:23 +00:00
Hielke Morsink
0762fcb601
Rename snake_case functions in OpenRCT2/util folder
2023-01-18 22:44:13 +01:00
Josh Trzebiatowski
3b82774df1
Rename snake_case methods/classes under tests ( #19205 )
...
* Remove snake_case method names in sawyercoding_test.cpp
* Rename sawyercoding_test.cpp to SawyerCodingTest.cpp
* Rename sawyercoding_test.cpp to SawyerCodingTest.cpp
2023-01-18 06:06:54 +00:00
Duncan
09611cd9a5
Remove snake_case from OpenRCT2/entity folder
2023-01-17 21:16:36 +00:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
Michael Steenbeek
bf5f7e8e71
Rename format_string(2) and is_user_string_id() ( #19178 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 08:59:07 +00:00
Stephan Spengler
76b918e7ed
Change openrct2/ride methods to UpperCamelCase, part 1
2023-01-17 01:32:54 +01:00
Michael Steenbeek
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
Gymnasiast
b6d422ff95
Migrate remaining C strings in config handling
2023-01-08 15:41:10 +01:00
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
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
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
ζ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
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