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
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
Tulio Leao
9df2349c12
Add ApplyRideFixes to ScenarioPatcher
2024-08-19 19:52:14 -03:00
Tulio Leao
1e7ec8abd5
Remove unused variable on ApplyLandOwnershipFixes
2024-08-19 19:52:14 -03:00
Tulio Leao
d39408a9d9
Add TODO on s4importer code
2024-08-19 19:52:14 -03:00
Tulio Leao
8297e7182b
Move JSON keys to std::string for cross-platform support
...
constexpr u8string_view did not compile on unix
2024-08-19 19:52:14 -03:00
Tulio Leao
43adebe815
Move Ayers Rock patch to json
2024-08-19 19:52:14 -03:00
Tulio Leao
acdeb89974
Add TrackTypeFixes to ScenarioPatcher
2024-08-19 19:52:14 -03:00
Tulio Leao
2ac35756b2
Convert S6 scenarios water fixes to patches
2024-08-19 19:52:14 -03:00
Tulio Leao
c43a84e255
Add FixWater capability to ScenarioPatcher
2024-08-19 19:52:13 -03:00
Tulio Leao
cfc89c8d6c
Add investigation TODO to s4 and s6 importers
2024-08-19 19:52:13 -03:00
Tulio Leao
8784b85cbc
Convert S4 scenarios to JSON patches
2024-08-19 19:52:13 -03:00
Tulio Leao
6fc08be454
Convert S6 scenarios to JSON patches
2024-08-19 19:52:13 -03:00
Tulio Leao
e7ee0ba63a
Implement ScenarioPatcher with FixLandOwnership capabilities
2024-08-19 19:52:13 -03:00
Aaron van Geffen
6278732f12
Merge pull request #22592 from AaronVanGeffen/cheats-window
...
Reorganise cheats window
2024-08-19 23:33:34 +02:00
ζeh Matt
7c1d3c42b3
Remove windows.h include and win32 specific defines, not needed
2024-08-20 00:27:00 +03:00
ζeh Matt
2c0bfd01ac
Refactor SawyerChunkReader to use MemoryStream, better performance
2024-08-20 00:26:03 +03:00
ζeh Matt
5b177db551
Remove the decode functions from SawyerChunkReader.h, re-order in cpp
2024-08-19 23:50:21 +03:00
Aaron van Geffen
1bfd3febe6
Rework guest cheats tab layout and strings
2024-08-19 22:20:40 +02:00
Aaron van Geffen
3138730d33
Move 'Allow building while paused' cheat to park cheats
2024-08-19 21:22:53 +02:00
Aaron van Geffen
4e0d00f71b
Reorganise park cheats to account for moved widgets
2024-08-19 20:50:28 +02:00