Commit Graph

22998 Commits

Author SHA1 Message Date
Hielke Morsink 4494eb3949
Ensure parks are not paused in title sequence 2022-01-09 22:11:09 +01:00
Hielke Morsink 5020f993b9
Do not skip .park files in save list 2022-01-09 21:58:38 +01:00
Hielke Morsink 2bb9dbe8c1
Fix: Title Sequence cannot load .park files 2022-01-09 21:48:11 +01:00
Michael Steenbeek 939ddb4813
Merge pull request #16399 from Gymnasiast/refactor/more-platform-functions-2
C++-ify most path handling
2022-01-09 13:29:54 +01:00
OpenRCT2 git bot c8f037ba7d Merge Localisation/master into OpenRCT2/develop 2022-01-09 04:09:35 +00:00
Michael Steenbeek 788697a7c1
Use static constexpr const for image ids 2022-01-08 23:28:29 +00:00
GalBr 151882c279
Fix #16024: Wrap vehicle colors when there are more than 32 trains (#16323)
* Wrap vehicle_colours in TrackDesignAction

* Wrap the color presets in set_vehicle_colours_to_random_preset

* Increment network version

* Update changelog.txt

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-01-08 19:04:34 -03:00
GalBr fae4e6323f
Fix #16234: Wrap vehicle colors when there are more than 32 trains (#16323)
* Wrap vehicle_colours in TrackDesignAction

* Wrap the color presets in set_vehicle_colours_to_random_preset

* Increment network version

* Update changelog.txt

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-01-08 19:03:58 -03:00
Michał Janiszewski 47f126f1f0
Reduce locking of linenoise state (#16401)
https://github.com/OpenRCT2/OpenRCT2/pull/16388 introduced locking for
linenoise state, which turned out to be too greedy and would cause a
lock to be taken while calling a blocking `read`. This would result in
any writes to stall until something was read on the input.
2022-01-08 22:22:38 +01:00
Michael Steenbeek 4e17bb54b4
Remove now-unused RCT2 export functions 2022-01-08 20:00:30 +01:00
Gymnasiast 7bab05c66a
Remove unused writeentirefile() 2022-01-08 19:07:48 +01:00
Gymnasiast 6bcf848b2f
Use C++ filesystem for more file/path functions 2022-01-08 19:07:48 +01:00
Gymnasiast 10301507a9
Fix Android 2022-01-08 16:58:57 +01:00
Gymnasiast 919c73d030
C++-ify most path handling 2022-01-08 16:58:57 +01:00
Michael Steenbeek 8d7413f934
Merge pull request #16397 from Gymnasiast/refactor/more-platform-functions
Convert locale language/currency functions to new framework
2022-01-08 16:57:49 +01:00
Gymnasiast 3f22b60f94
Upgrade platform_get_locale_currency() 2022-01-08 12:56:14 +01:00
Gymnasiast 12034b2d36
Upgrade platform_get_locale_language() 2022-01-08 12:56:14 +01:00
Gymnasiast 77d607a4c0
Remove unused OPENRCT2_MAX_COMMAND_LENGTH 2022-01-08 12:08:50 +01:00
Michał Janiszewski f68411b4eb
Ensure linenoise can be safely used from multiple threads (#16388)
This addresses a data race for `linenoise::lnstate` and
`StdInOutConsole::_isPromptShowing` which could result in openrct2
crashing and misreporting values when inspected in debugger.
2022-01-07 16:37:41 +01:00
Michael Steenbeek 2e9e549263
Merge pull request #16380 from Gymnasiast/refactor/platform-to-new
Convert a few platform functions to new framework
2022-01-06 19:46:43 +01:00
Michał Janiszewski f9ca2ba7a5
Extend CI matrix and Update cache keys (#16386) 2022-01-06 13:20:11 +01:00
Michał Janiszewski 9238955b21
Add new CI images (Focal, Bullseye) (#16382)
This adds new images for use in CI, as preparation towards C++20
support (https://github.com/OpenRCT2/OpenRCT2/issues/15501).
2022-01-06 00:09:24 +01:00
Gymnasiast e4496c41bd
Upgrade platform_sanitise_filename() 2022-01-05 15:26:52 +01:00
Gymnasiast de867827a1
Remove update_palette_func 2022-01-05 15:26:52 +01:00
Gymnasiast 1eba596997
Remove platform_get_{date,time}_utc() 2022-01-05 15:26:52 +01:00
Gymnasiast a21e545917
Upgrade platform_get_username() 2022-01-05 15:26:52 +01:00
Gymnasiast 2e7e90a018
Remove platform_get_openrct2_data_path() 2022-01-05 15:26:51 +01:00
Gymnasiast 77e5defeca
Upgrade platform_original_game_data_exists() 2022-01-05 15:26:51 +01:00
Michael Steenbeek ff909cc286
Change rct2_path into a C++ string
Co-authored-by: Ted John <ted@brambles.org>
2022-01-05 15:18:25 +01:00
Michael Steenbeek ca27c2181b
Clean up two hardcoded vehicle maxes 2022-01-05 14:16:16 +01:00
Hielke Morsink b4f264fe4d
Fix #16292: .park files cannot be added to title sequence 2022-01-05 12:44:48 +01:00
Michael Steenbeek 2b0d4e6b3d
Merge pull request #16352 from Gymnasiast/fix/16061
Fix #16061: Incorrect colours in minimap
2022-01-03 14:40:10 +01:00
Michael Steenbeek fa9ef5728e
Merge pull request #16298 from Gymnasiast/refactor/rotation-frames-1
Clean up ride object rotation frames
2022-01-03 14:26:47 +01:00
Michael Steenbeek 2fa33983ad
Close #16013: Refactor RCT12Research import (#16350)
* Remove unused symbols in Research.h

* Move RCT12ResearchItem conversion out of Research.cpp/h
2022-01-03 10:20:04 +00:00
Michael Steenbeek 819495800c
Fix #15943: Crash accessing unset w->focus (#16364) 2022-01-03 10:11:34 +00:00
Gymnasiast 07fff9ec18
Use v1.2.5 objects release 2022-01-02 17:33:31 +01:00
Michael Steenbeek 0e86d9577c
Default-initialise MapColours
Co-authored-by: Ted John <ted@brambles.org>
2022-01-02 17:07:36 +01:00
Michael Steenbeek d7f5995bfd
Remove unintended execute rights 2022-01-01 19:58:28 +01:00
Michael Steenbeek 65500461e1
Fix #16073: Crash in Sub6E1F34SmallScenery() 2022-01-01 19:56:12 +01:00
Gymnasiast 1e1f370c8d
Create PaletteIndex 2022-01-01 18:38:31 +01:00
Gymnasiast de2b893d99
Fix #16061: Incorrect colours in minimap 2022-01-01 16:52:49 +01:00
Michael Steenbeek 3faa0ebc4b
Fix #16346: Crash in Staff::UpdateWatering() 2022-01-01 15:07:55 +01:00
Michael Steenbeek 875115ec33
Fix #16343: Crash in Ride::PopulateVehicleTypeDropdown() 2022-01-01 15:07:42 +01:00
frutiemax c2b33e3541
Close #16002: Segfault opening ride statistics for huge ride 2022-01-01 14:10:42 +01:00
Mathias Gibbens 510e86a4a4
Update manpages 2022-01-01 14:06:41 +01:00
Michael Steenbeek c468a6b197
Merge pull request #16332 from Gymnasiast/refactor/screams
(Re)name some scream-related symbols
2022-01-01 10:55:59 +01:00
ζeh Matt e9f79f1c9d
Merge pull request #16335 from ZehMatt/fix-16324
Fix #16324: Real time ticks advancing every millisecond
2021-12-30 16:39:03 -08:00
ζeh Matt 2329d3d681
Refactor tile access to be continuous when iterating 2021-12-30 23:03:32 +01:00
Michael Steenbeek 678dd0f69f
Merge pull request #16195 from frutiemax/ForwardDeclareFormatter
Forward declare Formatter
2021-12-30 23:01:42 +01:00
Gymnasiast f1f6ac4177
Order scream sounds by name 2021-12-30 22:29:34 +01:00