Peter Nelson
fb86fdbc0b
Change: Don't measure group name widths in company livery window.
...
Measuring the name width did not also take account of indentation levels so didn't prevent cropping, and the window can be resized anyway.
This avoids a potential bottleneck due to layouting group names if there are a lot of groups present.
2025-05-21 20:47:35 +01:00
Peter Nelson
9f190aa534
Codechange: Use group's children list to improve performance of group UI.
2025-05-21 19:50:07 +01:00
Peter Nelson
000a79c093
Codechange: Improve performance of evaluating group hierarchy.
...
Store a list of child groups in each group, to avoid having to iterate the group pool to find its children.
2025-05-21 19:50:07 +01:00
SamuXarick
8f3f25de4b
Codefix: Missing 'this->' in VehiclesNearTileXY::Iterator::Iterator ( #14288 )
2025-05-21 20:28:47 +02:00
Peter Nelson
1d8db2223f
Fix #14234 , 5aa4ad5135: Crash due to unexpected NUL char in string. ( #14235 )
...
Gracefully handle an unexpected NUL character in non-debug builds.
2025-05-21 18:47:04 +01:00
translators
82876c25e0
Update: Translations from eints
2025-05-21 04:46:46 +00:00
Peter Nelson
a2addf0fe7
Fix: Clear rail vehicle flipped flag if reverse probability callback returns false. ( #14281 )
...
This now distinguishes between not-flipped and callback not implemented.
2025-05-20 23:03:55 +01:00
Peter Nelson
acf594a7b7
Fix #14271 , 7fd0e6c27d: Crash due to incorrect parameter index in string. ( #14272 )
2025-05-20 23:03:27 +01:00
Loïc Guilloux
4b1b2a4310
Change: [Script] Don't allow scripts to instantiate ScriptEvent ( #14276 )
2025-05-20 15:37:05 +02:00
frosch
2926179d02
Fix: Restore the behaviour when entering numbers in query windows: clamp integers out of range to the maximum valid value.
2025-05-20 12:57:30 +02:00
frosch
c1389c77b2
Codechange: ParseInteger optionally clamps out-of-range values, instead of treating them as invalid.
2025-05-20 12:57:30 +02:00
translators
ecadf1b322
Update: Translations from eints
...
hungarian: 4 changes by meskobalazs
2025-05-20 04:46:13 +00:00
Peter Nelson
ce83f583bc
Codechange: Use EnumBitSet for VehicleRailFlags. ( #14280 )
2025-05-19 18:56:45 +01:00
Peter Nelson
77d6f6c69f
Codechange: Make ContentType::State an enum class. ( #14279 )
2025-05-19 17:11:28 +01:00
SamuXarick
ad3a34e9ef
Add: [Script] ScriptVehicleList_Waypoint ( #13456 )
...
Creates a list of vehicles that have orders to a given waypoint.
2025-05-19 14:48:17 +02:00
Loïc Guilloux
1b0fd0e6fd
Fix b2c57123: [Script] Conversion from ScriptEvent to ScriptEventCompanyTown subclasses ( #14274 )
2025-05-18 15:40:47 +02:00
translators
9bbc525e53
Update: Translations from eints
...
catalan: 17 changes by J0anJosep
2025-05-18 04:50:09 +00:00
Peter Nelson
940a7127f8
Fix f8bdc1e612: Empty first parameter of EncodedString was skipped. ( #14273 )
...
This would place the remaining parameters one position too early.
2025-05-17 22:55:48 +00:00
translators
617169c1c9
Update: Translations from eints
...
norwegian (bokmal): 2 changes by eriksorngard
english (us): 9 changes by 2TallTyler
romanian: 3 changes by The-Bober
dutch: 2 changes by Afoklala
2025-05-17 04:44:32 +00:00
translators
521d0465d9
Update: Translations from eints
...
korean: 2 changes by telk5093
hungarian: 26 changes by meskobalazs
2025-05-16 04:47:27 +00:00
translators
6c84dd1f32
Update: Translations from eints
...
persian: 371 changes by realsepehrz
romanian: 49 changes by The-Bober
portuguese: 2 changes by azulcosta
2025-05-15 04:46:38 +00:00
Peter Nelson
c8a336f760
Codechange: Move GetNthSetBit() to BaseBitSet.
...
This now returns the correct type, or std::nullopt instead of -1.
2025-05-14 07:22:12 +01:00
Peter Nelson
c50ee282f9
Codechange: EnumBitSet bits can be iterated directly.
2025-05-14 07:22:12 +01:00
Peter Nelson
66c16a1d1f
Codechange: Add Count() method to BaseBitSet.
2025-05-14 07:22:12 +01:00
translators
ecc3438519
Update: Translations from eints
...
polish: 2 changes by pAter-exe
2025-05-14 04:46:05 +00:00
Loïc Guilloux
c16d5f3a8d
Change: [Script] ScriptVehicleList_Station accepts an optional VehicleType parameter ( #14260 )
2025-05-13 16:41:23 +02:00
Peter Nelson
87fa1e41d5
Codechange: Use std::byte for sound buffers.
2025-05-13 14:51:17 +01:00
Peter Nelson
5585363407
Codechange: Use std::byte for glyph sprite buffer.
2025-05-13 14:51:17 +01:00
translators
c718858999
Update: Translations from eints
...
english (au): 2 changes by krysclarke
chinese (traditional): 2 changes by KogentaSan
spanish (mexican): 2 changes by absay
chinese (simplified): 11 changes by WenSimEHRP
greek: 2 changes by gh658804
hungarian: 2 changes by vargaviktor
persian: 17 changes by realsepehrz
russian: 2 changes by lexuslatvia
finnish: 4 changes by hpiirai
latvian: 2 changes by lexuslatvia
portuguese (brazilian): 2 changes by pasantoro
2025-05-13 04:47:36 +00:00
Peter Nelson
156f98ba06
Fix #14256 , dfd9fbf873: Company finance windows not updated when paused. ( #14258 )
...
Refresh company finance windows via a WindowTimer instead of in game loop.
As the invalidation affects multiple windows this is a global timer instead of window-specific.
2025-05-13 01:23:27 +01:00
Peter Nelson
bc778545b3
Fix 0829604b4f: Dragging of selected order was still not possible. ( #14259 )
...
Check click_count condition earlier so that drag and drop is activated.
2025-05-13 01:22:58 +01:00
Peter Nelson
431e57d087
Fix 0ce30d05c8: Replacing a dropdown list could reposition it partially off-screen. ( #14261 )
2025-05-13 01:22:45 +01:00
Peter Nelson
d37d4c18b5
Change: Remove Apply button from NewGRF config window when unneeded. ( #14254 )
...
When configuring NewGRFs outside of a game, the changes are always applied when the window is closed, even if the Apply button is not used.
The Apply button only needs appear during a game when changes are not automatically applied.
2025-05-13 01:22:23 +01:00
Jonathan G Rennison
d107b7c8c0
Fix 3cf9b159: Incorrect tile colour in smallmap for snowy MP_CLEAR tiles in vegetation mode
...
See: #13659
2025-05-12 19:04:43 +02:00
Peter Nelson
d9247fa1a0
Change: Remove extra close buttons from some windows. ( #14124 )
...
All windows have an X button to close it, so remove the redundant close buttons.
2025-05-12 14:54:44 +01:00
frosch
a62081d79e
Fix #14251 : Out-of-bounds writes via TextRefStack. ( #14255 )
2025-05-12 13:59:33 +02:00
Peter Nelson
0aacd7acb3
Codechange: Use GrfSpecFeature type instead of uint8_t. ( #14253 )
2025-05-12 08:44:39 +01:00
translators
2516c435b7
Update: Translations from eints
...
swedish: 9 changes by joeax910
2025-05-12 04:47:40 +00:00
Rubidium
568b70e556
Codechange: replace memmove with std::move(_backwards)
2025-05-11 21:51:57 +02:00
Rubidium
3cd040ffe9
Codechange: unify moving of pixels in the blitters
2025-05-11 21:51:57 +02:00
Peter Nelson
b38527ca05
Change: Move OpenTTD version to intro viewport. ( #14233 )
...
This stops the length of the game version from affecting the main menu.
2025-05-11 20:01:22 +01:00
Rubidium
03116ea878
Codechange: remove now unused cpp_sizeof
2025-05-11 13:48:23 +02:00
Rubidium
02d8ae018c
Codechange: simplify getting the value of a NewGRF property
2025-05-11 13:48:23 +02:00
Rubidium
f2b48bad79
Codechange: remove last (hidden) users of memset
2025-05-11 06:07:01 +02:00
frosch
c037722cb5
Fix 51a7edd: NewGRF debug sprite picker was broken. ( #14246 )
2025-05-10 20:27:43 +02:00
Rubidium
a48a5f0cc6
Codechange: replace memcpy with std::copy_n
2025-05-10 16:50:58 +02:00
Loïc Guilloux
a45f23686d
Fix #14241 , 6e10584: Invalid string parameters in subsidies list window ( #14243 )
2025-05-09 18:08:17 +02:00
Rubidium
f8aceb6c37
Codechange: use value initialisation over memset
2025-05-09 17:20:41 +02:00
Rubidium
7981fcb297
Codechange: use std::fill_n over memset
2025-05-09 17:20:41 +02:00
Rubidium
92bd78dd25
Codechange: use std::ranges::fill over memset
2025-05-09 17:20:41 +02:00