Commit Graph
21310 Commits
Author SHA1 Message Date
mrmbernardi ddfb644c61 Fix typo in finance graph max size (#23437)
* Fix typo in finance graph max size

* Remove dead code
2024-12-20 04:17:29 +11:00
Aaron van Geffen 2a3a72396b Remove ImageId::FromUInt32 and ToUInt32 (#23415)
* Allow high image ids when rendering an inline sprite

* CustomWindow: refactor use of ImageId::FromUInt32

* Dropdown: refactor use of ImageId::FromUInt32, ToUInt32

* Remove ImageId::FromUInt32

* Fix typo in mechanic status string ids

* Rewrite InventoryFormatItem to not use inline sprites any more

* Widget: replace ImageId::ToUInt32 with ImageId::GetIndex

* Remove ImageId::ToUInt32
2024-12-17 21:26:11 +01:00
Aaron van Geffen 91cf22aede Reset all peep sprite bounds at save file import time 2024-12-17 21:06:11 +01:00
Aaron van Geffen e18abdd6a4 Compensate inferred sprite bounds for balloon/hat/umbrella sprites 2024-12-17 21:06:11 +01:00
Aaron van Geffen ec14a6dca8 Move invalidation out of Peep::UpdateSpriteBoundingBox 2024-12-17 21:05:38 +01:00
Matt 92dac978dc Merge pull request #23322 from ZehMatt/drawing-refactor
Refactor some code around the color palette
2024-12-17 20:29:13 +02:00
InvokeStatic (Brendan Heinonen) a3691982b3 Fix #23348: console command bugfixes and refactor (#23369)
This commit fixes the graphics bug #23348 by introducing an asynchronous

command completion signalling system in InteractiveConsole. This causes the
console to stop accepting new inputs while a command is being executed.

The console command system was also refactored to reduce code duplication and
remove return codes, which were unused and also poor error handling.
2024-12-16 16:59:47 +11:00
Aaron van Geffen 6ee798337a Introduce EnumUtils header (#23407) 2024-12-15 17:39:52 +01:00
Aaron van Geffen 7274c67c6c Load/save window: show folder icon next to folders (#23404) 2024-12-14 16:14:22 +01:00
ζeh Matt 5765bf3281 Wrap asserts with _DEBUG as the variables don't exist for debug builds 2024-12-14 16:24:40 +02:00
ζeh Matt d352c31991 Refactor PaletteMap, this is just a view of data 2024-12-14 16:21:59 +02:00
ζeh Matt c23071f67f Use GamePalette instead of raw byte array 2024-12-14 16:21:59 +02:00
ζeh Matt 6cb6e0a621 Remove wrong forward declaration 2024-12-14 16:21:59 +02:00
ζeh Matt 0e1517be4f Move GamePalette into ColourPalette.h, use namespace for it also 2024-12-14 16:21:54 +02:00
mrmbernardi 1e25472ec6 Merge pull request #23350 from mrmbernardi/resize-ride-graph
Increase the maximum width of the ride graph window
2024-12-12 20:17:19 +11:00
Aaron van Geffen c034d2c921 Introduce PeepAnimation compilation unit (#23383)
* Move StaffType enum into Staff.h

* Introduce PeepAnimation compilation unit
2024-12-12 00:23:42 +01:00
Aaron van Geffen 8656474e10 Merge pull request #23384 from AaronVanGeffen/move-utils
Move StrLogicalCmp, SafeStrCpy, SafeStrCat, StrCatFTime
2024-12-12 00:08:57 +01:00
Aaron van Geffen 35e117aca2 Rename String methods to use lowerCamelCase 2024-12-11 22:49:37 +01:00
Aaron van Geffen a24dc2e60a Reduce includes in and of Util.h/cpp 2024-12-11 20:42:43 +01:00
Aaron van Geffen 5442b20a7a Move StrLogicalCmp, SafeStrCpy, SafeStrCat to String.hpp 2024-12-11 20:42:43 +01:00
ζeh Matt 45bc5b2e03 Remove deque header 2024-12-11 21:39:01 +02:00
ζeh Matt cc4b0770c1 Remove pointless comment, style changes 2024-12-11 21:37:10 +02:00
ζeh Matt bc8e8f0360 Reduce heap allocations with small_vector 2024-12-11 21:27:08 +02:00
ζeh Matt a16b493ae4 Optimize how packets are queued and transferred 2024-12-11 21:18:36 +02:00
Aaron van Geffen ed6611219d Move StrCatFTime into Chat.cpp, its only user 2024-12-11 16:49:06 +01:00
Aaron van Geffen 4f32028e01 Move RideManager struct into its own compilation unit (#23379)
* Move RideManager struct into its own compilation unit

* Move RidesEndOfUsedRange into GameState_t

* Let RideManager keep a GameState_t& internally
2024-12-11 15:54:45 +01:00
mrmbernardi fb6c76d6c8 Add null check (#23377) 2024-12-11 06:13:09 +01:00
Michał Janiszewski 605947c02d Merge pull request #23370 from janisozaur/docker-build-18
Update docker building images to version 18 and build Android armv7-eabi
2024-12-10 23:26:18 +01:00
Matt a064431c57 Remove reserve call on std::string which prevents SSO (#23360)
As the title suggests, most compilers have small string optimization which means up to a certain length there will be no allocation, that varies between compilers/STL implementation, by calling reserve we take that chance away in all cases

The problem is not the call to reserve but the fact that we don't know the string size beforehand.
2024-12-10 12:51:04 +01:00
Michał Janiszewski be51a52d95 Update gradle wrapper 2024-12-09 23:45:00 +01:00
Michał Janiszewski 1c87793cc0 Import SDL2 2.30.9 2024-12-09 23:45:00 +01:00
Michał Janiszewski 990614bc1f Compile with NDK r27c 2024-12-09 23:45:00 +01:00
Michał Janiszewski d546b10884 Update gradle plugin to 8.7.3 2024-12-09 23:45:00 +01:00
Michał Janiszewski a69a0fce3d Use android libraries v12 2024-12-09 23:45:00 +01:00
Michał Janiszewski a9d130dac6 Build android armv7 2024-12-09 23:45:00 +01:00
Michał Janiszewski 6a04aaf2fa Update code formatting for clang-format 19 2024-12-09 23:25:40 +01:00
Aaron van Geffen 84e8b35bdc Refactor Editor::CheckObjectSelection (#23339)
* Refactor Editor::CheckObjectSelection

* Correct comment in FilterCompatibilityObject
2024-12-09 19:44:15 +01:00
Michael Bernardi e7ca356633 Replace big window size limits with int16_t max. 2024-12-10 02:09:05 +11:00
Michael Bernardi ab2d2a5180 Increased the maximum width of the ride graph window 2024-12-10 02:00:36 +11:00
Michael Bernardi 1b4e611e2e Window function parameters match underlying type 2024-12-10 01:59:50 +11:00
mrmbernardi 9c0cc28d7f Fix currency formatting in the in game console (#23349) 2024-12-09 18:22:17 +11:00
AuraSpecs c5f79dcef7 Add Diagonal Brakes to LSM Launched Roller Coaster 2024-12-08 20:27:45 +00:00
Michał Janiszewski 60dc190e1b Release v0.4.17
- Feature: [#23166] Add Galician translation.
- Feature: [#23227] Add Classic Wooden Twister roller coaster, for better compatibility with RCT1.
- Improved: [#23051] Add large sloped turns and new inversions to the Twister, Vertical Drop, Hyper and Flying Roller Coasters.
- Improved: [#23123] Improve sorting of roller coasters in build new ride menu.
- Improved: [#23211] Add boosters to classic wooden roller coaster (cheats only).
- Improved: [#23229] Add debug option for making the sprite sorting algorithm stable.
- Improved: [#23233] Add diagonal booster to LSM Launched Coaster.
- Improved: [#23277] Add small, medium and large turns, diagonal track and S-bends to the Boat Hire.
- Fix: [#20070, #22972] Missing and mismatched flat and sloped footpaths on several scenarios.
- Fix: [#22726] ‘Force park rating’ cheat is not saved with the park.
- Fix: [#23064] Stand-Up Roller Coaster unbanked to banked track pieces are misaligned.
- Fix: [#23066] Stand-Up Roller Coaster has many supports that don't join up to the track.
- Fix: [#23206] Multiplayer desyncs when FPS is uncapped.
- Fix: [#23238] Updating a guest’s favourite ride works differently from vanilla RCT2.
- Fix: [objects#355] Fix colour preset settings of the Stand-Up Roller Coaster trains.
- Fix: [objects#355] Fix colour preset settings of many vehicles from Wacky Worlds and Time Twister.
2024-12-08 17:50:02 +01:00
mix 46eb48fb98 Fix Boat Hire visual glitches whilst building 2024-12-08 14:21:04 +01:00
mix 2fd52c82bc Add small medium and large turns, diagonals and s-bends to Boat Hire 2024-12-08 14:21:04 +01:00
Matt 7154e85c0a Add stable paint sort (as a debug option) 2024-12-07 13:08:00 +01:00
Aaron van Geffen 03829f9cea Fill in the blanks in RCT1::PeepAnimationGroup enum (#23298) 2024-12-07 12:21:50 +01:00
Arek Durlik 4e9765d871 Fix wrong label in tree to land ratio text input (#23336) 2024-12-06 19:52:59 +01:00
Aaron van Geffenandarekdurlik c15f6a975f Fix swapped labels in heightmap smoothing text input (#23334)
Co-authored-by: arekdurlik <72689308+arekdurlik@users.noreply.github.com>
2024-12-06 10:40:28 +00:00
mrmbernardi c2b3f6c54c Avoid pointer arithmetic with null pointer (#23332) 2024-12-06 11:34:20 +01:00