1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00
Commit Graph

22675 Commits

Author SHA1 Message Date
Michael Steenbeek
fac52b7322 Move more platform functions (#16416)
* Upgrade platform_get_locale_measurement_format()

* Upgrade platform_get_locale_date_format()

* Upgrade platform_get_locale_temperature_format()

* Move platform_directory_delete() to Path

* Upgrade platform_process_is_elevated()

* Move platform_update_palette() to Drawing.cpp

* Upgrade platform_get_steam_dir()

* Upgrade platform_get_font_path()

* Remove now-empty platform files

* Fix formatting

* Upgrade platform_get_default_scale()

* Move remaining stuff in Android.cpp

* Use return {} instead of return ""
2022-01-16 14:06:55 +01:00
GalBr
df5c4dd91c Fix #15947, #15960: Cannot remove rotated flat rides
Replace _currentTrackPieceDirection with local variable. This change
fixes a problem where when trying to remove a rotated ride,
_currentTrackPieceDirection would be reset back to 0 by calling
ride_initialise_construction_window, causing TrackRemoveAction to not
being able to find and remove the ride.
Using a local variable with the current direction, saved before resetting
the global variable, fixes this issue.
2022-01-16 14:04:00 +01:00
Gymnasiast
c69ef062ab Use return {} instead of return "" 2022-01-16 13:18:41 +01:00
Gymnasiast
0aa256a26a Move remaining stuff in Android.cpp 2022-01-16 13:17:54 +01:00
Gymnasiast
b826c0706a Upgrade platform_get_default_scale() 2022-01-16 13:17:54 +01:00
Gymnasiast
f553268728 Fix formatting 2022-01-16 13:17:54 +01:00
Gymnasiast
131022c373 Remove now-empty platform files 2022-01-16 13:17:54 +01:00
Gymnasiast
f917fffe34 Upgrade platform_get_font_path() 2022-01-16 13:17:54 +01:00
Gymnasiast
310ad1e400 Upgrade platform_get_steam_dir() 2022-01-16 13:17:54 +01:00
Gymnasiast
eb2b0c1537 Move platform_update_palette() to Drawing.cpp 2022-01-16 13:17:54 +01:00
Gymnasiast
feeadb3c98 Upgrade platform_process_is_elevated() 2022-01-16 13:17:54 +01:00
Gymnasiast
8d6cb974bf Move platform_directory_delete() to Path 2022-01-16 13:17:54 +01:00
Gymnasiast
973c5999b0 Upgrade platform_get_locale_temperature_format() 2022-01-16 13:17:53 +01:00
Gymnasiast
90a74df3bc Upgrade platform_get_locale_date_format() 2022-01-16 13:17:53 +01:00
Gymnasiast
95717573f5 Upgrade platform_get_locale_measurement_format() 2022-01-16 13:17:53 +01:00
spacek531
ef77f9c2c1 Fix flying RC track availability 2022-01-16 13:14:27 +01:00
GalBr
f2f47aa492 Fix TrackDesignPreviewDrawOutlines using a local struct
TrackDesignPreviewDrawOutlines created and modified a local
TrackDesignState struct, so the calculated information was lost.
Now the function receives a ref to a TrackDesignState struct.
2022-01-15 21:24:59 +01:00
Duncan
667f3e856d Merge pull request #16439 from duncanspumpkin/fix_16276
Fix #16276. Paths on trackdesigns not connecting on placement
2022-01-15 15:14:54 +00:00
Duncan
7e46427059 refactor ride track groups to use new bitset (#16172) 2022-01-15 07:50:00 +00:00
GalBr
b69448d075 Refactor MazeConstruction window to class (#16307) 2022-01-15 07:41:24 +00:00
duncanspumpkin
81b490b0bc Fix #16276. Paths on trackdesigns not connecting on placement 2022-01-15 07:11:07 +00:00
Duncan
7fff8fae7a Convert back to utf8 strings in Path functions (#16425) 2022-01-11 19:34:33 +00:00
Hielke Morsink
e33d71346a Prevent underground view during title sequence 2022-01-11 17:31:01 +01:00
Hielke Morsink
1d5c0361b5 Consistently shift 8-byte constants by widget indices 2022-01-10 23:26:31 +01:00
Hielke Morsink
1085a30cfd Merge pull request #16412 2022-01-10 16:04:25 +01:00
Michał Janiszewski
4a36520ba2 Fix #16408: Report extended version information (#16413)
* Fix #16408: Report extended version information

* Update distribution/changelog.txt

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-01-10 06:52:39 +00:00
Michał Janiszewski
9b6040c590 Extend reporting of curl failures (#16410) 2022-01-09 19:53:40 -03:00
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