Peter Nelson
a4f9977d18
Codechange: Don't reimplement DistanceManhattan. ( #13850 )
2025-03-21 17:06:39 +00:00
Peter Nelson
6297b49a00
Codechange: Remove table/strings include from header files.
...
This was accidentally providing coverage to basically all source files...
2025-03-21 12:53:40 +00:00
Peter Nelson
3503082f19
Codechange: Move template class implementation includes.
...
These are now placed at the bottom of the including files include list.
2025-03-21 12:53:40 +00:00
Peter Nelson
2909a14374
Codechange: Include table/strings.h in files that use StringIDs.
...
Be consistent with how and where the file is incldued.
2025-03-21 12:53:40 +00:00
Peter Nelson
edb101d12f
Codechange: Use free function get BaseSet list label.
...
This avoids using StringIDs in a header file.
2025-03-21 12:53:40 +00:00
Peter Nelson
762e2f76a3
Codechange: Avoid STR_NULL in header file.
2025-03-21 12:53:40 +00:00
Peter Nelson
4ffbf97770
Codechange: Move RawText::GetEncodedText() out of header.
...
This allows it to use StringID without polluting includes.
2025-03-21 12:53:40 +00:00
frosch
3b178bf58d
Fix: NewGRF string interpolation did not process all string parameters, if certain string control codes were present.
...
String control codes with inline data may contain null characters, in particular plural/gender/case choice lists.
2025-03-21 11:03:24 +01:00
frosch
5d291317e7
Codechange: Two very different functions were named RemapNewGRFStringControlCode.
2025-03-21 11:03:24 +01:00
translators
a678bb263d
Update: Translations from eints
...
hungarian: 32 changes by vargaviktor
2025-03-21 04:45:21 +00:00
Peter Nelson
89948b941b
Codechange: Use emplace_back instead of push_back. ( #13855 )
2025-03-20 17:39:10 +00:00
Peter Nelson
b98a7ff303
Fix f214c81e97: Signed overflow in collision test on large map when road vehicles are at just the right coordinates. ( #13847 )
...
If road vehicles are -32768 subtiles apart, the distance check will break.
2025-03-18 22:53:01 +00:00
Richard Wheeler
8e2ce35143
Fix: i circumflex width in TrueType small font ( #13836 )
...
Updates OpenTTD TTF fonts to v0.7. Fixes i circumflex alignments and right bearings and similar problems with other i and I diacritics.
2025-03-18 21:07:26 +00:00
Richard Wheeler
4ba69765be
Update: Developer credits ( #13846 )
...
<3
2025-03-18 20:57:25 +00:00
Rubidium
a908c7bed0
Codechange: remove uses of MemCmpT (and MemMoveT)
2025-03-18 21:18:37 +01:00
Loïc Guilloux
e55f54ce08
Fix #13843 , 015c081c: Don't discard GetString() result ( #13844 )
2025-03-18 17:15:40 +00:00
Peter Nelson
17f7d0950e
Fix #13838 : Formatted error message of sub-errors may be lost. ( #13840 )
2025-03-18 08:39:40 +00:00
Peter Nelson
5255aabe4d
Fix #13839 : Incorrect colour of first company legend in smallmap window. ( #13841 )
...
Use the proper command to set the initial company colour.
2025-03-17 20:28:02 +00:00
translators
ff275b805b
Update: Translations from eints
...
welsh: 144 changes by Ansbaradigeidfran
catalan: 6 changes by J0anJosep
2025-03-17 04:46:50 +00:00
Rubidium
5ea5855677
Codechange: use std::move over copying where applicable
2025-03-16 17:33:06 +01:00
Rubidium
f214c81e97
Codechange: simplify some complicated logic
2025-03-16 15:12:02 +01:00
Rubidium
d6a1a0b058
Codechange: simplify logic and prevent invalid bit
2025-03-16 14:14:21 +01:00
Rubidium
b4e5b12047
Codechange: remove unneeded locking from SmallStack
2025-03-16 14:13:51 +01:00
Patric Stout
b28b35c239
Fix: [CI] Disable CodeQL TRAP Cache, as it trashes our cache ( #13832 )
...
Each cache is ~1GB. And you can only have 10GB of cache. So after
10 runs, our cache is full of trap caches.
The kicker? We don't actually benefit from this cache. It is only
used if you re-run CodeQL over the exact same codebase (without
changes), to quickly re-evaluate the latest CodeQL set. We are
way to active to have any benefit from that, and we don't run
CodeQL on a schedule to ever pick up on the cache.
2025-03-16 11:48:41 +00:00
Rubidium
ec647975ad
Cleanup: remove ancient FIXME comments
2025-03-16 05:42:29 +01:00
Rubidium
2b9c94f55a
Fix: don't show owner of non-existent road
2025-03-16 05:42:29 +01:00
Peter Nelson
3b004c57bc
Codechange: Use EnumBitSet for AdminUpdateFrequency. ( #13819 )
2025-03-15 21:18:20 +00:00
Koen Bussemaker
8d4639e525
Fix: Error message window timeout doesn't match setting
2025-03-15 22:08:19 +01:00
Rubidium
ccca7fc2b4
Codechange: remove unused INVALID_TRACK_BIT
2025-03-15 22:03:17 +01:00
enveeed
b0cc56a8b5
Fix: NewGRF vehicles display loading sprites when not actually loading or unloading ( #13554 )
2025-03-15 16:58:47 -04:00
rubidium42
2fed4b0059
Codechange: simplify code ( #13822 )
2025-03-15 21:49:07 +01:00
Rubidium
c13226cdf8
Codefix: do not leave pointers to stack allocations in globals
2025-03-15 21:46:43 +01:00
Rubidium
dae788e2e3
Codefix: do not trust allocation sizes coming from a file
2025-03-15 21:44:40 +01:00
Rubidium
f794ee028b
Codefix: potential division by zero in midi reader
2025-03-15 21:44:18 +01:00
Rubidium
6d0ba270d2
Codefix: do not use an invalid iterator
2025-03-15 21:43:56 +01:00
Rubidium
24f79d2ab7
Codefix: wrong type for choice list mapping
2025-03-15 21:43:18 +01:00
Rubidium
cf96a97e95
Codefix: remove unneeded looping logic
2025-03-15 21:42:28 +01:00
Peter Nelson
62b8b93476
Codechange: Add default initialisation for Rect to remove MemSetT.
2025-03-15 20:09:38 +00:00
Peter Nelson
c905472650
Codechange: Use std::array for vehicle sorting/grouping options to remove MemSetT.
2025-03-15 20:09:38 +00:00
Peter Nelson
653e886d26
Codechange: Use std::array in OpenGLSprite to remove MemSetT.
2025-03-15 20:09:38 +00:00
Peter Nelson
a87b804386
Fix #13760 : Store encoded error message inside CommandCost. ( #13764 )
...
Encoded error message was previously static to avoid memmory allocation, however this causes complications.
2025-03-15 20:09:11 +00:00
frosch
0cd87bc8c1
Fix: Don't add chars with unspecified signedness to pointers. ( #13828 )
2025-03-15 18:48:26 +01:00
frosch
4f63340f8d
Codechange: Replace a raw pointer with std::optional. ( #13809 )
2025-03-15 16:52:12 +01:00
SamuXarick
f6b0f7848b
Add: [Script] Newer Cargo Classes ( #13779 )
2025-03-15 16:51:56 +01:00
Loïc Guilloux
c5ec8fb05f
Fix #13814 , 2824e790: A Set() became Reset() preventing initial sorting of lists ( #13816 )
2025-03-14 21:15:42 +01:00
Rubidium
ac2087a3eb
Codefix: remove some logically dead code
2025-03-14 16:26:21 +01:00
frosch
dbea968f4f
Codefix 20e57a02a28: String parameters were off by one. ( #13810 )
2025-03-14 15:22:30 +01:00
Peter Nelson
bd5d47836d
Codechange: Use EnumBitSet for EdgeUpdateMode. ( #13808 )
2025-03-14 09:01:10 +00:00
translators
8191f39649
Update: Translations from eints
...
chinese (traditional): 11 changes by KogentaSan
spanish (mexican): 5 changes by absay
2025-03-14 04:43:31 +00:00
Charles Pigott
bcabc3b780
Codechange: Upgrade fmt to 11.1.4 ( #13807 )
2025-03-13 21:52:47 +00:00