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

1984 Commits

Author SHA1 Message Date
Aaron van Geffen
403495cacf Rename internal map generator functions 2024-09-10 11:21:09 +02:00
Aaron van Geffen
b2b2f75f14 Speed-up wide path recalculation (#22830)
Only consider coords within map bounds when calculating wide paths
2024-09-29 13:11:43 +00:00
Aaron van Geffen
ae299c09a8 Merge pull request #22694 from mrmbernardi/park-graphs-upgrade
Park graphs upgrade
2024-09-26 23:18:59 +02:00
Aaron van Geffen
978f38fdd5 Fix calculating wide path status (#22827)
* Fix calculating wide path status

* Increment kNetworkStreamVersion

* Add comment regarding excluded tile ratio

* Add changelog entry
2024-09-26 21:15:21 +00:00
Michael Bernardi
ab558c931a Increase park rating history size from 8 bits to 16 bits 2024-09-27 04:32:33 +10:00
Harry Hopkinson
92e74e55b4 Refactor Park.h constants to kCamelCase 2024-09-24 20:41:41 +00:00
Aaron van Geffen
b70aaea31e Rename ActionSpriteImageOffset to AnimationImageIdOffset 2024-09-22 16:13:49 +02:00
Aaron van Geffen
24b36915ef Rename ActionFrame to AnimationFrameNum 2024-09-22 16:12:04 +02:00
Aaron van Geffen
2edf8b472a Rename (Next)ActionSpriteType to (Next)AnimationType 2024-09-22 16:08:58 +02:00
Gymnasiast
5f92d1920b Group all sequence-bound properties 2024-09-18 22:43:55 +02:00
Aaron van Geffen
e70ca5c889 Allow staff to use ‘real’ names as well (#22732) 2024-09-15 20:18:00 +00:00
Tulio Leao
2b36d59bf9 Fix #22654: Port element removal fixes from #19740 into parkpatch (#22761) 2024-09-15 08:26:05 -03:00
Harry Hopkinson
89637013e8 Fix #21507: Expose suggestedGuestMaximum via hook (#21521) 2024-09-11 21:17:26 -03:00
Aaron van Geffen
cf516db6dc Split StringTypes.h off from String.hpp; adjust header includes 2024-09-10 23:55:53 +02:00
Aaron van Geffen
1b7bbee608 Move CodepointView class to its own header 2024-09-10 23:36:59 +02:00
Tulio Leao
d73c14e585 Part of #22596: Remove "cannot_downgrade" support for .parkpatch 2024-09-08 06:52:03 -03: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
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
Harry Hopkinson
c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02: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
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
Aaron van Geffen
5f37ba6615 Rename footpath height related constants 2024-08-16 21:18:33 +00:00
Michael Steenbeek
47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Harry Hopkinson
4744c7416d Refactor object and network constants to kCamelCase 2024-08-11 20:21:24 +00:00
Aaron van Geffen
d5485878f7 Remove unnecessary includes from TileInspector.cpp (#22535) 2024-08-11 11:00:46 +00:00
mrmbernardi
0e1ba1cacd Merge pull request #22414 from mrmbernardi/fix-graphs
Improve financial and park history graphs
2024-08-06 01:10:05 +10:00
Aaron van Geffen
03bc1e5707 Introduce isToolActive function as alternative for globals (#22430)
* Introduce isToolActive function
* Ride window: use isToolActive instead of gCurrentToolWidget
* Footpath window: use isToolActive instead of gCurrentToolWidget
* Staff window: use isToolActive instead of gCurrentToolWidget
* MazeConstruction window: use isToolActive instead of gCurrentToolWidget
* Guest window: use isToolActive instead of gCurrentToolWidget
* Map window: use isToolActive instead of gCurrentToolWidget
* LandRights window: use isToolActive instead of gCurrentToolWidget
* Replace SceneryToolIsActive legacy function with calls to isToolActive
* ClearScenery window: use isToolActive instead of gCurrentToolWidget
* Scenery window: use isToolActive instead of gCurrentToolWidget
* Water window: use isToolActive instead of gCurrentToolWidget
* Land window: use isToolActive instead of gCurrentToolWidget
* Widget: replace WidgetIsActiveTool with isToolActive
* RideConstruction window: use isToolActive instead of gCurrentToolWidget
* Ride: use isToolActive instead of gCurrentToolWidget
* TrackDesignPlace window: use isToolActive instead of gCurrentToolWidget
* StaffList window: use isToolActive instead of gCurrentToolWidget
* ViewClipping window: use isToolActive instead of gCurrentToolWidget
* PatrolArea window: use isToolActive instead of gCurrentToolWidget
* TileInspector window: use isToolActive instead of gCurrentToolWidget
* Park window: use isToolActive instead of gCurrentToolWidget
2024-08-05 10:47:36 +02:00
Michael Bernardi
f4a1d22662 Draw park graphs with new method.
Also clean up constants and includes.
2024-08-05 15:37:21 +10:00
Michael Steenbeek
e813532efb Close #15750: Multiple park entrance types in one park (#21909)
* Add new park entrance placement window

* Start entrance tool as soon as window opens;

* Rename constants to conform to current code standards

* Increment PARK_FILE_CURRENT_VERSION

* Increment kNetworkStreamVersion

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-08-04 23:02:16 +00:00
Gymnasiast
9294a58e98 Change TrackDescriptor field names to lowerCamelCase 2024-08-03 12:51:25 +02:00
Duncan
a07b56a655 Move Viewport functions into Ui (#22454)
* Move viewport functions into ui

* Move footpath function to ui

* Don't include viewport in footpath.h

* Include missing includes
2024-08-02 06:01:31 +01:00
Aaron van Geffen
15d87a6aae Move many terraform related globals into their window classes 2024-07-31 21:54:09 +02:00
Aaron van Geffen
d1ca17adef Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp 2024-07-31 20:12:23 +02:00
Aaron van Geffen
b0b048f3d5 Remove SceneryInit by using Intent directly instead 2024-07-31 20:12:23 +02:00
Aaron van Geffen
51816d2bd5 Disambiguate calls to UtilBitScanForward (#22402) 2024-07-28 18:44:59 +02:00
mrmbernardi
9ed5c63857 Rename Location.hpp constants (#22385) 2024-07-26 10:23:25 +02:00
Aaron van Geffen
05e56517ab Adopt existing namespaces into OpenRCT2 namespace (#22368)
* Put all of TitleSequenceManager into the same namespace

* Move RideConstructionState into the OpenRCT2 namespace

* Adopt existing namespaces into OpenRCT2 namespace

This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
896eb4f488 Consolidate FormatStringIDLegacy, FormatStringToUpper into Formatting 2024-07-13 14:09:58 +02:00
Aaron van Geffen
3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen
3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen
3b42bbb2f3 Include cstdint and cstddef as needed at unit level 2024-07-09 16:49:47 +02:00
Aaron van Geffen
b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Aaron van Geffen
8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00