Commit Graph

26047 Commits

Author SHA1 Message Date
OpenRCT2 git bot 988162e125 Merge Localisation/master into OpenRCT2/develop 2024-03-11 04:02:00 +00:00
Gymnasiast 7ae98f7421
Use EnumsToFlags() and create a proper enum 2024-03-11 01:12:35 +01:00
Gymnasiast 632f29e6a9
Name segment constants 2024-03-11 00:22:35 +01:00
Matt 6950a74b37
Fix #21565: Giant screenshots not working correctly 2024-03-10 21:24:40 +01:00
Michael Steenbeek 1981ca6b0b
Close #16582: Translate in-game console help text 2024-03-10 19:46:21 +01:00
Harry Hopkinson e486606189
Move gPeepSpawns to GameState_t (#21570) 2024-03-10 15:16:28 -03:00
Duncan 1d3bd31ab8
Deduplicate FormatStringID symbols 2024-03-10 18:15:49 +00:00
Michael Steenbeek b219ab1ed4
Use LanguageGetString() if there is nothing to format 2024-03-10 18:48:23 +01:00
Michael Steenbeek 24f5675cab
Remove WindowBase::IsLegacy() function (#21572) 2024-03-10 18:48:06 +01:00
Ryan Gudonis 65fa51976b
Classify some LL scenarios as expert
Adjust difficulty categories for Loopy Landscape scenarios:
- Southern Sands
- Tiny Towers
- Nevermore Park
- Pacifica
2024-03-10 15:06:43 +00:00
Harry Hopkinson 78d95fc0bd
Pass DrawPixelInfo by reference (#21563) 2024-03-10 12:00:08 -03:00
Michael Steenbeek 9ebe65b55a
Fix building sloped banked 3×3 turns when coaster also has 1×1 turns
This fixes a bug that would prevent the user from building 3×3 banked sloped turns, if the roller coaster also had 1×1 flat turns enabled.
The Spinning Roller Coaster that @RealSteel89 is working on is the first one to do so, revealing this bug.
2024-03-10 14:35:18 +00:00
Duncan 7a60e7f2e0
OpenRCT2::Ui::Windows namespace for OpenRCT2 Ui Windows (#21559)
* Move all the windows into OpenRCT2::Ui::Windows namespace

* Fix missing symbol

* Clang format

* Call the correct FormatStringID
2024-03-10 13:52:35 +00:00
Michał Janiszewski 7634dfb6a3
Android: Enable plugins (#21561) 2024-03-09 20:03:36 +01:00
Duncan 3146d463bd
Move Ui header items to OpenRCT2::Ui (#21546)
* Move ui definitions to ui project

* Enforce coding style

* Apply clang format

* Add clang tidy ignore

* Increase compiler happiness
2024-03-09 14:15:45 +00:00
Harry Hopkinson 0c1fb5fec0
Fix #21543: Game Crashing with invalid TrackIterator (#21547)
* Check if el is nullptr

Check if el is nullptr

Format

* Add changelog
2024-03-09 14:15:28 +00:00
Harry Hopkinson 048276b67a
Move gLastEntranceStyle to GameState_t 2024-03-09 11:27:05 +01:00
OpenRCT2 git bot d0592e0887 Merge Localisation/master into OpenRCT2/develop 2024-03-08 04:01:38 +00:00
Duncan cb100db56e
Put a number of OpenRCT2::Ui items in the OpenRCT2::Ui namespace 2024-03-07 23:36:49 +01:00
Michael Steenbeek dec5140f20
Merge pull request #21532 from jan-kelemen/move_ride_rating_and_same_price_to_game_state
Move gSamePriceThroughoutPark and gRideRatingUpdateStates to GameState_t
2024-03-07 21:59:58 +01:00
Matt 1e8ae8ea11
Merge pull request #21542 from Harry-Hopkinson/gLandPrice-to-GameState
Move gLandPrice to GameState_t
2024-03-07 22:54:36 +02:00
Matt a2fdd600cf
Merge pull request #21424 from ZehMatt/viewport-update
Store the rotation in viewports
2024-03-07 22:42:00 +02:00
Tulio Leao 7190e7ae26
Merge pull request #21526 from Harry-Hopkinson/replace-static_cast<int32_t>-with-EnumValue 2024-03-07 17:36:00 -03:00
ζeh Matt 64bc52c5f6
Update changelog.txt 2024-03-07 21:57:37 +02:00
Harry Hopkinson 81814bd81e Move gLandPrice to GameState_t 2024-03-07 18:44:21 +00:00
ζeh Matt 2814662ea8
Remove unnecessary reset of entities spatial index, coordinates are 3D 2024-03-07 01:05:47 +02:00
ζeh Matt d3b8ad471e
Turn the error into a verbose message when there is no viewport 2024-03-07 00:54:09 +02:00
Piotr Kubaj 96be441533
Don't include alloca.h on FreeBSD (#21535)
alloca.h does not exist on FreeBSD.
2024-03-06 19:02:27 +01:00
Stephan Spengler 01248c26a4
Improve API documentation: use Direction type in FootpathElement
Change type of slopeDirection and queueBannerDirection of footpaths to Direction in openrct2.d.ts
2024-03-06 18:22:50 +01:00
Jan Kelemen 56df47a48d Move gRideRatingUpdateStates to GameState_t
- Move gRideRatingUpdateStates variable to GameState_t
- Remove RideRatingGetUpdateStates function
2024-03-06 17:54:40 +01:00
Jan Kelemen ee4e8d0323 Move gSamePriceThroughoutPark to GameState_t 2024-03-06 17:54:31 +01:00
Harry Hopkinson 9ab18e37a2 Cleanup static_cast's
Cleanup static_cast's

Cleanup static_casts'

Cleanup static_casts'

Format Code

Address requested changes

Address requested changes

Change uint16_t to size_t

Stop undefined behaviour

Address requested changes.
2024-03-06 10:28:45 +00:00
OpenRCT2 git bot aa6a1b0bdd Merge Localisation/master into OpenRCT2/develop 2024-03-06 04:02:01 +00:00
Harry Hopkinson 86c28693ba
Move gGuestChangeModifier to GameState_t 2024-03-06 00:06:27 +01:00
ζeh Matt a1304ef147
Fix rebase 2024-03-05 10:34:03 +02:00
ζeh Matt ae0af55a99
Make GCC happy due to non-enumerated usage 2024-03-05 10:26:00 +02:00
ζeh Matt 425c4cf04e
Allow viewports to have an independent rotation 2024-03-05 10:25:59 +02:00
ζeh Matt c87b82d75e
Add a rotate button to the extra viewport 2024-03-05 10:25:59 +02:00
ζeh Matt 8bf33a6039
Fix viewport not using the correct rotation in some cases 2024-03-05 10:25:59 +02:00
ζeh Matt f7682f6b13
Apply clang-format 2024-03-05 10:25:59 +02:00
ζeh Matt bdcfa5af8f
Add a function to invalidate viewports pre-transformed position 2024-03-05 10:25:59 +02:00
ζeh Matt 47d346ee81
Remove unused code 2024-03-05 10:25:57 +02:00
ζeh Matt 462bb33234
Refactor viewport rotation to keep it in sync with the primary viewport 2024-03-05 10:23:31 +02:00
ζeh Matt d95f14dcda
Fix ViewportPosToMapPos using the wrong rotation 2024-03-05 10:23:30 +02:00
ζeh Matt a33cc1ac86
Fix ScViewport::moveTo not using the right rotation 2024-03-05 10:23:30 +02:00
ζeh Matt 7be082cacc
Fix ViewportAdjustForMapHeight not using the correct rotation 2024-03-05 10:23:29 +02:00
ζeh Matt 1a7b873256
Fix ViewportInteractionGetClosestPeep not using the right rotation 2024-03-05 10:23:29 +02:00
ζeh Matt 87dd29f3bc
Make GetClosestPeep static 2024-03-05 10:23:29 +02:00
ζeh Matt afe266e2fe
Recalculate the screen position for entities when painting 2024-03-05 10:23:28 +02:00
ζeh Matt 98acdf3743
Use the rotation from the Viewport where applicable 2024-03-05 10:23:28 +02:00