Commit Graph

57999 Commits

Author SHA1 Message Date
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 72c55128d2129f824a60a35fb5aa601409af4a3d)
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
Jonathan G Rennison
6056a00222 Fix incorrect train weight used for infrastructure sharing track fees 2024-04-18 18:00:01 +01:00
Jonathan G Rennison
0150f8f570 Merge branch 'master' into jgrpp
# Conflicts:
#	src/network/network_server.cpp
2024-04-18 17:37:25 +01:00
Jonathan G Rennison
e17c6da46a Fix industry cargoes when loading newer vanilla savegames 2024-04-17 17:35:01 +01:00
Jonathan G Rennison
d70c824056 Linkgraph: Increase effect strength of distance scaling setting
Updates: 3d049895
2024-04-17 17:28:39 +01:00
Jonathan G Rennison
d52d447603 Update station/industry nearby lists in BuildOilRig
See: https://github.com/OpenTTD/OpenTTD/issues/12506
2024-04-17 17:07:00 +01:00
Jonathan G Rennison
41543498f4 Fix ships leaving dots behind in viewport map mode
Fixes: 57db9a41
2024-04-16 17:51:51 +01:00
Jonathan G Rennison
1e38e513ae Fix EnginesDailyLoop being called on new economy day instead of calendar 2024-04-16 17:16:35 +01:00
Jonathan G Rennison
0dcbcedbac Fix ScriptRail::BuildSignal when using realistic braking with block signals 2024-04-15 00:16:41 +01:00
FedelloKirfed
46d71463d9 🌐 Update Galician Translations 2024-04-14 2024-04-14 10:32:55 +02:00
Jonathan G Rennison
40644f21d4 Version: Committing version data for tag: jgrpp-0.58.3 2024-04-10 19:25:55 +01:00
Jonathan G Rennison
6642b7e12c Temporary fix for click/tooltip alignment of cargo lines in industry chains window
See: #681
See: https://github.com/OpenTTD/OpenTTD/issues/12465
2024-04-10 18:43:41 +01:00
Jonathan G Rennison
8e0fa32d33 Fix merge/editing error in IndustryCargoesWindow 2024-04-10 17:34:57 +01:00
Jonathan G Rennison
3d04989507 Link graph: Change distance scaling algorithm in demand scaler
Fix erratic scaling and increase effect at large setting values
2024-04-09 23:52:13 +01:00
Jonathan G Rennison
3712b84d2e Fix narrowing conversion warnings 2024-04-09 21:31:08 +01:00
Rubidium
bf0cb3c43f Codechange: let lengthof fail when anything that isn't a C-style array is passed
(cherry picked from commit 97bea563d7)
2024-04-08 19:56:20 +01:00
Jonathan G Rennison
28e74005d0 Remove various uses of lengthof on std::array 2024-04-08 19:55:58 +01:00
Rubidium
919830db7a Fix: do not use lengthof() for non C-style arrays
(cherry picked from commit c544a2be0a)
2024-04-08 18:36:26 +01:00
Peter Nelson
c5b854a422 Codechange: Avoid lengthof() on std::array.
(cherry picked from commit 295508fc53)
2024-04-08 18:36:26 +01:00
Peter Nelson
9b830e9eb2 Fix: Aircraft crash counter was too low to reach ground. (#12425)
Aircraft can float above the ground when crashed as the counter limit to reach the ground is too low.

Instead reset the counter until the aircraft reaches the ground, then continue the timer.

(cherry picked from commit 83da886093)
2024-04-08 18:27:24 +01:00
Peter Nelson
cc6322e0a3 Fix #12233: Mini order list overlaps vehicle group name. (#12423)
Move mini order list down one line to make room.

(cherry picked from commit e8c78df39e)
2024-04-08 18:27:01 +01:00
Peter Nelson
df03366cf5 Fix #12114: Viewport coords of crashed aircraft not updated when falling. (#12424)
This results in the aircraft glitching as the wrong viewport area is drawn.

(cherry picked from commit d11622b9a0)
2024-04-08 18:22:44 +01:00
Jonathan G Rennison
89e3b009c3 Fix changing sprite alignment in sprite aligner window 2024-04-07 12:40:24 +01:00
Jonathan G Rennison
1a6a4c9a6c Fix path-only signal cycle mode being ignored when using realistic braking 2024-04-05 17:54:21 +01:00
Jonathan G Rennison
a9dbd793b4 Implement Vehicle::GetCargoTile for (multi-part) ships 2024-04-03 22:26:04 +01:00
Loïc Guilloux
3cf43de059 Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416)
(cherry picked from commit 243c6bead3)

# Conflicts:
#	src/economy.cpp
2024-04-03 22:20:36 +01:00
Jonathan G Rennison
0008e7d769 Fix velocity unit names used in cargo payments graph window 2024-03-31 17:48:58 +01:00
Jonathan G Rennison
4d47eee48d Lang: Update tiles/day and tiles/sec unit name strings 2024-03-31 17:48:42 +01:00
Jonathan G Rennison
6e689c2b93 Fix tiles/day speed unit in wallclock mode 2024-03-31 17:02:27 +01:00