frosch
b9bd7b2cfe
Codechange: Confusion of 'radius' and 'diameter' in variable names and comments.
2025-04-20 12:50:45 +02:00
Peter Nelson
e43e4327a7
Fix: Incorrect string display for autoreplace wagon removal status. ( #14038 )
2025-04-20 10:44:37 +01:00
translators
ee81313254
Update: Translations from eints
...
welsh: 1 change by Ansbaradigeidfran
vietnamese: 2 changes by KhoiCanDev
2025-04-20 04:43:37 +00:00
Peter Nelson
2b92d76e9d
Fix e49150f9ca: House picker crashes if selection is not available. ( #14030 )
...
This occurs because the extra invalidation in OnInit() also happens on construction, and too early.
Solution is to validate all instead of just position when invalidating in OnInit().
2025-04-19 15:04:18 +01:00
translators
d248f45d67
Update: Translations from eints
...
vietnamese: 7 changes by KhoiCanDev
2025-04-19 04:44:03 +00:00
frosch
43ea6c9b88
Codechange: Turn AyStar into an actual class with virtual methods instead of function pointers.
2025-04-19 00:24:15 +02:00
frosch
97ead8e241
Codechange: Remove unused options from AyStar.
2025-04-19 00:24:15 +02:00
frosch
53899c3c21
Codechange: Replace vehicle viewport hash macros with functions.
2025-04-18 23:41:37 +02:00
frosch
cde350dc01
Codechange: Replace macros GENERAL_SPRITE_COLOUR and COMPANY_SPRITE_COLOUR with functions GetColourPalette and GetCompanyPalette.
2025-04-18 23:41:37 +02:00
frosch
c2c5dae760
Codechange: Turn GREY_SCALE macro into constexpr function.
2025-04-18 23:41:37 +02:00
frosch
8f335a84cf
Codechange: Turn GetCustom(Vehicle|Rotor)(Sprite|Icon) macros into functions.
2025-04-18 23:41:37 +02:00
frosch
8f8e997575
Codechange: Replace local macro with lambda.
2025-04-18 23:41:37 +02:00
frosch
68016031cf
Codechange: Turn macros GetCompanyHQSize and IncreaseCompanyHQSize into functions.
2025-04-18 23:41:37 +02:00
frosch
0eb6964311
Codechange: Change ScreenshotCallback into a std::function, so there is no need for void* user data.
2025-04-18 22:43:41 +02:00
frosch
c09e825e0b
Codechange: Change SetDateCallback into a std::function, so there is no need for void* user data.
2025-04-18 22:43:41 +02:00
frosch
0d4588688f
Codechange: Manage script event queue using smart pointers.
2025-04-18 19:47:28 +02:00
frosch
b9f4ef3d78
Codechange: Move ScriptStorage constructor into source file, so private members can have partially incomplete types.
2025-04-18 19:47:28 +02:00
frosch
af14809697
Codechange: Add filename and line number to errors/warnings of the squirrel-exporters. ( #14031 )
2025-04-18 19:43:32 +02:00
frosch
50252cb5df
Codechange: Ini(Load|Save)WindowSettings expect a WindowDesc*, no void*. ( #14029 )
2025-04-18 18:44:58 +02:00
Peter Nelson
394adb654e
Codechange: Move GUI parts of badges to a separate file. ( #14023 )
2025-04-18 17:20:31 +01:00
Peter Nelson
67d6089f39
Change: Don't replace stripped control codes with '?' for scripts. ( #14028 )
2025-04-18 17:20:08 +01:00
frosch
45917dbaa3
Codechange: Remove unused macro strncasecmp.
2025-04-18 17:16:48 +02:00
frosch
84e175ce63
Codechange: Determine array length using 'std::size' instead of using a separate constant.
2025-04-18 17:16:48 +02:00
frosch
7cbf4f5560
Codechange: Expand the single usage of the macro CLRBITS.
2025-04-18 17:16:48 +02:00
frosch
d97936e77a
Codechange: Replace ALIGN macro with C++11 alignas specifier.
2025-04-18 17:16:48 +02:00
frosch
f82e172610
Codechange: Expand and remove DEF_CONSOLE_CMD and DEF_CONSOLE_HOOK macros.
2025-04-18 17:16:48 +02:00
frosch
42deccc4f5
Codechange: Merge (IsOn|Toggle)(Snow|Desert) into (IsOn|Toggle)SnowOrDesert.
2025-04-18 16:33:26 +02:00
frosch
252376ce3e
Codechange: Rename DrawRoadAsSnowDesert to DrawRoadAsSnowOrDesert to be consistent with other functions.
2025-04-18 16:33:26 +02:00
frosch
26db4ccf09
Codechange: Turn bit-stuffed FiosType enum into a struct. ( #14019 )
2025-04-18 15:20:55 +02:00
frosch
b862d4937f
Codechange: Turn custom vehicle spritenums into enum, and use them consistently. ( #14022 )
2025-04-18 15:19:28 +02:00
Peter Nelson
2c59838acb
Codechange: (re)set multiple bitset flags in one call. ( #14017 )
2025-04-18 14:07:57 +01:00
frosch
31e716449d
Codechange: Change StationNameInformation to not use macros. ( #14020 )
2025-04-18 15:06:46 +02:00
frosch
5aed046d11
Fix: [NewGRF] Strange things happened, when using the synchronised tile loop animation trigger for houses. ( #14011 )
2025-04-17 12:15:49 +02:00
translators
421f202539
Update: Translations from eints
...
luxembourgish: 103 changes by phreeze83
latvian: 1 change by lexuslatvia
2025-04-17 04:45:26 +00:00
Peter Nelson
1f83ea41fc
Fix: [NewGRF] PrepareLayout worked on a copy of the data resulting in bad sprite layouts. ( #14013 )
2025-04-16 21:27:36 +00:00
Peter Nelson
378ea52ac6
Codechange: Use EnumBitSet for CzechChooseFlags.
2025-04-16 19:44:28 +01:00
Peter Nelson
ea0817390f
Codechange: Use EnumBitSet for CzechAllowFlags.
2025-04-16 19:44:28 +01:00
Peter Nelson
6ea10edef8
Codechange: Use std::unique_ptrs for handling station cargo display. ( #14009 )
...
Replaces manual management of raw pointers.
2025-04-16 19:43:45 +01:00
Peter Nelson
a281ac4674
Codefix: Information for NewGRF specs remained duplicated after loading.
...
After loading airports+tiles, industries+tiles, houses and objects, their specs are copied from the NewGRF's loading storage to the final global storage.
Instead, move the specs to the their new storage, and clear the NewGRF's storage once done. (Stations and RoadStops are different, and the NewGRF's storage is the final storage location.)
2025-04-16 19:43:07 +01:00
Peter Nelson
f9ab492e64
Codechange: Pass HouseSpec by reference to IsHouseSpecValid().
2025-04-16 19:43:07 +01:00
translators
b57f3262ec
Update: Translations from eints
...
spanish: 101 changes by MontyMontana
2025-04-16 04:44:48 +00:00
Peter Nelson
fa0814e257
Codefix: Codestyle consistency fixes. ( #14008 )
2025-04-15 20:57:13 +00:00
frosch
03ed59a004
Codechange: Turn AnimationStatus into an enum class.
2025-04-15 20:42:44 +02:00
frosch
47f0f4dd9e
Fix: [NewGRF] Animation speed properties of houses and stations had wrong default.
2025-04-15 20:42:44 +02:00
frosch
301b209b87
Fix: [NewGRF] Roadstop animation/randomisation was not triggered on vehicle arrival. ( #14003 )
2025-04-15 14:53:29 +02:00
translators
5fad689782
Update: Translations from eints
...
norwegian (bokmal): 1 change by eriksorngard
2025-04-15 04:44:48 +00:00
Peter Nelson
5008568dfc
Codechange: Rename CenterBounds to CentreBounds and move to geometry header. ( #14002 )
2025-04-14 23:55:40 +01:00
Michael Lutz
fc20ce301a
Doc: Missing changelog entry for 15.0-beta2. ( #14001 )
2025-04-14 18:50:02 +00:00
frosch
d2c9828b4c
Codechange: Move IsUtf8Part to only file using it.
2025-04-14 18:56:23 +02:00
frosch
588fedb5db
Codechange: Remove unused Utf8Consume, Utf8Decode, Utf8EncodedCharLen.
2025-04-14 18:56:23 +02:00