frosch
461b73e21b
Codefix: stdafx.h and safeguards.h should be the first and last include in every source file, and not appear in any header file.
2025-04-20 22:06:18 +02:00
frosch
54de376c55
Codechange: Make the squirrel-exporter skip ctor lists.
2025-04-20 21:07:12 +02:00
frosch
6256b55671
Codechange: Make the squirrel-exporter skip function bodies.
2025-04-20 21:07:12 +02:00
Rubidium
26de3404a4
Codechange: use std::string_view for sending chat messages
2025-04-20 13:31:41 +02:00
Rubidium
bb259b8e77
Codechange: use std::string_view for sending a remote console command (result)
2025-04-20 13:31:41 +02:00
Rubidium
d99edf2bbc
Codechange: use std::string_view for kicking/banning
2025-04-20 13:31:41 +02:00
Rubidium
a0246bc8a7
Codechange: use std::string_view over std::string for NetworkTextMessage
2025-04-20 13:31:41 +02:00
Rubidium
a0e4dab771
Codechange: use std::string_view for NetworkAddress::IsInNetmask of std::string
2025-04-20 13:31:41 +02:00
frosch
ff2da0fc73
Codechange: Remove CircularTileSearch.
2025-04-20 12:50:45 +02:00
frosch
b956af631e
Codechange: Replace CircularTileSearch with SpiralTileSequence.
2025-04-20 12:50:45 +02:00
frosch
0dada5a750
Codechange: Add SpiralTileSequence to iterate over a tile area the same ways as CircularTileSearch.
2025-04-20 12:50:45 +02:00
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