Peter Nelson
3fbb0a636e
Codechange: Make driver probe behave the same as loading by name. ( #14736 )
...
Inconsistent initialisation order when setting active driver and starting the driver.
2025-12-08 20:02:09 +05:00
SamuXarick
240864586a
Doc 313c6c4: [Script] GetAllRailTypes and GetRailType are from ScriptEngine ( #14745 )
2025-12-08 20:02:08 +05:00
SamuXarick
1b82431545
Add: [Script] Auto-convert ObjectType bool to integer when setting values for items in lists via [] ( #14308 )
2025-12-08 20:02:06 +05:00
translators
34e96a5e90
Update: Translations from eints
...
english (us): 11 changes by 2TallTyler
2025-12-08 20:02:06 +05:00
Peter Nelson
96f4c16bd9
Codechange: Simplify YAPF debug helpers a little. ( #14741 )
...
Remove template magic to get C-array size.
2025-12-08 20:02:02 +05:00
translators
bdb0d9510f
Update: Translations from eints
...
chinese (traditional): 4 changes by KogentaSan
chinese (simplified): 11 changes by WenSimEHRP
catalan: 11 changes by J0anJosep
2025-12-08 20:02:02 +05:00
Tyler Trahan
5800870c3f
Fix #14737 : Don't scale custom town and industry counts by land area ( #14738 )
2025-12-08 20:01:57 +05:00
translators
526b8708fc
Update: Translations from eints
...
norwegian (bokmal): 12 changes by eriksorngard
portuguese: 1 change by jcteotonio
polish: 2 changes by pAter-exe, 2 changes by Rito13
2025-12-08 20:01:57 +05:00
translators
f0e82fa297
Update: Translations from eints
...
english (au): 11 changes by krysclarke
swedish: 11 changes by robert-i
chinese (traditional): 11 changes by KogentaSan
greek: 11 changes by gh658804
russian: 13 changes by Ln-Wolf
finnish: 15 changes by hpiirai
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 11 changes by pasantoro, 1 change by jcteotonio
polish: 10 changes by Rito13, 1 change by pAter-exe
2025-12-08 20:01:56 +05:00
translators
3e849ca095
Update: Translations from eints
...
galician: 1 change by pvillaverde
2025-12-08 20:01:56 +05:00
Peter Nelson
2608ff2bac
Change: Scale towns/industries by amount of land tiles. ( #10063 )
2025-12-08 20:00:07 +05:00
Rito12
3a7260c2d6
Add: Show height difference in bridge is too low error message. ( #14614 )
2025-12-08 19:58:55 +05:00
Rito12
91498a326b
Add: Game units for height. ( #14615 )
2025-12-08 19:57:38 +05:00
Jonathan G Rennison
d0ce29fb28
Fix: Do not pre-fill industry production history for unused production slots ( #14730 )
2025-12-08 19:57:33 +05:00
Oliver Bechstein-Rumble
14b8e9abae
Fix #14240 : Remember previous GUI scale when toggling auto-detect ( #14380 )
2025-12-08 19:57:29 +05:00
Peter Nelson
e19a779460
Fix: Don't set set town index for depot tiles. ( #14729 )
2025-12-08 19:57:25 +05:00
Peter Nelson
d284e02a87
Codechange: Prefer string equality instead of comparison. ( #14727 )
2025-12-08 19:57:13 +05:00
Loïc Guilloux
c9af1c1c7a
Codechange: Add prefix to dependabot commits ( #14691 )
2025-12-08 19:57:12 +05:00
SamuXarick
c925246bfb
Doc 80666a0: Fix typo in game script changelog ( #14714 )
2025-12-08 19:57:11 +05:00
Peter Nelson
e88d96e4df
Codechange: Use single vector for next station order.
...
Pass vector to insert into to avoid handling multiple vectors.
This may change the order of returned stations.
2025-12-08 19:56:19 +05:00
Peter Nelson
57e48db628
Codechange: Remove StationIDStack and SmallStack.
...
Use a std::vector or std::span instead.
2025-12-08 19:54:33 +05:00
Peter Nelson
427ba3bfd3
Codechange: Iterate road/tram masks instead of checking each type. ( #14716 )
2025-12-08 19:52:50 +05:00
Tyler Trahan
a2b897592b
Doc: Define policy on AI usage in OpenTTD development ( #14537 )
2025-12-08 19:52:49 +05:00
SamuXarick
6010859365
Codechange: Optimize FlowRiver ( #13264 )
2025-12-08 19:51:06 +05:00
Peter Nelson
256a26ca4e
Codechange: [Script] Add regression test for company president gender.
2025-12-08 19:51:05 +05:00
Peter Nelson
64d263b640
Fix a46a3a97f3: Incorrect parameter order for CmdSetCompanyManagerFace.
...
Style and bits were mixed up. Switch everything to style first, as the most significant parameter.
2025-12-08 19:51:01 +05:00
Peter Nelson
d3d2e8fe8c
Codechange: Silence uninitialized variable warning from GCC. ( #14715 )
...
`is_custom_layout` is not used uninitialized but GCC does not know that and produces a warning.
2025-12-08 19:50:18 +05:00
translators
7c8802ca4c
Update: Translations from eints
...
swedish: 1 change by robert-i
norwegian (bokmal): 4 changes by eriksorngard
chinese (simplified): 4 changes by WenSimEHRP
catalan: 1 change by J0anJosep
danish: 4 changes by bscargo
latvian: 8 changes by lexuslatvia
dutch: 4 changes by Afoklala
french: 5 changes by ottdfevr
2025-12-08 19:50:18 +05:00
Peter Nelson
8c7f254134
Fix ef71ce0a9d: Crash when user enters a blank line in the console. ( #14711 )
...
Crash caused by reading outside the bounds of string_view (though not the underlying buffer)
2025-12-08 19:50:16 +05:00
Peter Nelson
1bae740aab
Codefix: Make sure safeguards.h is the last included non-table header. ( #14687 )
2025-12-08 19:50:13 +05:00
Rito12
be3df87dd9
Codefix: Remove double SetDirty() calls.
2025-12-08 18:48:18 +05:00
Peter Nelson
4a555528fd
Codechange: Dereference with x-> instead of (*x). ( #14700 )
2025-12-08 18:46:14 +05:00
Peter Nelson
2aaff2dc08
Codechange: Script list iterator tidying. ( #14698 )
...
* Use `iter->` instead of `(*iter).`
* Use prefix instead of postfix operators
* Use `auto` instead of explicit iterator type.
* Use `std::next()` instead of assignment then increment.
* Use range-for where possible.
2025-12-08 18:46:12 +05:00
Peter Nelson
d7727052bc
Codechange: Use find/find_if to search for rail/road types by label.
...
Replaces manual loops.
2025-12-08 18:46:10 +05:00
Peter Nelson
01fe7e329e
Codechange: Use FlatSet to store and test alternate rail/road types.
2025-12-08 18:44:58 +05:00
Peter Nelson
e301630322
Fix f6c5da4cad: dump_info should not reverse non-ASCII label. ( #14697 )
...
Cargo/rail/road types labels are already in appropriate endian-ness.
2025-12-08 18:44:53 +05:00
translators
5563e9739d
Update: Translations from eints
...
chinese (traditional): 4 changes by KogentaSan
english (us): 1 change by 2TallTyler
korean: 1 change by telk5093
polish: 1 change by pAter-exe
2025-12-08 18:44:53 +05:00
Peter Nelson
3db024fe56
Fix: Bootstrap ignored default OpenTTD truetype fonts. ( #14684 )
...
Bootstrapping assumed that glyphs must be missing if there is no baseset, ignoring whether there actually are glyphs missing.
2025-12-08 18:43:55 +05:00
translators
ca7332f24c
Update: Translations from eints
...
english (au): 1 change by krysclarke
greek: 1 change by gh658804
hungarian: 4 changes by vargaviktor
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 1 change by jcteotonio
portuguese (brazilian): 1 change by pasantoro
2025-12-08 18:43:55 +05:00
Peter Nelson
612b52799f
Change: Make groups window group list aware of interface scaling.
2025-12-08 18:43:52 +05:00
Peter Nelson
90d52a2deb
Codechange: Use Rects for group window drawing.
...
Simplifies handling of LTR/RTL coordinates.
2025-12-08 18:43:49 +05:00
Peter Nelson
d965b591e8
Change: Provide road and rail overlay sprites for bridge decks. ( #14557 )
...
This allows bridges designed primarily with NewGRF railtypes and roadtypes to be at least somewhat compatible with built-in rail and road.
2025-12-08 18:43:47 +05:00
Rubidium
e7ee830c0a
Codechange: make all Providers fully const (Font/Screenshot/Sound)
2025-12-08 17:36:33 +05:00
Peter Nelson
4683148890
Fix 9cdf740097: Don't make copy of format providers when making a screenshot. ( #14681 )
...
While here, use projection instead of lambda to select provider.
2025-12-08 17:36:31 +05:00
Peter Nelson
9dbdc00439
Add: Include build cost in rail/road dropdowns. ( #14599 )
2025-12-08 17:36:24 +05:00
translators
cf250524de
Update: Translations from eints
...
english (us): 3 changes by 2TallTyler
galician: 9 changes by pvillaverde
2025-12-08 17:36:23 +05:00
Su
6cfc7a85d5
Change: replace the "(City)" identifier in the town directory with the city icon ( #14634 )
2025-12-08 17:36:22 +05:00
Peter Nelson
60c8b2cf8c
Codechange: Initialise rail/road types with range-for.
...
Replace double loop with single loop that performs both parts together.
2025-12-08 17:36:19 +05:00
Peter Nelson
be1d9b8349
Codechange: Use std algorithm when allocating rail/road type.
...
Use `std::ranges::find()` instead of a `for`-loop to allocate rail and road types.
2025-12-08 17:36:16 +05:00
Peter Nelson
45a7f16f4d
Codechange: Make GetRail/RoadTypeInfoIndex() a member method.
...
This follows a similar pattern used for cargoes, houses and objects.
Also fixes incorrect documentation of GetRoadTypeInfoIndex().
2025-12-08 17:35:10 +05:00