Rubidium
6a9f694158
Codechange: remove StrEmpty
2025-05-03 15:58:14 +02:00
Rubidium
d037dbb42a
Codechange: use std::string_view for locales
2025-05-03 15:58:14 +02:00
Rubidium
96fd291693
Codechange: introduce GetEnv that returns optional based on std::getenv
2025-05-03 15:58:14 +02:00
Rubidium
04a6a55e94
Codechange: replace StripTrailingWhitespace with StrTrimView
2025-05-03 15:57:53 +02:00
Rubidium
1f39d469ff
Codechange: pass the characters to trim to StrTrimView
2025-05-03 15:57:53 +02:00
Rubidium
e2db8277b8
Codefix: implement StrTrimInPlace without assigning a borrowed view of itself
2025-05-03 15:57:53 +02:00
Rubidium
4109b6848b
Codechange: replace manual trim and std::from_chars with ParseInteger
2025-05-03 15:57:53 +02:00
Rubidium
414f6a3067
Codechange: add support for parsing octal numbers
2025-05-03 15:57:53 +02:00
Rubidium
c79abc6da6
Codechange: reduce dependence on C-style strings in OpenGL
2025-05-03 14:24:49 +02:00
Rubidium
278aee2c19
Codechange: use std::string_view for sq_getstring
2025-05-03 14:24:28 +02:00
translators
f4f05dea33
Update: Translations from eints
...
chinese (traditional): 1 change by KogentaSan
chinese (simplified): 1 change by WenSimEHRP
greek: 1 change by gh658804
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
dutch: 8 changes by Afoklala
portuguese: 3 changes by jcteotonio
portuguese (brazilian): 1 change by pasantoro
polish: 1 change by pAter-exe
2025-05-03 04:45:31 +00:00
Peter Nelson
8b14faaa40
Codechange: Add version of DrawStringMultiLine that performs clipping test. ( #14189 )
...
Normally DrawStringMultiLine does not perform any clipping, as the return value may be needed if it the text is not drawn.
In some specific cases the height is already known, so it is possible to test for clipping, which can cut down on layouting time for text which won't be visible.
2025-05-02 22:59:55 +01:00
Iris-Persephone
2f020abe74
Add: "Many random towns" button in scenario editor now prompts for the number of towns, with defaults based on new game settings ( #14158 )
2025-05-02 22:54:21 +01:00
Peter Nelson
3eba97f67c
Codechange: Scrollbar Count no longer needs to be clamped to uint16_t. ( #14184 )
2025-05-02 22:21:05 +01:00
Peter Nelson
f7db4938ce
Fix #14098 : Use 64-bit type for MIDI realtime information. ( #14144 )
2025-05-02 22:20:44 +01:00
Rubidium
c420ba349d
Codechange: use std::string_view over char*
2025-05-02 23:12:43 +02:00
Rubidium
f2a32c6d13
Codechange: use std::byte instead of char for calculating arbitrary byte offsets
2025-05-02 23:12:43 +02:00
Peter Nelson
932dca927b
Fix: Crash/Undefined behaviour in station view window. ( #14183 )
...
No column limit was applied when drawing waiting cargo, which could cause out-of-bounds array access.
2025-05-02 08:02:35 +01:00
translators
e0a9c7d818
Update: Translations from eints
...
english (au): 2 changes by krysclarke
chinese (traditional): 3 changes by KogentaSan
chinese (simplified): 6 changes by WenSimEHRP
greek: 2 changes by gh658804
russian: 2 changes by Ln-Wolf
finnish: 3 changes by hpiirai
portuguese (brazilian): 2 changes by pasantoro
polish: 2 changes by pAter-exe
2025-05-02 04:45:34 +00:00
Peter Nelson
ae9646eb0a
Change: Use same padding as NewGRF parameters for AI/GS parameters lists. ( #14118 )
2025-05-01 22:36:53 +01:00
Rubidium
5ca686261e
Codechange: use std::string_view for the string setting defaults
2025-05-01 23:24:43 +02:00
Rubidium
5c7b04a0c2
Codechange: use std::string_view for 'x-of-many' settings
2025-05-01 23:24:43 +02:00
Rubidium
7805c1c189
Codechange: use std::string_view for ini_key
2025-05-01 23:24:43 +02:00
Peter Nelson
d958d50985
Fix: Small order list arrow was wrong direction for RTL text. ( #14174 )
...
Add sprite for small left arrow and use for small order list when using an RTL language.
2025-05-01 22:08:24 +01:00
Loïc Guilloux
41b113840a
Fix: [Script] Access to enum/consts defined outside of main.nut ( #14176 )
2025-05-01 18:16:32 +02:00
Loïc Guilloux
1f212e6f2a
Fix: Handle \t when loading GS strings from savegame ( #14180 )
2025-05-01 16:48:02 +02:00
Loïc Guilloux
6f4994329c
Fix bf8a241f: Handle \t in trailing whitespaces ( #14178 )
2025-05-01 12:32:00 +02:00
translators
a30f251d05
Update: Translations from eints
...
hungarian: 99 changes by meskobalazs
russian: 8 changes by Ln-Wolf
finnish: 24 changes by hpiirai
latvian: 70 changes by lexuslatvia
2025-05-01 04:47:22 +00:00
Rubidium
fbe80f31fe
Codechange: replace char* in GetOptData with std::string_view
2025-04-30 23:49:06 +02:00
Rubidium
c1a287ad17
Codechange: make some saveload functions work natively with std::string_view
2025-04-30 23:49:06 +02:00
Rubidium
855377191e
Codechange: replace some more char*s with std::string_view
2025-04-30 23:49:06 +02:00
frosch
a80c11a6e8
Fix 66733e2a: Textbuf was broken, and did not insert any input. ( #14173 )
2025-04-30 19:31:52 +00:00
Peter Nelson
7dd3bed10f
Fix #14170 , 7fd0e6c27d: Missing spaces for timetabled order strings. ( #14172 )
2025-04-30 19:54:54 +01:00
frosch
316279f4b4
Codechange: Use more std::string_view.
2025-04-30 19:33:56 +02:00
frosch
9cf36dac39
Codechange: Use data() instead of c_str(), if no NUL termination is needed.
2025-04-30 19:33:56 +02:00
frosch
9e90d4ed79
Codefix: Do not assign nullptr to std::string_view.
2025-04-30 19:33:56 +02:00
frosch
36ce1f890a
Codechange: Remove c_str, if std::string_view is already accepted.
2025-04-30 19:33:56 +02:00
frosch
b564fbb5e6
Codechange: Use StringConsumer to parse hotkeys.
2025-04-30 19:33:56 +02:00
frosch
66733e2a50
Codechange: Use std::string_view in IME input handling.
2025-04-30 19:33:56 +02:00
frosch
6db13df3b5
Add: [BaseSet] Allow basesets to set minor and patch versions in obg/obs/obm files.
2025-04-30 15:23:27 +02:00
frosch
d30fee4a99
Codechange: Improve debug/error messages when reading baseset metadata.
2025-04-30 15:23:27 +02:00
Rubidium
708e6a512d
Codechange: replace char* with C++ style strings
2025-04-30 12:05:04 +02:00
Peter Nelson
356b0159c7
Fix 261e09a549: Compilation failure with Fluidsynth enabled. ( #14167 )
2025-04-30 07:27:57 +01:00
translators
7bec2029fa
Update: Translations from eints
...
english (au): 4 changes by krysclarke
norwegian (bokmal): 5 changes by eriksorngard
chinese (traditional): 4 changes by KogentaSan
greek: 8 changes by gh658804
russian: 4 changes by Ln-Wolf
finnish: 4 changes by hpiirai
portuguese: 4 changes by jcteotonio
portuguese (brazilian): 4 changes by pasantoro
polish: 4 changes by pAter-exe
2025-04-30 04:46:51 +00:00
Peter Nelson
0abebfce1c
Codechange: Use result of .find() instead of looking up multiple times. ( #14154 )
2025-04-29 23:52:46 +01:00
Peter Nelson
aa9e8b422c
Fix #14166 , dfd9fbf873: Loan was no longer invalidated when refreshing finance window. ( #14168 )
...
In most cases the company loan does not change, but it should be updated in case it does.
2025-04-29 23:52:11 +01:00
Rubidium
f4ad614285
Codechange: use std::string_view for FS2OTTD and OTTD2FS
2025-04-29 22:33:32 +02:00
Rubidium
ef71ce0a9d
Codechange: return std::string_view for Textbuf::GetText()
2025-04-29 22:15:49 +02:00
Rubidium
261e09a549
Codechange: remove char* from base driver code
2025-04-29 21:09:18 +02:00
frosch
d030d17bd6
Codechange: Do not use a mutable global to return calculated VarAction2 results.
2025-04-29 20:35:46 +02:00