PeterN
b49bd86a46
Fix dec7ff6b0c
: Dropdowns couldn't be closed by pressing the parent button. ( #10954 )
...
Since dropdowns self-close, the detection of re-clicking a dropdown
button no longer worked, as the dropdown is already closed.
Instead set (and then test) a flag on the parent widget to indicate that
the dropdown closed. This method avoids looping windows on every click.
2023-06-07 19:01:30 +01:00
Rubidium
b2a8d8aea4
Codechange: use std::string for Windows' ISO code mangling
2023-06-07 08:27:18 +02:00
Rubidium
a541b8217d
Codechange: use fmt::format to build Squirrel error message
2023-06-07 08:02:58 +02:00
Rubidium
5e9a1eb790
Codechange: use fmt::format to construct error message
2023-06-07 08:02:58 +02:00
Rubidium
4de9b8a988
Codechange: use fmt::format to create desync dump savegames
2023-06-07 08:02:58 +02:00
Rubidium
d5c0d3beb7
Codechange: unify the formatting of the game's caption
2023-06-07 08:02:46 +02:00
Jonathan G Rennison
d3fbe88a9c
Add setting for departure boards duration when using minutes
...
Default to 24 hours
2023-06-07 02:20:32 +01:00
PeterN
9fa1984ef0
Codechange: IniGroup::GetItem() can now be const. ( #10966 )
2023-06-06 22:39:37 +00:00
PeterN
f249715db3
Fix #10964 : Missing FontConfig format for language. ( #10965 )
2023-06-06 22:38:11 +00:00
Jonathan G Rennison
f3116eedcf
Support 64 bit values in the give money and change bank balance commands
...
See: #535
2023-06-06 22:09:01 +01:00
PeterN
eda3defcb5
Codechange: Pass language for font detection as std::string. ( #10964 )
2023-06-06 20:55:56 +00:00
Jonathan G Rennison
3151751eda
Allow using the money cheat with values greater than 32 bits
...
See: #536
2023-06-06 21:49:30 +01:00
Jonathan G Rennison
d03465db59
Set default values for DoCommandPEx optional parameters
2023-06-06 21:48:24 +01:00
Jonathan G Rennison
bc00753996
NewGRF stations: Remove extended version of varuiable 68
2023-06-06 21:35:39 +01:00
Jonathan G Rennison
1d8df99c83
Fix upstream savegame load for versions 311 and later
2023-06-06 21:09:06 +01:00
Jonathan G Rennison
57762ce9f6
Enable upstream load for build object limit settings
2023-06-06 21:08:23 +01:00
Jonathan G Rennison
fa0771979f
Add upstream savegame load support for versions 315
2023-06-06 20:18:58 +01:00
Jonathan G Rennison
929dd46fcf
Add upstream savegame load support for versions 313 and 314
2023-06-06 19:48:59 +01:00
Michael Lutz
e5654a0414
Codechange: Use a dedicated variable for disaster vehicle action state. ( #10798 )
...
(cherry picked from commit 72c7536325
)
2023-06-06 19:59:10 +01:00
PeterN
7a0b6b7ddf
Codechange: Remove Freetype bits on Win32/OSX. ( #10960 )
...
These platforms have their own specific font rendering.
2023-06-06 19:43:27 +01:00
translators
316a434933
Update: Translations from eints
...
english (au): 6 changes by krysclarke
russian: 4 changes by Ln-Wolf
danish: 5 changes by bscargo
portuguese: 7 changes by azulcosta
2023-06-06 18:40:40 +00:00
Jonathan G Rennison
2c91866831
Adjust spacing of buttons in cargo payments rate graph
2023-06-06 19:32:16 +01:00
Jonathan G Rennison
2a5a9c2f9d
Add by cargo mode to company delivered cargo history graph
2023-06-06 19:31:59 +01:00
Rubidium
617cacd542
Fix #10961 , 52a7c69
: incorrect order of parameters to gamelog revision constructor
2023-06-06 20:26:26 +02:00
Jonathan G Rennison
f09dfc79bd
Add cargo type filters to company delivered cargo window
...
Adapted from Citymania
2023-06-06 18:19:19 +01:00
Rubidium
a47de4b2ab
Cleanup: remove DRAW_STRING_BUFFER constant
2023-06-06 18:08:11 +02:00
Rubidium
96fef9f643
Codechange: allocate enough memory to layout the strings
2023-06-06 18:08:11 +02:00
Rubidium
1fa432ca92
Codechange: replace C-style string building with C++-style building
2023-06-06 18:08:11 +02:00
Rubidium
ca1e34c121
Codechange: use std::string to build ScriptText's encoded text
2023-06-06 18:07:54 +02:00
Rubidium
e32f0aa20b
Cleanup: minimum string length for town name generator is not needed anymore
2023-06-05 23:26:12 +02:00
Rubidium
edb21620ea
Cleanup: remove unneeded checks on remaining buffer size
2023-06-05 23:26:12 +02:00
Rubidium
affceea0ae
Codechange: switch StringBuilder to use std::string as backend
2023-06-05 23:26:12 +02:00
Rubidium
ce8933d63e
Add: std::back_insert_iterator<std::string> Utf8Encode function
2023-06-05 23:26:12 +02:00
Rubidium
55dfca1936
Codechange: replace seprintf with C++ style formatting
2023-06-05 23:25:59 +02:00
Rubidium
fbd71a9d72
Codechange: replace C-style string processing with C++-style for the listing callbacks
2023-06-05 23:25:49 +02:00
Loïc Guilloux
115241a052
Fix: disable "redundant move" warnings for GCC ( #10803 )
...
GCC warns about redundant std::move while clang warns when they are missing, so we silence the less harmful one
(cherry picked from commit 3c59b8e9ec
)
2023-06-05 22:24:22 +01:00
Jonathan G Rennison
43c1b42a2c
Revert "Revert "Codechange: Explicitly move a few variables to avoid a copy constructor (fixes warning from clang)""
...
This reverts commit a99418cb69
.
2023-06-05 22:05:51 +01:00
Jonathan G Rennison
ce3707fbbf
MacOS: Bump deployment target to 10.13
2023-06-05 21:26:41 +01:00
Jonathan G Rennison
bc07331056
Remove src/3rdparty/optional
2023-06-05 21:26:41 +01:00
PeterN
ab83725d73
Add: NewGRF string code "9A 21" to display force from textstack. ( #10782 )
...
(cherry picked from commit 61516627ad
)
2023-06-05 21:07:55 +01:00
PeterN
98788e865f
Fix #10502 : Refit engine before attaching free wagons. ( #10926 )
...
Caused by incorrect order of operations when buying a train engine with refit and attaching free wagons.
(cherry picked from commit ee2d0745e9
)
2023-06-05 20:47:58 +01:00
Jonathan G Rennison
5c2f9dffe6
Fix compilation error in newgrf_profile console command on some platforms
2023-06-05 20:47:58 +01:00
Peter Nelson
b505805bfe
Fix: Don't rely on static initialization to set up sprite font caches.
...
The order of static initialization is undefined, so this can cause initalization
before relevant caches are initializations.
(cherry picked from commit f454ec8d63
)
2023-06-05 20:34:54 +01:00
Rubidium
dd94b087c4
Fix: multiplication result converted to larger type
...
Technically unlikely to happen, though uint16 * uint16 get promoted to int and
then stored as uint64; similarly uint * uint16 remains uint and gets stored as
uint64. In both cases the value can get truncated before the change to uint64.
(cherry picked from commit 4a6fdc8293
)
2023-06-05 20:31:41 +01:00
Jonathan G Rennison
d481d382cb
Fix missing include in company_base.h
2023-06-05 20:14:52 +01:00
Jonathan G Rennison
7cce9f934d
Fix strncasecmp related compilation errors on MSVC
2023-06-05 20:08:09 +01:00
Jonathan G Rennison
ffb4548f1b
Fix std::optional related compilation errors on some platforms
2023-06-05 20:04:13 +01:00
Jonathan G Rennison
3d382fe531
Debug: Fix compilation error when using RANDOM_DEBUG
2023-06-05 20:02:34 +01:00
Jonathan G Rennison
b84d1bcee4
Cheats window: Fix inflation factor arrow buttons
...
See: #533 , #534
2023-06-05 19:51:35 +01:00
translators
433ec6b5bd
Update: Translations from eints
...
korean: 2 changes by telk5093
russian: 2 changes by Ln-Wolf
finnish: 2 changes by hpiirai
turkish: 2 changes by EndChapter
french: 2 changes by glx22
portuguese: 2 changes by azulcosta
2023-06-05 18:42:37 +00:00