glx22
b8348d7e17
Fix be01c2cd2a: [Scripts] Broken ScriptGroup::SetName compat wrapper
2025-02-19 19:21:50 +01:00
glx22
a577229e95
Revert d7bd67cda3: [Scripts] "_typeof" metamethod negatively affects old scripts
2025-02-19 19:21:50 +01:00
Peter Nelson
3d5083218d
Fix #13621 : Incorrect Owner text in land area info. ( #13622 )
...
An if-condition was accidentally inverted in 2d7d085e8e
, and an empty parameter is required.
2025-02-19 09:14:03 +00:00
translators
f4b75213d8
Update: Translations from eints
...
spanish (mexican): 76 changes by absay
korean: 4 changes by telk5093
catalan: 4 changes by J0anJosep
2025-02-19 04:45:02 +00:00
Peter Nelson
9de913dd21
Codechange: Use helper to set grf_prop's grffile and grfid together. ( #13612 )
2025-02-18 22:33:13 +00:00
Rubidium
37d549d395
Codefix 35e58f68e4: afterload did not properly set airport rotation
2025-02-18 23:09:02 +01:00
Rubidium
704f5e2500
Codechange: explicitly initialise Sign member variables
2025-02-18 22:41:20 +01:00
Rubidium
11a8b71504
Codechange: explicitly initialise Vehicle related member variables
2025-02-18 22:11:04 +01:00
Rubidium
6327fa4623
Codechange: explicitly initialise StoryPage and StoryPageElement member variables
2025-02-18 22:10:43 +01:00
Rubidium
8a4493f990
Codechange: explicitly initialise Town member variables
2025-02-18 22:10:31 +01:00
Rubidium
ce2ae07233
Codechange: explicitly initialise Subsidy member variables
2025-02-18 22:10:10 +01:00
glx22
be01c2cd2a
Fix b2c5712319: Old scripts need compatibility layer
2025-02-18 21:19:15 +01:00
glx22
d7bd67cda3
Add: [Scripts] "_typeof" metamethod
2025-02-18 21:19:15 +01:00
Rubidium
35e58f68e4
Codechange: explicitly initialise (Base)Station related member variables
2025-02-18 20:02:23 +01:00
Rubidium
5ccbaa6990
Codechange: explicitly initialise OrderBackup and OrderList member variables
2025-02-18 20:02:09 +01:00
Rubidium
0a285e1a86
Codechange: explicitly initialise Goal member variables
2025-02-18 20:01:58 +01:00
Rubidium
8682f39966
Codechange: explicitly initialise Object member variables
2025-02-18 18:51:44 +01:00
Rubidium
6eb2dec338
Codechange: explicitly initialise LinkGraph and LinkGraphJob member variables
2025-02-18 18:41:31 +01:00
Rubidium
35e7255a5a
Codechange: explicitly initialise LeaugeTable and LeagueTableElement member variables
2025-02-18 18:41:14 +01:00
Rubidium
7e471bf04d
Codechange: explicitly initialise Industry member variables
2025-02-18 18:18:14 +01:00
Rubidium
63e99871c1
Codechange: explicitly initialise Group member variables
2025-02-18 18:17:56 +01:00
Rubidium
b4a4ca83ff
Codechange: explicitly initialise EngineRenew member variables
2025-02-18 07:21:11 +01:00
Rubidium
0449dc48c8
Codechange: explicitly initialise Depot member variables
2025-02-18 07:21:04 +01:00
Rubidium
1f3198a395
Codechange: explicitly initialise Engine member variables
2025-02-18 07:20:58 +01:00
Rubidium
bb81139c1f
Codechange: explicitly initialise CargoPayment member variables
2025-02-18 07:20:49 +01:00
translators
53dd1258a7
Update: Translations from eints
...
english (au): 3 changes by krysclarke
norwegian (bokmal): 4 changes by eriksorngard
chinese (traditional): 4 changes by KogentaSan
spanish (mexican): 67 changes by absay
english (us): 4 changes by 2TallTyler
chinese (simplified): 54 changes by WenSimEHRP
arabic (egypt): 77 changes by ImMorrow
greek: 3 changes by gh658804
russian: 3 changes by Ln-Wolf
finnish: 3 changes by hpiirai
portuguese: 3 changes by azulcosta
portuguese (brazilian): 3 changes by pasantoro
polish: 3 changes by pAter-exe
2025-02-18 04:43:06 +00:00
Peter Nelson
370c702549
Add: Show badges in NewGRF debug window. ( #13597 )
2025-02-17 22:15:45 +00:00
Peter Nelson
7a23bfa747
Add: Filter purchase lists by badge text. ( #13588 )
2025-02-17 17:28:26 +00:00
Peter Nelson
5e43aaff35
Add: Also show badges in fund industry list. ( #13590 )
2025-02-17 17:27:57 +00:00
Peter Nelson
af7054dcb6
Fix 8f14894024: Badge name list did not use translatable separator. ( #13591 )
2025-02-17 17:27:22 +00:00
translators
2f66f74035
Update: Translations from eints
...
english (au): 1 change by krysclarke
chinese (traditional): 1 change by KogentaSan
spanish (mexican): 264 changes by absay
greek: 1 change by gh658804
russian: 2 changes by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 1 change by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 4 changes by pAter-exe
2025-02-17 04:43:27 +00:00
Peter Nelson
ed57b9c297
Fix faa845398f: Crash when loading tile layout with no building sprites. ( #13589 )
...
Tile layouts are permitted to have no building sprites, therefore the test for an empty sequence of sprites is not valid.
2025-02-16 22:29:56 -05:00
Peter Nelson
13944222f3
Fix d13b0e0813: "New vehicle now available!" message is wrong colour. ( #13586 )
2025-02-16 23:00:24 +00:00
Peter Nelson
8f14894024
Add: NewGRF Badges.
2025-02-16 22:24:25 +00:00
Peter Nelson
ca3b5ed6c1
Codechange: Allow iterating a BaseBitSet.
2025-02-16 22:24:25 +00:00
Peter Nelson
0af5d5a9e6
Codechange: Make non-generic GRF string ids unique per feature.
...
This prevents engine name strings conflicting with generic strings if more than 53,248 engines are defined.
2025-02-16 22:24:25 +00:00
Peter Nelson
154896ce55
Codechange: Use GetString() with local parameters in script functions. ( #13585 )
2025-02-16 21:27:25 +00:00
SamuXarick
f0382c37ee
Fix #12193 : [YAPF] Don't use the entire docking area when computing closest station tile
...
Don't use CalcClosestStationTile for ships. Instead, use a specialized GetShipDestinationTiles which creates a list of possible destination tiles. For docks, it only takes into consideration the tiles that pass both IsDockingTile and IsShipDestinationTile tests. For the other cases it just takes the ship's current dest_tile.
Modified CYapfDestinationTileWaterT class to accept multiple destinations. In this manner, the estimate cost is calculated for each of the destination tiles and the shortest estimate is returned. Some adaptation was necessary to make this possible to work for both the high- and low-level pathfinders and the existing functions. ChooseShipTrack and its FindWaterRegionPath brother both will take the same destination tiles which are calculated at either YapfShipChooseTrack or YapfShipCheckReverse.
2025-02-16 20:54:32 +00:00
Rubidium
fd4adc55e3
Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
2025-02-16 20:23:00 +01:00
Peter Nelson
d13b0e0813
Codechange: Build engine preview strings from separate strings. ( #13579 )
...
This replaces stuffing substrings and parameters in various global parameters and uses local parameters instead.
2025-02-16 19:02:02 +00:00
Rubidium
af00b835a1
Codechange: remove transitional supports from the pool
2025-02-16 19:31:37 +01:00
Rubidium
576a96c685
Codechange: let the ReusableBuffer use std::vector as storage
2025-02-16 19:31:13 +01:00
Rubidium
59df0ff496
Codechange: strongly type StationID
2025-02-16 18:25:51 +01:00
Patric Stout
155aaa5967
Fix fd2949d: use std::prev() to walk back from a possible string::end()
2025-02-16 16:36:25 +01:00
Patric Stout
2eb32ece6d
Fix fd2949d: std::string can reallocate on insert()
2025-02-16 16:36:25 +01:00
Peter Nelson
3ade64954c
Change: Restore wider spacers in main toolbars. ( #12039 )
...
Width for all spacers was included only due to an off-by-one from counting buttons and not excluding the normally hidden switcher button.
Spacer width of quarter the button width is now included explicitly,
2025-02-16 14:51:07 +00:00
Rubidium
70c9f3963c
Codechange: strongly type VehicleID
2025-02-16 14:50:15 +01:00
Rubidium
1003967267
Codechange: strongly type TownID
2025-02-16 14:50:15 +01:00
Rubidium
d3408a4542
Codechange: strongly type IndustryID
2025-02-16 14:50:15 +01:00
Rubidium
7e04651220
Codechange: strongly type EngineID
2025-02-16 14:50:15 +01:00