1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00
Commit Graph

20909 Commits

Author SHA1 Message Date
Michael Steenbeek
4fd07d3216 Fix #2614: Junior Roller Coaster - Invisible First Vehicle 2024-09-07 21:23:58 +02:00
tmatale
14d0689b4f Fix #21959: No save prompt when starting a new game 2024-09-07 10:34:30 +00:00
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
Aaron van Geffen
8f2b1a772c Allow using construction modifier keys for track design placement (#22669)
* Allow using construction modifier keys for track design placement

* Reduce nesting in OnToolDown

* Allow ctrl-matching against more interaction types

* Amend changelog
2024-09-04 22:26:43 +02:00
Michael Steenbeek
e81b0def6e Create TrackPaintUtilDrawStationTunnel() 2024-09-04 19:34:47 +00:00
Aaron van Geffen
b971d1596e Indent window widget definitions (#22700)
* Indent definitions in About, AssetPacks windows

* Indent definitions in Banner, Changelog, CustomCurrency windows

* Indent DebugPaint, DemolishRidePrompt windows

* Indent EditorBottomToolbar, EditorInventionsList

* Indent EditorObjectiveOptions, EditorScenarioOptions

* Indent Finances

* Indent Footpath

* Indent GameBottomToolbar

* Indent Guest window

* Indent GuestList, InstallTrack windows

* Indent Land, LandRights windows

* Indent LoadSave, Main, MapGen, MapTooltip windows

* Indent MazeConstruction

* Indent Multiplayer

* Indent NetworkStatus

* Indent NewCampaign

* Indent NewRide window

* Indent News window

* Indent NewsOptions window

* Indent ObjectLoadError window

* Indent Options window

* Indent Park window

* Indent PatrolArea window

* Indent Player window

* Indent RefurbishRidePrompt window

* Indent Research window

* Indent Ride window

* Indent RideConstruction

* Indent RideList

* Indent SavePrompt

* Indent ScenarioSelect widgets

* Indent scenario window

* Indent scenery scatter window defs

* Indent server list window

* Indent server start window§

* Indent ShortcutKeys window

* Indent Sign window

* Indent Staff window

* Indent StaffFirePrompt window

* Indent StaffList window defs

* Indent Themes window defs

* Indent TileInspector window defs

* Indent TitleExit, TitleMenu, TitleOptions, Tooltip windows

* Indent TrackDesignManage window defs

* Indent TrackDesignPlace defs

* Indent TrackList def

* Indent Transparency window defs

* Indent ViewClipping window defs

* Indent Viewport window defs

* Indent Water window defs
2024-09-04 21:11:26 +02:00
Harry Hopkinson
003c196eb8 Cleanup gameState usage (#22692) 2024-09-04 07:34:37 +02: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
Aaron van Geffen
c9874c950d Fix FPS tanking on mouse move in load/save window (#22677) 2024-09-01 19:30:22 +00: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
Tulio Leao
4d2efa0edc Fix #22672: Loud sound effects on title screen 2024-09-01 07:04:51 -03:00
Michał Janiszewski
1adaaff6d5 Update backtrace token for upcoming release 2024-09-01 10:18:58 +02:00
Michael Steenbeek
7311fa82b4 Merge pull request #22667 from AaronVanGeffen/landrights-switching
Adjust land rights window mode when toggling sandbox mode
2024-09-01 00:19:53 +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
be1153b28a Improve consistency of toggling transparency options 2024-08-31 17:51:38 -03:00
Tulio Leao
06302f7f06 Revert 9e1b24d 2024-08-31 17:48:35 -03:00
Aaron van Geffen
032874c80d Don't apply viewport flags on title scene (#22670) 2024-08-31 17:16:37 -03:00
Aaron van Geffen
89d050c4b8 Adjust window mode when switching from/to sandbox mode 2024-08-31 19:28:44 +02:00
Aaron van Geffen
dca97f747c Refactor out IsOwnershipMode method 2024-08-31 19:20:01 +02:00
Tulio Leao
c54e25c1d4 Fix #21123: Transparency options are not respected on startup (#22659) 2024-08-31 15:05:31 +00: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
Aaron van Geffen
fe628aff0d Add ctrl/shift modifiers to footpath tool (#22569)
* Add prototype for ctrl/shift modifier keys in footpath tool

* Only allow paths at half heights when 'invalid heights' cheats are active

* Infer heights similarly to scenery tool when ModifierKey::ctrl is active
2024-08-22 21:15:20 +01: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
Michael Steenbeek
8d88d72bf8 Merge pull request #22591 from Gymnasiast/refactor/metal-supports
Deduplicate metal supports
2024-08-21 23:06:50 +02:00
Aaron van Geffen
31527edbea Use named flags in RideGetPlacePositionFromScreenPosition (#22607) 2024-08-21 22:25:44 +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