Jonathan G Rennison
ba11467c02
Fix: Rail waypoint selection window not closed
...
When rail toolbar or rail waypoint build windows closed
2023-05-26 08:41:13 +02:00
Jonathan G Rennison
7615c831aa
Avoid unnecessary checks when removing adjacent level crossing tile
2023-05-26 00:52:33 +01:00
Jonathan G Rennison
0b9b080aa6
Fix closing build waypoint window not closing waypoint selection window
2023-05-25 23:11:18 +01:00
Jonathan G Rennison
a419674157
Add coverage button to waypoint window
2023-05-25 22:35:05 +01:00
Jonathan G Rennison
df5ca1d7fb
Highlight waypoint tiles when adjacent or distant joining
2023-05-25 22:34:54 +01:00
PeterN
584faaf064
Change: Reorganise industry accept/produce arrays. ( #10853 )
...
Use a array of struct for each cargo instead of an array for each statistic.
This makes iterating for acceptance and production much simpler.
pct_transported is now calculated when needed.
2023-05-25 21:25:46 +01:00
Jonathan G Rennison
65159f4b22
Refactor viewport catchment overlay change handling
2023-05-25 20:28:31 +01:00
Jonathan G Rennison
23ab1cb3d0
Show ctrl-click function of shared orders button in tooltip
2023-05-25 20:02:29 +01:00
Jonathan G Rennison
9f24895480
Fix case of Ctrl+Click in English tooltip texts
2023-05-25 19:53:35 +01:00
Jonathan G Rennison
0fd62de4f2
Re-organise interface settings in settings window
...
Fix enable_single_veh_shared_order_gui not being listed
2023-05-25 19:36:34 +01:00
Jonathan G Rennison
f053082478
Viewport map: Use transport colour for road bridge/tunnels and aqueducts
...
In route mode
2023-05-25 18:06:59 +01:00
Loïc Guilloux
db3b086a52
Fix #10867 , 8b93e45
: Squirrel compile error exception type changed ( #10869 )
2023-05-25 12:46:27 +02:00
Rubidium
b133328737
Codechange: use std::string over strecat to create the RV capacity string
2023-05-25 05:43:00 +02:00
Rubidium
4fdde00e25
Codechange: use std::string to create the GRF parameter list
2023-05-25 05:43:00 +02:00
Rubidium
fbab94eabb
Codechange: use std::string to create error message about external files
2023-05-25 05:43:00 +02:00
Rubidium
30b9e02dd9
Codechange: replace crashlog filenames with std::string in Crashlog
2023-05-25 05:42:10 +02:00
Rubidium
19304bd3d5
Codechange: replace seprintf with fmt::format for filling the crash log data
2023-05-25 05:42:10 +02:00
Rubidium
f4b0ac2bd4
Codechange: use std::string for formatting settings
2023-05-24 22:42:01 +02:00
Jonathan G Rennison
b5ee8e9e42
Add unset hotkey to toggle showing slopes in viewport map mode
...
See: #522
2023-05-24 20:29:27 +01:00
Jonathan G Rennison
d29cec53e0
Viewport map: Show bridges and tunnels in rail type colour in routes mode
...
See: #522
2023-05-24 20:29:27 +01:00
Jonathan G Rennison
9cb992ab14
Viewport map: Adjust vertical alignment of tunnels
2023-05-24 20:29:27 +01:00
translators
1412ea48ed
Update: Translations from eints
...
esperanto: 268 changes by legoscia
2023-05-24 18:40:52 +00:00
Peter Nelson
09408e8e46
Codechange: Add IsCargoAccepted/Produced() helpers.
2023-05-24 17:34:11 +01:00
Peter Nelson
633f19419d
Codechange: Make more use of GetCargoAccepted/ProducedIndex().
2023-05-24 17:34:11 +01:00
Jonathan G Rennison
5428b6dd9b
GS: Documentation/comment fixes for ScriptAsyncMode
2023-05-23 22:49:48 +01:00
Jonathan G Rennison
cd9930542d
GS: Add GSAsyncMode(bool) class to set async mode of script DoCommands
...
In asynchronous mode, don't wait for result of executed command,
just fire-and-forget, and return estimated cost/result
2023-05-23 22:21:19 +01:00
Jonathan G Rennison
72dcdfafbd
Add setting for server sent commands per frame limit
...
Use higher of this and existing commands per frame limit setting
for server-originating commands, e.g. GS
2023-05-23 22:21:19 +01:00
Jonathan G Rennison
a25e674f06
Add "command" debug category to log commands
2023-05-23 21:35:07 +01:00
Rubidium
29b20718ba
Codechange: use Tthis instead of StrongTypedef, so ==/= does not compare/assign different strong typedefs
2023-05-23 20:46:32 +02:00
translators
9f0e406a51
Update: Translations from eints
...
esperanto: 18 changes by legoscia
2023-05-23 18:41:14 +00:00
Peter Nelson
8931e90302
Cleanup: No need to cound actual cargo to get scroll count.
2023-05-23 19:07:36 +01:00
Peter Nelson
f177ce7c9a
Codechange: Base CargoArray off std::array.
...
This avoids needing to define array accessors and allows use of
default value initialization.
2023-05-23 19:07:36 +01:00
Peter Nelson
74e42e39a8
Codechange: Use CargoArray::GetCount()
2023-05-23 19:07:36 +01:00
Peter Nelson
76516d7f70
Codechange: Use IsValidCargoID/IsValidCargoType.
...
IsValidCargoType() is used only for unmapped IDs.
2023-05-22 20:43:40 +01:00
Peter Nelson
c4ca6a0f74
Codechange: Rename IsCargo..Valid to IsValidCargo..
...
This better fits our naming pattern for this type of function.
2023-05-22 20:43:40 +01:00
Jonathan G Rennison
8bb23e07ba
Merge PR #520 into jgrpp
2023-05-22 20:06:55 +01:00
Jonathan G Rennison
e8748c310c
Merge PR #519 into jgrpp
2023-05-22 20:05:20 +01:00
Jonathan G Rennison
a99418cb69
Revert "Codechange: Explicitly move a few variables to avoid a copy constructor (fixes warning from clang)"
...
This reverts commit 6378a78817
.
Fixes : #521
2023-05-22 20:02:17 +01:00
translators
e9b376d484
Update: Translations from eints
...
catalan: 14 changes by J0anJosep
portuguese: 20 changes by azulcosta
portuguese (brazilian): 15 changes by ericandradex
(cherry picked from commit 27b40da06a
)
2023-05-22 20:02:06 +01:00
Jonathan G Rennison
37b8b59c85
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/date_type.h
# src/linkgraph/linkgraphjob.cpp
# src/linkgraph/linkgraphschedule.cpp
# src/saveload/saveload.h
# src/table/settings/linkgraph_settings.ini
2023-05-22 19:50:45 +01:00
translators
e2827d0e9c
Update: Translations from eints
...
galician: 41 changes by pvillaverde
esperanto: 95 changes by legoscia
portuguese (brazilian): 18 changes by ericandradex
2023-05-22 18:40:22 +00:00
Jonathan G Rennison
9a4512f789
Remove linkgraph duration not day length scaled setting
...
Now always enabled
2023-05-22 19:38:52 +01:00
Jonathan G Rennison
5dd99fb046
Add setting for milliseconds per game tick mode
2023-05-22 18:40:46 +01:00
Jonathan G Rennison
5e8266ac7d
Fix value of payment algorithm setting when loading new vanilla saves
2023-05-22 17:46:40 +01:00
Jonathan G Rennison
8ba1010fb4
Merge branch 'master' into jgrpp
2023-05-22 17:38:03 +01:00
Rubidium
a19a43a4f7
Codechange: use fmt::format and time conversions over "custom" implementation
2023-05-22 15:36:09 +02:00
TELK
6ec28479ea
Update: Korean translation for 0.53.3
2023-05-22 22:07:00 +09:00
Rubidium
eb635b85bb
Fix: work around GCC compiler bug #105120 in fmt
...
The fmt code pushes a pragma option, and later pops is. The intrinsics code
interacts with it via the __OPTIMIZE__ macro. This has been set by the pragma
option push, but not unset/reset to the original with the pop.
Since the pragma is only used for the GCC compiler (not Clang, not MSVC, not
ICC) and in debug mode, just remove the whole pragma handling for it.
2023-05-22 14:42:18 +02:00
Rubidium
187fa3f214
Codechange: update to fmt 10.0.0 and add formatting support for chrono and std types
2023-05-22 14:42:18 +02:00
Rubidium
6f2f38b3ed
Codechange: fmt (and std::format) do explicitly not support enums out-of-the-box
...
That it works for the version we have packaged it pure coincidence, as that is
one of the few versions that due to a bug allow it. So add the appropriate
template specialisations to support it out-of-the-box within OpenTTD.
2023-05-22 14:42:18 +02:00