1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00
Commit Graph

8744 Commits

Author SHA1 Message Date
Gymnasiast
1a5bb7483d Enable std::filesystem for Android
NDK r22 introduced support for std::filesystem, so re-enable it: https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md#ndk-r22
2022-03-18 23:14:51 +01:00
Joel Larson
662c74228a Fix #13629: Refactor RCT1_PEEP_SPRITE_TYPE to use scoped enum (#13863)
Co-authored-by: Joel Larson <isochronlabs@protonmail.com>
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-03-18 07:51:39 -03:00
Duncan
d266743083 Fix #16808: Incorrect serialisation of track design object (#16817) 2022-03-18 07:10:19 -03:00
Margen67
09b9bd90d4 Fix #2987, #7417: Use game actions for most set commands (#15032)
Fix #2987
Fix #7417
2022-03-18 07:06:27 -03:00
Silent
771637f24c Refactor filename_valid_characters into Platform::IsFilenameValid 2022-03-16 21:56:54 +01:00
Silent
28b0a39a73 Refactor CmdlineSprite.cpp and remove path_end_with_separator 2022-03-16 21:56:54 +01:00
Charles Machalow
bb5d53d9f2 Fix crash where peeps enter through extra ride entrances (#16727)
Fix #16170, #16177
2022-03-15 06:39:13 +00:00
Charles Machalow
99db07cfe0 Fix #16759: No music when unmuting the game in title screen 2022-03-14 21:16:16 +01:00
Ted John
dff1d730da Implement #13620: [Plugin] Add support for patrol areas to Staff 2022-03-13 19:30:50 +00:00
Ted John
27ed19002a Merge pull request #16740 from IntelOrca/precise-patrol-areas
Allow patrol areas to be single tiles.
2022-03-13 15:20:33 +00:00
Ted John
f8224150d5 Validate patrol area location 2022-03-12 10:43:41 +00:00
Ted John
38d36acef3 Add patrol area tool window 2022-03-12 10:43:41 +00:00
duncanspumpkin
7a36e34782 Apply review comments 2022-03-12 07:26:34 +00:00
duncanspumpkin
68d0d05d49 Remove extra non rotated PaintAddImageAsChild 2022-03-11 21:45:12 +00:00
duncanspumpkin
763aae70f7 Fix regex fail 2022-03-11 21:45:12 +00:00
duncanspumpkin
39c8fda4e6 Apply regex to PaintAddImageAsChildRotated 2022-03-11 21:45:12 +00:00
Gymnasiast
dfa58470cf Apply simplification 2022-03-11 21:10:10 +01:00
Ted John
97dfe3cb73 Refactor std::lower_bound to binary_find 2022-03-11 18:39:05 +00:00
Ted John
0aa6ceb2aa Refactor similar loop in s4 and s6 import 2022-03-11 18:39:04 +00:00
Ted John
90718ca81c Refactor patrol area class to new file 2022-03-11 18:39:04 +00:00
Ted John
566bc4d311 Allow patrol areas to be single tiles
Change the patrol areas to be stored as a sorted list of points grouped in fixed cells for each staff entity. The complexity will be a mixed O(1) and O(log n) search.
2022-03-11 18:39:04 +00:00
duncanspumpkin
b7aa5ebd2e Correct failures 2022-03-11 13:55:01 +00:00
duncanspumpkin
a5a00517ea Apply regex on PaintAddImageAsParentRotated2 2022-03-11 13:45:00 +00:00
Duncan
b6175bb556 Apply regex for PaintAddIMageAsParentRotated (#16775)
* Apply regex for PaintAddIMageAsParentRotated

* Remove unused function
2022-03-11 13:36:55 +00: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
Silent
5e725913f8 Close #16566: Favour WinNT preprocessor version checks over MinGW (#16677) 2022-03-11 07:59:09 -03:00
Silent
159a76d7ec Refactor uses of safe_strcat_path 2022-03-10 20:18:17 +01:00
Silent
3773fa4cb0 Refactor uses of path_append_extension 2022-03-10 20:18:17 +01:00
Michael Steenbeek
9b1c915f4d Merge pull request #16744 from Basssiiie/fix-unlimited-vehicles-defaults
Fix “Disable vehicle limits” cheat giving all new rides 32 trains with 12 cars
2022-03-09 13:03:14 +01:00
Ted John
b7b8816db7 Add plugin hook for map save 2022-03-07 21:40:48 +01:00
Michael Steenbeek
11ce0e8f8a Merge pull request #16489 from Gymnasiast/fix/16426
Fix #16426: Empty changelog when installed to non-standard prefix
2022-03-07 18:20:20 +01:00
Bas
078078416b Replace all 'cars_per_flat_ride' 0xFF with 'NoFlatRideCars' 2022-03-04 20:21:15 +01:00
Bas
d239529a73 Fix “Disable vehicle limits” cheat giving all new rides 32 trains 2022-03-03 22:26:33 +01:00
Michael Steenbeek
c334c7a176 Merge pull request #16724 from Gymnasiast/refactor/remove-path_get_filename
Remove four old path functions
2022-03-02 22:25:08 +01:00
Michael Steenbeek
61a18e7d90 Merge pull request #16733 from Broxzier/refactor/use-u8-strings
Use utf8 strings where expected
2022-03-02 22:13:13 +01:00
Michael Steenbeek
5d030da5ae Fix missed occurrence 2022-03-02 21:48:39 +01:00
Gymnasiast
f52c83962e Use Path::Combine() instead of hardcoded slash 2022-03-02 20:01:04 +01:00
Hielke Morsink
6ba0a3bd49 Use u8 strings when dealing with file paths 2022-03-01 22:12:39 +01:00
Hielke Morsink
55c71b0c74 Properly use utf8 strings where expected 2022-03-01 22:12:39 +01:00
Duncan
66b8f283eb Rename flag and reorg ghost remove flags (#16734) 2022-02-27 22:39:55 +00:00
Hielke Morsink
ba85cf4873 Close #15896: Refactor out the ZoomLevel operators 2022-02-26 23:14:59 +01:00
ζeh Matt
f27d0ff3b0 Merge pull request #16359 from ZehMatt/refactor/didpasssurface
Refactor out DidPassSurface
2022-02-26 12:43:40 -08:00
Gymnasiast
060c430c64 Replace path_get_directory() 2022-02-26 18:26:24 +01:00
Gymnasiast
33edc59883 Replace path_remove_extension() 2022-02-26 18:26:24 +01:00
Gymnasiast
376c79408a Replace path_set_extension with Path::WithExtension() 2022-02-26 18:26:24 +01:00
Gymnasiast
49b414a40e Replace calls to path_get_filename() 2022-02-26 17:20:07 +01:00
Hielke Morsink
fea9254368 Remove unused GetEngine functions (#16722) 2022-02-26 07:27:48 -03:00
Charles Machalow
6406b18c98 Fix #16715. The first time we save a park, default to the park's name… (#16719)
* Fix #16715. Default to the park's name as the file name

* Mark Combine as nodiscard

The return value must be used for the function to do something
2022-02-26 06:23:30 +00:00
Ted John
18c4a4ea04 Merge pull request #16685 from IntelOrca/plugin/park-storage
Add Plugin API for storing data in .park files
2022-02-25 14:23:10 +00:00
spacek531
466c8b4b89 rename vehicle position variables (#15370) 2022-02-25 07:21:45 +00:00