1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00
Commit Graph

11174 Commits

Author SHA1 Message Date
Harry Hopkinson
5f0d657bf2 Move gScenarioFileName to GameState 2024-09-07 12:20:32 +02:00
Michael Steenbeek
cc1d11a01b Merge pull request #22689 from Gymnasiast/refactor/provisional-elements-to-ui
Move removal/restoring of provisional elements to UI project
2024-09-06 23:44:39 +02:00
Gymnasiast
8715264e1e Refactor provisional footpath flags 2024-09-06 23:31:50 +02:00
Gymnasiast
4ff99d6fd1 Confine provisional paths to Footpath.cpp 2024-09-06 23:31:50 +02:00
Gymnasiast
ab3e919678 Move removal/restoring of provisional elements to UI project 2024-09-06 23:31:50 +02:00
Aaron van Geffen
960bea7aae Prefer using passed game state in save import classes (#22682)
* Wrap global game state in a unique_ptr

* Make ImportTileElements, SetTileElements use game state passed

* Make ImportParkName, ImportSavedView use game state passed

* Make ImportPeepSpawns use game state passed

* Make FixEntrancePositions use game state passed
2024-09-06 23:04:14 +02:00
Michał Janiszewski
125ae170b2 Update Debian CI to Bookworm, Ubuntu CI to Noble (#22493)
* Update Debian CI image to Bookworm

* Disable optimizations for files tripping GCC 12

* Try disabling warnings instead of optimizations

* Update Ubuntu from jammy (22.04) to noble (24.04), drop i386

Dropping i386 as there are packages missing in upstream repository
required for OpenRCT2, such as https://packages.ubuntu.com/noble/libzip-dev

* Deprecate GCC older than 12

* Update Debian Bookworm CI configuration

* Update remaining jobs from Ubuntu jammy to noble

* Update docker images to v16 for libclang-rt-dev
2024-09-06 22:05:04 +02:00
Michael Steenbeek
14f92966a6 Skip unnecessary step after map init
There are no map animations to create on an empty map.
2024-09-05 19:58:00 +02:00
Michael Steenbeek
e81b0def6e Create TrackPaintUtilDrawStationTunnel() 2024-09-04 19:34:47 +00:00
Aaron van Geffen
547b763e89 Reduce includes for GameState compilation unit (#22690) 2024-09-03 23:29:12 +03:00
Aaron van Geffen
d8bac51044 Simplify ScenarioRepository::GetScenarioInfo massively 2024-09-03 21:12:37 +02:00
Aaron van Geffen
4f7385addb Move SC6 specific code from ScenarioRepository to S6Importer 2024-09-03 21:12:37 +02:00
Harry Hopkinson
c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
mrmbernardi
903460ff52 Fix #22231: Invalid object version can cause a crash (#22675) 2024-09-03 04:21:49 +10:00
Michał Janiszewski
18492da229 Release v0.4.14
- Feature: [#15750] Allow using different types of park entrance in one park.
- Feature: [#20942] Allow removing all park fences from the Cheats window.
- Feature: [#21675] Guests ignore price limit cheat.
- Feature: [#22206] Add option to randomise train or vehicle colours.
- Feature: [#22392] [Plugin] Expose ride vehicle’s spin to the plugin API.
- Feature: [#22414] Finance graphs can be resized.
- Feature: [#22569] Footpath placement now respects the construction modifier keys (ctrl/shift).
- Change: [#21189] Patches to fix scenario bugs are now described in .parkpatch files, instead of inside the code.
- Change: [#21659] Increase the Hybrid Roller Coaster’s maximum lift speed to 17 km/h (11 mph).
- Change: [#22466] The Clear Scenery tool now uses a bulldozer cursor instead of a generic crosshair.
- Change: [#22490] The tool to change land and construction rights has been moved out of the Map window.
- Change: [#22490] In sandbox mode, changing land or construction rights now acts as buying or selling.
- Change: [#22491] Scrollbars are now hidden if the scrollable widget is not actually overflowing.
- Change: [#22541] In editor/sandbox mode, tool widgets now appear on the side of the map window, instead of the bottom.
- Change: [#22592] Cheats have been redistributed along three new tabs: date, staff, and nature/weather.
- Fix: [#21123] Transparency options are not respected on startup.
- Fix: [#21189] Additional missing/misplaced land & construction rights tiles in Schneider Shores and Urban Park.
- Fix: [#21908] Errors showing up when placing/moving track design previews.
- Fix: [#22307] Hover tooltips in financial charts are not invalidated properly.
- Fix: [#22316] Potential crash when switching the drawing engine while the game is running.
- Fix: [#22395, #22396] Misaligned tick marks in financial and guest count graphs (original bug).
- Fix: [#22457] Potential crash opening the scenario select window.
- Fix: [#22520] Virtual floor no longer appears when holding modifier keys during track construction.
- Fix: [#22527] Forcing an element type to “wall” via scripts can crash the game.
- Fix: [#22582] Lighting effects are not enabled/disabled correctly, making the game appear frozen.
- Fix: [#22598] Add several .parkpatch files to .sea scenarios with corresponding patches for RCT1 and RCT2 scenarios.
- Fix: [#22606] Virtual floor is sometimes drawn above the path when placing paths.
- Fix: [#22625] Fix compilation with orignal ride ratings.
- Fix: [#22663] Additional missing/misplaced land & construction rights tiles in Mystic Mountain, Build your own Six Flags Holland and Build your own Six Flags over Texas.
- Fix: [#22671] Game default to hide supports on startup.
- Fix: [#22671] Unchecking invisible option does not uncheck see-through option on transparency options and vice versa.
- Fix: [#22677] Hovering the file list in the load/save window causes a slowdown.
2024-09-01 22:30:08 +02:00
mrmbernardi
075ed43286 Fix #22527: Forcing element type to wall via scripts can crash the game (#22674) 2024-09-01 20:15:21 +02:00
Tulio Leao
3d84fe070f Merge pull request #22671 from tupaschoal/transparency-2 2024-09-01 07:55:58 -03:00
Michał Janiszewski
1adaaff6d5 Update backtrace token for upcoming release 2024-09-01 10:18:58 +02:00
Michael Steenbeek
6f6cdc0cc6 Revert "Cleanup MemoryStream code (#22593)" (#22666)
This reverts commit 590ab65b2a.
2024-09-01 00:14:12 +02:00
Tulio Leao
06302f7f06 Revert 9e1b24d 2024-08-31 17:48:35 -03:00
Michael Bernardi
1602a68cae Remove unused headers in Footpath.cpp 2024-08-30 02:23:10 +10:00
Michael Bernardi
c2a69b3c5c Fix #22606: Virtual floor at wrong height for paths 2024-08-30 02:22:30 +10:00
Michael Steenbeek
53cb740cab Merge pull request #22618 from Gymnasiast/refactor/tunnel-types
Normalise tunnel types
2024-08-26 11:51:00 +02:00
Michał Janiszewski
1b142417a7 Fix original ride ratings compilation (#22625)
* Fix original ride ratings compilation

* Update changelog.txt
2024-08-25 00:00:36 +02:00
Gymnasiast
2c752b0c1b Convert most TunnelType usage to TunnelGroup + TunnelSubType 2024-08-23 21:50:47 +02:00
Gymnasiast
8b05e05595 Pass TunnelGroup/TunnelSubType to track-related 2024-08-23 21:50:46 +02:00
Gymnasiast
1807273d37 Add split tunnel groups, tunnel subtypes 2024-08-23 21:50:46 +02:00
Aaron van Geffen
4cfc1737f8 Fix entrance/exit not being removable (#22612) 2024-08-23 09:36:16 +02:00
Matt
590ab65b2a Cleanup MemoryStream code (#22593)
* Deduplicate code, use std::bit_ceil to compute new capacity

* Remove unused constructor overload

* Remove more unused functions

* Fix memory leak using assignment operator with move

* Make access explicit via constness, do not allow arbitrary access

* Move the template specialized Write/Read to private section

* Simplify a lot of code by using the right types

* Fix copy constructor

* Directly copy the member in copy constructor

* Fix little mistake

* Pluck a memory leak on Android, fix the build

* Update changelog.txt
2024-08-22 19:24:00 +02:00
Michael Steenbeek
9105fe0804 Merge pull request #22595 from ZehMatt/sawyer-junk-2
Improve performance for SawyerChunkReader once again
2024-08-21 23:08:23 +02:00
Gymnasiast
d54d95f4b0 Add assertion against invalid directions in RotateMetalSupportGraphic() 2024-08-21 14:59:17 +02:00
Gymnasiast
c79eed65da Add space after “using namespace” 2024-08-21 14:59:17 +02:00
Gymnasiast
7d24e2ee39 Make MetalSupportGraphic internal to MetalSupports.cpp 2024-08-21 14:59:17 +02:00
Gymnasiast
64dea4cd5d Replace usages of MetalSupportGraphic with MetalSupportType 2024-08-21 14:59:17 +02:00
Gymnasiast
dc3c22b820 Introduce deduplicated MetalSupportType 2024-08-21 14:20:03 +02:00
Gymnasiast
87e91e388b Rename MetalSupportType to MetalSupportGraphic 2024-08-21 14:20:03 +02:00
Aaron van Geffen
23ea4613e6 Fix virtual floor no longer appearing during track construction (#22602) 2024-08-20 20:09:53 +00:00
Tulio Leao
771ba4e29f Move thing into OpenRCT2 namespace 2024-08-19 19:52:14 -03:00
Tulio Leao
96cb2ae398 Add picosha2 for when DISABLE_NETWORK is on 2024-08-19 19:52:14 -03:00
Tulio Leao
18c55ba241 Replace cout debug by LOG_INFO 2024-08-19 19:52:14 -03:00
Tulio Leao
b531cfa38e Do not try patch if scenarioPath is empty 2024-08-19 19:52:14 -03:00
Tulio Leao
1ebaac86be Add tests to iterate on all .parkpatch files 2024-08-19 19:52:14 -03:00
Tulio Leao
046ded718c Add .parkpatch files for .sea scenarios 2024-08-19 19:52:14 -03:00
Tulio Leao
f50c8cce4b Rename json files to .parkpatch using scenario hash 2024-08-19 19:52:14 -03:00
Tulio Leao
8c56982613 Unify function to get string from hex 2024-08-19 19:52:14 -03:00
Tulio Leao
7024ac2f6c Extract common method to fetch coordinates 2024-08-19 19:52:14 -03:00
Tulio Leao
337fbf88ed Remove manual CoordsXY conversion on FixLandOwnershipTilesWithOwnership 2024-08-19 19:52:14 -03:00
Tulio Leao
fe69dbb2ea Use vector over initializer_list on FixLandOwnershipTilesWithOwnership 2024-08-19 19:52:14 -03:00
Tulio Leao
194a63c7dc Remove unused FixLandOwnershipTiles 2024-08-19 19:52:14 -03:00
Tulio Leao
5ce61bfb95 Move merry-go-round fix to patch 2024-08-19 19:52:14 -03:00