1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00
Commit Graph

27424 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
Nick Depinet
110140b13f fix g2.dat path on win arm64 build (#23427) 2024-12-19 12:03:58 +01: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
cbe896365b Reset all peep sprite bounds at save file import time (#23425)
* Move invalidation out of Peep::UpdateSpriteBoundingBox

* Compensate inferred sprite bounds for balloon/hat/umbrella sprites

* Reset all peep sprite bounds at save file import time
2024-12-17 21:18:28 +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
OpenRCT2 git bot
8d645c6316 Merge Localisation/master into OpenRCT2/develop 2024-12-13 04:02:20 +00: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
Michał Janiszewski
45d57a1db1 Merge pull request #23385 from ZehMatt/network-optimization
Network optimization
2024-12-12 00:02:58 +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
OpenRCT2 git bot
e201ccfef8 Merge Localisation/master into OpenRCT2/develop 2024-12-10 04:02:19 +00: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
Michał Janiszewski
78984e8efe Fix clang-format path for new binary 2024-12-09 23:20:03 +01:00
Michał Janiszewski
659de0e40a Update docker building images to version 18
Version 18 brings Android updates, clang-format 19, libzip updates in
mingw
2024-12-09 23:17:10 +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
OpenRCT2 git bot
29a11f652c Merge Localisation/master into OpenRCT2/develop 2024-12-09 04:02:15 +00:00
AuraSpecs
c5f79dcef7 Add Diagonal Brakes to LSM Launched Roller Coaster 2024-12-08 20:27:45 +00:00