1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Commit Graph

25828 Commits

Author SHA1 Message Date
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
ζeh Matt
2661cf8772 Refactor out all uses of gCurrentRotation, remove gCurrentRotation 2024-03-05 10:23:28 +02:00
ζeh Matt
8864f6cf51 Add ViewportGetMain 2024-03-05 10:23:27 +02:00
ζeh Matt
81499643db Rename unused field to Rotation 2024-03-05 10:23:27 +02:00
ζeh Matt
1a197af715 Make ViewportPaint static, refactor TrackDesign to use ViewportRender 2024-03-05 10:23:23 +02:00
OpenRCT2 git bot
33a5ee2160 Merge Localisation/master into OpenRCT2/develop 2024-03-05 04:02:03 +00:00
Harry-Hopkinson
3247d16ed8 Replace size_t's with EnumValue 2024-03-04 19:21:12 +00:00
Harry-Hopkinson
56df39dcb4 Replace uint8's with EnumValue
Replace uint8's with EnumValue

Replace uint8's with EnumValue

Revertl arge change

Revert large change

Format
2024-03-04 19:04:18 +00:00
Harry Hopkinson
ef9840f29b Replace static_cast with EnumValue 2024-03-04 15:37:20 +00:00
Harry Hopkinson
9748038815 Move gExpenditureTable to GameState_t 2024-03-04 15:24:29 +01:00
Duncan
4b6ba80a46 Move cheats to struct in GameState_t 2024-03-03 22:44:15 +01:00
mrmbernardi
4ccecd6e68 Remove forwarding functions in Window.cpp (#21516) 2024-03-03 18:04:09 +01:00
Jan Kelemen
bc149ca95c Move gHistoricalProfit and gGuestsInParkHistory to GameState_t (#21513)
* Move gGuestsInParkHistory to GameState_t

* Move gHistoricalProfit to GameState_t
2024-03-03 16:05:48 +00:00
Matt
85f0919483 Merge pull request #21510 from jan-kelemen/gCashHistory_to_GameState_t
Move gCashHistory to GameState_t
2024-03-03 11:36:31 +02:00
OpenRCT2 git bot
eaa082bf3e Merge Localisation/master into OpenRCT2/develop 2024-03-03 04:01:58 +00:00
mrmbernardi
a0b18688ec Merge pull request #21460 from mrmbernardi/map-layout
Fix #21289: Map window does not layout properly
2024-03-02 22:52:31 +01:00
Michał Janiszewski
e05ae5f051 Start v0.4.10 2024-03-02 22:47:13 +01:00
Michał Janiszewski
5078d3d8ef Merge branch 'master' into develop 2024-03-02 22:46:16 +01:00
Michał Janiszewski
a17240544b Release v0.4.9
- Feature: [#20376] Add Ukrainian language.
- Feature: [#20709] [Plugin] Plugins can now check metadata from all registered plugins.
- Feature: [#21376] Add option to reload an object (for object developers).
- Feature: [#21413, OpenSFX#19] Add log flume lift sound effect (when “chainlift” is enabled).
- Feature: [#21455] Add option to control hidden scenery.
- Feature: [objects#282] Added RCT1 beta terrains.
- Improved: [#20093] Use new colours for guests’ clothing when they spawn.
- Improved: [#21356] Resize the title bar when moving between displays with different scaling factors on Windows systems.
- Improved: [#21388] Tooltips will now show even when an error message is present.
- Improved: [#21423] Add mechanism to allow building partly underground.
- Improved: [objects#272, objects#276, objects#277, objects#278, objects#279, objects#280, objects#281] Add most remaining ports of RCT1 ride and vehicle objects (for import only).
- Improved: [objects#275, objects#284, objects#286] Add remaining RCT1 walls (for import only).
- Change: [#21350] Group Dodgems and Flying Saucers vehicles.
- Change: [#21453] Reintroduce lost RCT1 Jet skis colour presets to the boat hire.
- Change: [objects#285] Mark old reversed train objects as compatibility objects.
- Fix: [#17610] Some scenery items are unavailable in RCT1 scenarios.
- Fix: [#18963] Research table in parks from Loopy Landscapes is imported incorrectly.
- Fix: [#20164] Grass and Rock terrain objects cannot be de-selected.
- Fix: [#20907] RCT1/AA scenarios use the 4-across train for the Inverted Roller Coaster.
- Fix: [#21037] Map animations in the title sequence are stuck.
- Fix: [#21208] Error message will stay open only for a brief moment when the game has been running a while.
- Fix: [#21220] When creating a new park from a SC4 file, the localised park name is not applied.
- Fix: [#21286] Cannot build unbanking turns with RCT1 vehicles.
- Fix: [#21288] Text overlaps in the “About ‘OpenRCT2’” window for Arabic, Chinese, Japanese, Korean and Vietnamese.
- Fix: [#21310] Some half loop elements require more clearance than their upward/downward counterparts.
- Fix: [#21318] Virtual Floor for building scenery is not properly invalidated.
- Fix: [#21330] Tooltips from dropdown widgets have the wrong position.
- Fix: [#21332] Mini Helicopters and Monorail Cycles ride types are swapped in research within RCT1 scenarios.
- Fix: [#21343] “Pause” and “Build Path” hotkeys do not work if top toolbar is hidden.
- Fix: [#21347] Too many options are hidden if the platform has no file picker.
- Fix: [#21350] Maze and Mini Golf track designs from RCT1 not shown in track designs list.
- Fix: [#21425] Additional missing/misplaced land & construction rights tiles in Japanese Coastal Reclaim.
- Fix: [#21484] Upkeep costs for some rides/facilities/shops are not calculated correctly.
- Fix: [#21498] Crash when the size of text can’t be determined.
- Fix: [objects#262, objects#263, objects#265, objects#266, objects#267, objects#268, objects#270, objects#271, objects#283] Various errors in expansion pack objects (original bug).
- Fix: [OpenSFX#18] B&M Roar sound effect not looping correctly.
v0.4.9
2024-03-02 21:26:41 +01:00
Michał Janiszewski
1ba9201d48 Merge branch 'develop' 2024-03-02 21:20:58 +01:00