Commit Graph
21318 Commits
Author SHA1 Message Date
Aaron van Geffen fb91cefe00 Fix guest inventories crashing on particular items (#23469)
* InventoryFormatItem: adjust formatter increments for lack of ImageIds

* OnDrawInventory: adjust itemNameWidth to account for icon offset

* OnDrawInventory: Improve icon/label vertical alignment
2024-12-23 19:45:57 +00:00
X123M3-256 5894b5bf86 Fix #1122: Trains can spawn on cable lift hill 2024-12-23 20:19:04 +01:00
Aaron van Geffen f39eebdc76 Fix #23464: Water sparkles don't work properly (#23467) 2024-12-23 15:38:26 +00:00
mrmbernardi 809bcd1b22 Fix RideRatings.cpp headers (#23466)
Removes unused headers and fixes the ENABLE_SCRIPTING=OFF build
2024-12-23 15:07:48 +00:00
Michael Steenbeek 7baae607ac Use ride_type_t in more places 2024-12-22 19:59:36 +01:00
Michael Steenbeek 96580036ea Enable opaque water and corkscrew boosters on non-RCT1 installs 2024-12-22 16:16:55 +01:00
mrmbernardi fd472b4019 Fix in game console incorrectly handling formatting tokens. (#23434)
* Fix logic error setting in game console colours

* Fix console incorrectly handling formatting tokens
2024-12-21 04:17:04 +11:00
Aaron van Geffen 3eb50bb303 Raise max number of park entrance objects to 255 (#23413)
* Raise max number of park entrance objects to 255

* Implement EditorParkEntrance::OnScrollGetSize

* Allow resizing the entrance selection window

* Amend changelog

* Bump PARK_FILE_CURRENT_VERSION
2024-12-19 20:04:57 +01:00
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