Commit Graph

27660 Commits (c3fbe7bea809777bca95eee09877a0a714a0ed84)
 

Author SHA1 Message Date
PeterN c3fbe7bea8
Cleanup: Use FS enum instead of magic numbers. (#11088) 1 year ago
translators 082c47a4f9 Update: Translations from eints
dutch: 1 change by Afoklala
1 year ago
Rubidium d5c75bd655 Codechange: use std::string instead of a temporary buffer for iconv calls 1 year ago
Rubidium 0ea3e338ab Codechange: replace buffer+strecpy with std::string 1 year ago
Rubidium 3f18a8863a Codechange: use std::getline to read strings from stdin 1 year ago
Rubidium f333372dd1 Codechange: let IConsoleCmdExec accept std::string 1 year ago
Rubidium fd380127f0 Codechange: use SignalObjectAndWait since we do not support older than Windows XP anymore 1 year ago
Rubidium 69d5b9d326 Cleanup: unused NO_THREADS #ifdefs 1 year ago
translators 55979b612e Update: Translations from eints
welsh: 28 changes by Ansbaradigeidfran
portuguese: 1 change by azulcosta
polish: 1 change by pAter-exe
1 year ago
Richard Wheeler 3b2934c479
Change: Make terraforming point selection sprite visible at >2x zoom out (#11017) 1 year ago
Johannes E. Krause 5b0cfc7ea5 Add: show fallback sprites with debuglevel sprite=4 1 year ago
Jonathan G Rennison 55c07eed59
Change: Add separate setting for server sent commands per frame limit (#11023)
Set a higher default value for this setting.
Use the higher of this and existing commands per frame limit
setting for server-originating commands, e.g. GS.

This is to support the GSAsyncMode class.
This also avoids undue throttling when more than one
script is in operation (e.g. AIs).
1 year ago
PeterN 8465559488
Codechange: Pass face index as font os_handle for FreeType fonts. (#11073)
This allows fallback font detection to test the specific face within the
font rather instead of only the first.
1 year ago
Rubidium 794b642b9a Codechange: use std::string/std::vector over stredup/strecpy/CallocT/free 1 year ago
Rubidium 700241410b Remove: support for not having getifaddrs 1 year ago
Rubidium 7ad487eeee Cleanup: remove now unused GetInt32/64 functions 1 year ago
Rubidium 75a22a1c83 Codechange: move from GetIntXY to GetNextParameter<XYY> 1 year ago
Rubidium e7937efb01 Codechange: add clearer named function to get the next (string) parameter 1 year ago
translators ee34fae09a Update: Translations from eints
korean: 3 changes by telk5093
danish: 3 changes by bscargo
1 year ago
Niels Martin Hansen 103d88ee33 Fix: Layouter not taking stripped formatting codes into account when mapping visual coordinates to/from original string 1 year ago
Niels Martin Hansen b52e526017 Fix: FallbackParagraphLayouter wasn't reverse-mapping glyphs to character indexes right 1 year ago
translators 5db4473ae8 Update: Translations from eints
vietnamese: 1 change by KhoiCanDev
finnish: 3 changes by hpiirai
french: 5 changes by Naeso
1 year ago
PeterN d140acf34e
Fix: Setting tree lines drawn incorrectly for RTL languages. (#11070) 1 year ago
Peter Nelson fac317b139 Cleanup: Remove {ORANGE} from settings page strings. 1 year ago
Peter Nelson 40a9b080aa Fix: Ensure settings page label is orange. 1 year ago
Loïc Guilloux 55e3dd9409
Cleanup 6298b96: Left-over function declaration (#11072) 1 year ago
Jonathan G Rennison 4f6d75f97d Fix #11016: Defer deletion of client and server game socket handlers
This fixes various use after free scenarios in error handling paths
1 year ago
Jonathan G Rennison 19ae88fb63 Fix: Error logging in game and admin server HandlePacket
Don't invent a packet type in the log message if we can't/don't
read a packet type at all.
Fix packet type not being logged when appropriate.
1 year ago
PeterN 43ddf19df3
Change: Allow text shadow on WWT_EMPTY/WWT_TEXT to extend horizontally. (#11065)
This alleviates text shadows of truetype fonts being cropped in some
window layouts.
1 year ago
PeterN 509471f7f8
Codechange: Use std::optional for GRFConfig::GRFError (#11066)
This changes the semantics from "object pointer ownership" to "optional object", and simplifies copies.
1 year ago
translators 71f241ffe1 Update: Translations from eints
english (au): 1 change by krysclarke
russian: 1 change by Ln-Wolf
turkish: 1 change by BeratSJ
french: 1 change by glx22
portuguese (brazilian): 4 changes by pasantoro
1 year ago
translators 78c9446aef Update: Translations from eints
norwegian (bokmal): 1 change by buzzCraft
chinese (traditional): 1 change by wpi3
spanish (mexican): 1 change by absay
lithuanian: 1 change by devbotas
portuguese (brazilian): 3 changes by Greavez
1 year ago
Peter Nelson 6f36f1d912 Change: Remove currency code/symbol suffix from language files. 1 year ago
Peter Nelson 9dd9b8ec74 Fix #11054: Prevent translation of currency codes.
Most languages stick with the 3-letter latin currency codes in the name
string, however some translations are... clever... and use the currency
symbol instead. Whilst this may look nice, it can cause issues with fonts
as some scripts have a specific limited set of fonts which do not include
these symbols.

Instead, hard code the currency code list and add it when drawing the
currency name.
1 year ago
PeterN d42a78f3e8
Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063)
Having to choose between DropDownListStringItem, DropDownListCharStringItem, and DropDownListParamStringItem depending on whether to draw a StringID, a raw string, or a StringID with extra parameters was needlessly complex.

Instead, allow passing a StringID or raw string to DropDownListStringItem. This will preformat the StringID into a raw string, and can therefore accept parameters via the normal SetDParam mechanism.

This also means that strings no longer need to be formatted on every draw.
1 year ago
Rubidium 321f01602a Codechange: reduce passing around parameters, but formatting strings earlier 1 year ago
Rubidium f48baa7d00 Codechange: move sign invisibility check out of loop 1 year ago
translators 9016d4a5b5 Update: Translations from eints
arabic (egypt): 8 changes by AviationGamerX
turkish: 5 changes by densxd
danish: 3 changes by bscargo
1 year ago
translators c316d9ecb7 Update: Translations from eints
english (au): 2 changes by krysclarke
vietnamese: 3 changes by KhoiCanDev
russian: 2 changes by Ln-Wolf
dutch: 5 changes by Afoklala
french: 2 changes by Lishouuu
portuguese: 2 changes by azulcosta
esperanto: 51 changes by legoscia
polish: 3 changes by pAter-exe
1 year ago
Patric Stout ff050ea1d9
Fix: [CI] enable audio (alsa / jack / pulse) for generic Linux builds (#11051)
SDL needs to see the header files when compiling to enable those
drivers runtime. It doesn't actually link against them: it just
needs to see the headers.
1 year ago
Rubidium 4e9a871718 Codechange: merge multiple string parameter arrays to single array of structs 1 year ago
Rubidium fa8c50758b Codechange: replace memcpy when copying DParams 1 year ago
Rubidium 2aa48bfcb3 Add: subspan function to span 1 year ago
Rubidium 7a785a4224 Codechange: simplify StringParameters now type cannot be nullptr 1 year ago
Rubidium 428333aeba Codechange: let AllocatedStringParameters allocated types too 1 year ago
Finn Willard f23249f8f1
Fix #10917: Pay loan interest before generating statistics (#11040) 1 year ago
PeterN b68d56d94d
Fix #11043: Don't choose toolbar dropdown option if focus is lost. (#11044)
Since dropdown menus now get closed if they lose focus, 'instant close' dropdowns (i.e. the toolbar dropdowns) should no longer execute their action to avoid unintended actions.
1 year ago
Rubidium 9f3254b72a Fix b1fb209: build failure due to removed parameter 1 year ago
translators 4d0369ea9c Update: Translations from eints
finnish: 1 change by hpiirai
portuguese (brazilian): 1 change by pasantoro
1 year ago
glx22 6c7f977197 Codechange: Use {COLOUR} to simplify drawing of timetables 1 year ago