Jonathan G Rennison
d90c540f9e
Enable economy day length scaling in wallclock timekeeping mode
2024-04-30 18:04:04 +01:00
Jonathan G Rennison
9a07f14f56
Show running costs in calendar years by default
2024-04-29 22:57:02 +01:00
Jonathan G Rennison
c5cd598217
Debug: Log number of GRFs at level sl=2 when loading a game
...
Add helper to get the number of non-static GRFs in a GRF config
2024-04-29 20:14:37 +01:00
Jonathan G Rennison
adc7840f01
Scheduled dispatch: Caveat text for number of vehicles required
2024-04-29 18:31:37 +01:00
Jonathan G Rennison
a14f850f33
Debug: Show unreachable error groups in sprite dump when show details enabled
2024-04-29 17:27:22 +01:00
Peter Nelson
96ddabb30c
Codechange: Remove write-only spec_id from RoadStopSpec. ( #12582 )
...
Comment is incorrect about its value too.
(cherry picked from commit 72c55128d2
)
2024-04-29 17:13:11 +01:00
Jonathan G Rennison
991b7a958e
Do not reset lateness on auto-timetable congestion detection, when using scheduled dispatch
2024-04-27 18:45:37 +01:00
TELK
b39bd33c1c
Update: Korean translation up to 980de73
( #688 )
...
* Update: ko-KR / Colouring some setting
* Update: Korean translation - time
* Update: Korean translation up to 980de735
2024-04-24 19:49:01 +01:00
Jonathan G Rennison
29871e412c
Fix 69e7c1697
: Add missing include for MSVC
2024-04-24 17:16:03 +01:00
Jonathan G Rennison
ce40e85ccc
Fix ROADSTOP_DRAW_MODE_WAYP_GROUND when used with RSF_DRAW_MODE_REGISTER
2024-04-23 22:30:13 +01:00
Jonathan G Rennison
07cfa5f602
Fix documentation comment for RSF_DRAW_MODE_REGISTER
2024-04-23 22:29:55 +01:00
Jonathan G Rennison
980de7353d
TBTR: Fix replacement servicing condition when using infinite money
2024-04-23 17:16:15 +01:00
Jonathan G Rennison
69e7c1697e
Win32: Increase buffer size and count in wave out sound driver
...
Ensure that wave structs are zero-inited and buffers are freed
2024-04-22 17:24:44 +01:00
Jonathan G Rennison
3136f08b86
Debug: Fix display of engine cargo age period and reliability decay speed
2024-04-21 19:59:53 +01:00
Jonathan G Rennison
33baceaef7
Maintain timer sort invariants when changing period
...
See: https://github.com/OpenTTD/OpenTTD/issues/12509
2024-04-20 21:30:13 +01:00
Jonathan G Rennison
674642f9cc
Add a priority field to TimerGameTick::TPeriod
...
Use this as the primary sort key for TimerGameTick::TPeriod,
to avoid container sort order changes on timer period saveload.
2024-04-20 21:29:21 +01:00
Jonathan G Rennison
d5b8f51bf9
Rename variable to fix Windows header name collision
2024-04-20 21:01:43 +01:00
Jonathan G Rennison
71227f61d8
Use MoveFileExW to implement FioRenameFile on Windows
...
This is to allow renaming over an existing file
2024-04-20 20:55:21 +01:00
Jonathan G Rennison
083d91a582
Remove use of shell API function for rename
2024-04-20 20:39:32 +01:00
Peter Nelson
653e217bb1
Fix: Signature validation did not close its file. ( #12479 )
...
(cherry picked from commit 3316b27496
)
2024-04-20 19:58:51 +01:00
Peter Nelson
8fdc91bd9f
Fix a29766d
: Wrong scrolling dropdown list position with RTL. ( #12412 )
...
(cherry picked from commit 9750826590
)
2024-04-20 19:47:39 +01:00
Loïc Guilloux
54093fb8b2
Fix: [Win32] Force font mapper to only use TrueType fonts ( #12406 )
...
(cherry picked from commit 11aa3694fa
)
2024-04-20 19:47:22 +01:00
Jonathan G Rennison
98dc6c3c81
Fix NewGRF byte order when using -q
2024-04-20 19:46:51 +01:00
Peter Nelson
ae16df2d61
Fix #12497 : Add workaround for motion_counter being implemented correctly.
...
#12229 stopped updating motion_counter for non-engine parts of trains, and in doing so accidentally followed the spec for NewGRF var 46, which breaks NewGRFs that used to... accidentally work.
Make var 46 return motion_counter of the first engine, regardless of self or parent scope. This means var 46 is always in sync with the head engine, and avoids further changes to when motion_counter is updated.
(cherry picked from commit 9539b02455f672e11f3ac32302a00cffa5507770)
2024-04-20 19:19:23 +01:00
Peter Nelson
45886e50b2
Codechange: Unify where rail station tile flags are set. ( #12531 )
...
This avoids repeating the logic in three places.
2024-04-18 18:54:10 +01:00
Patric Stout
04a3bf76e8
Codechange: upgrade Emscripten to 3.1.57 ( #12526 )
...
This also upgrades liblzma to 5.4.6, and uses the new ports.contrib
system Emscripten 3.1.56 introduced.
2024-04-18 19:37:33 +02:00
Patric Stout
08d05bf4c0
Doc: update release documentation with the latest ( #12525 )
2024-04-18 17:12:52 +00:00
Jonathan G Rennison
6056a00222
Fix incorrect train weight used for infrastructure sharing track fees
2024-04-18 18:00:01 +01:00
Peter Nelson
4170c9923a
Fix: Inconsistent space between console history and current line. ( #12528 )
2024-04-18 17:45:41 +01:00
Tyler Trahan
78b83190cc
Fix: Mark vehicle status bars dirty when a vehicle leaves unbunching depot ( #12516 )
2024-04-18 12:45:00 -04:00
Patric Stout
715f8c0218
Codefix: cast to "CommandCallback *" in a way cast-function-type-mismatch doesn't mind ( #12529 )
2024-04-18 16:41:36 +00:00
Jonathan G Rennison
0150f8f570
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/network/network_server.cpp
2024-04-18 17:37:25 +01:00
translators
c355e98c58
Update: Translations from eints
...
english (au): 4 changes by krysclarke
russian: 4 changes by Ln-Wolf
finnish: 7 changes by hpiirai
portuguese: 4 changes by azulcosta
portuguese (brazilian): 5 changes by pasantoro
polish: 4 changes by pAter-exe
2024-04-18 04:40:27 +00:00
Peter Nelson
63ce81570c
Remove: Custom opendir implementation for Windows no longer needed.
...
std::filesystem::directory_iterator is now used instead.
2024-04-18 01:41:14 +01:00
Peter Nelson
42523379d9
Codechange: Use directory_iterator in ScanPath.
...
Replaces use of custom ttd_opendir.
2024-04-18 01:41:14 +01:00
Peter Nelson
d7c547d0db
Codechange: Use directory_iterator to list directories in file list windows.
...
This replaces use of custom ttd_opendir. Files are listed separately using ScanPath as that handles downloaded content.
2024-04-18 01:41:14 +01:00
Peter Nelson
5a523cf212
Codechange: Simplify FioCreateDirectory.
...
`std::filesystem` provides `create_directories()` as a cross-platform way to create a directory tree.
2024-04-18 01:41:14 +01:00
Peter Nelson
6458980413
Change: Draw group hierarchy tree lines. ( #12522 )
2024-04-17 21:55:19 +01:00
Jonathan G Rennison
83d99ec11d
Fix #12506 : Update station/industry nearby lists in BuildOilRig ( #12511 )
2024-04-17 22:38:11 +02:00
Patric Stout
f7bd080015
Codechange: improve desync documentation ( #12521 )
2024-04-17 20:36:08 +00:00
Patric Stout
07b162ffc4
Codechange: skip all commands of the past during desync replay ( #12520 )
2024-04-17 20:05:45 +00:00
Patric Stout
a0636d8200
Codechange: use infinite-fast-forward when rerunning command-log ( #12519 )
2024-04-17 20:01:58 +00:00
Patric Stout
a09749f6a6
Codefix: don't send desync=0 log messages to commands.log ( #12517 )
...
They are only used during replay, and you want to see those in
the console; not in the log.
2024-04-17 19:51:36 +00:00
Patric Stout
1005c86c62
Codechange: record cache warnings with a "warning" prefix ( #12518 )
2024-04-17 19:49:55 +00:00
Tyler Trahan
a02da5476e
Fix: Don't show train waiting for unbunching as waiting for free path ( #12515 )
2024-04-17 15:04:16 -04:00
Tyler Trahan
5878d09ef2
Fix: Smooth outliers in unbunching round trip calculations ( #12513 )
2024-04-17 15:03:53 -04:00
Tyler Trahan
824687d1f0
Codefix: Don't mix signed and unsigned ints in unbunching calculations ( #12514 )
2024-04-17 14:42:49 -04:00
Jonathan G Rennison
0b9029b69c
Fix: Station/industry nearby list checks in CheckCaches
2024-04-17 20:33:49 +02:00
Peter Nelson
ef8eb66a2b
Fix c38df2d58
: Use VehicleID instead of pointer in map of vehicles to replace. ( #12512 )
...
This affects the sort order, VehicleID is deterministic, Vehicle * is not.
2024-04-17 18:54:50 +01:00
Paco Esteban
b477a8458c
Codechange: Use arc4random_buf on random_func.cpp for OpenBSD
2024-04-17 19:29:26 +02:00