1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00
Commit Graph

22707 Commits

Author SHA1 Message Date
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
2f0af0a005 Expose getCostumeStrings to scripts 2024-12-11 19:06:47 +01:00
Aaron van Geffen
11f683101c Move getAvailableCostumeStrings to PeepAnimations 2024-12-11 19:06:23 +01:00
Aaron van Geffen
ed6611219d Move StrCatFTime into Chat.cpp, its only user 2024-12-11 16:49:06 +01:00
Aaron van Geffen
752f15a363 Force use of all costumes if noRandomPlacement results in no costumes 2024-12-11 16:09:59 +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
Aaron van Geffen
4f1a7c72aa Rework reading peep anim object properties 2024-12-10 23:39:58 +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
Aaron van Geffen
d768811c5c Refactor PeepAnimationsObject::ReadAnimations into its own method 2024-12-10 23:21:52 +01:00
Aaron van Geffen
3c87ae6a92 Guest window: make pickup animation lengths dynamic 2024-12-10 22:52:05 +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
f3a0593591 Staff window: make tab animation lengths dynamic 2024-12-09 22:43:45 +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
Aaron van Geffen
44a9f530f7 Separate RCT12PeepAnimationGroup further from PeepAnimationGroup 2024-12-09 19:43:05 +01:00
Aaron van Geffen
f2779fb7fb Let other animation groups copy missing animations from primary group 2024-12-09 17:42:41 +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
Aaron van Geffen
dbc394cb67 Scripting: list and use available costumes dynamically 2024-12-08 12:34:13 +01:00