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
Jonathan G Rennison
e041fb8b25
Fix industry window production last month string in wallclock mode
2024-03-31 16:52:14 +01:00
Jonathan G Rennison
9dc332ca59
Fix choppy audio playback of sound effects on Windows
...
Increase default audio buffer size
See: #680
See: 25aeb1c5
2024-03-31 16:17:30 +01:00
Jonathan G Rennison
083a05a179
Adjust case of vehicle list window drop down items
2024-03-30 16:42:59 +00:00
Jonathan G Rennison
d31359f4d2
Saveload: Fix doc comment for SlXvGetFeatureName
2024-03-30 16:31:31 +00:00
Jonathan G Rennison
98f1fb2722
Saveload: Fix NGRF chunks being saved with incorrect table SL_ARR format
...
Array length prefix was missing
See also: https://github.com/OpenTTD/bananas-api/pull/456
2024-03-30 10:16:26 +00:00
Jonathan G Rennison
9f7d25e02d
TBTR: Fix head state migration when using start/stop callbacks
...
Don't run start/stop callbacks during head state migration
2024-03-29 16:20:54 +00:00
Jonathan G Rennison
3439d208d7
TBTR: Fix cost estimation of replacement when using wagon attach callbacks
...
Do not CMD_SELL_VEHICLE in cost estimation, just use the vehicle values
2024-03-29 16:09:13 +00:00
Jonathan G Rennison
0ba9d9bb18
Version: Committing version data for tag: jgrpp-0.58.2
2024-03-28 20:07:44 +00:00
glx22
64a67d8821
Change: [CI] Always use latest stable Xcode
...
(cherry picked from commit d750db9bbefe853002edea59ad72ca37a4702b6c)
2024-03-28 16:15:52 +00:00
Jonathan G Rennison
315dd62bd9
Fix Vehicle::CopyVehicleConfigAndStatistics not releasing unit number
...
See: https://github.com/OpenTTD/OpenTTD/issues/12388
2024-03-27 19:25:03 +00:00
SamuXarick
afaf452534
Fix: Changing NPF max search nodes while in-game had no effect ( #12194 )
...
(cherry picked from commit f845b4bbc3
)
2024-03-27 18:29:33 +00:00
Peter Nelson
5c345f55e2
Fix #12368 : Incorrect offset for click position within industry chain window. ( #12370 )
...
(cherry picked from commit 97c1738541
)
2024-03-27 18:28:05 +00:00
Peter Nelson
b919c412b9
Fix 2fd9096
: Label for fruit incorrectly changed to FRUI
from FRUT
. ( #12367 )
...
(cherry picked from commit eebfb83aa2
)
2024-03-27 18:27:36 +00:00
Jonathan G Rennison
8e9600991a
Clear vehicle unit number on load for non-primary vehicles
2024-03-26 17:46:56 +00:00
Jonathan G Rennison
459e13fc5a
Remove unused command: CMD_SET_VEHICLE_UNIT_NUMBER
2024-03-26 17:26:49 +00:00
Jonathan G Rennison
c295b1d99e
Use OTTD2FS for unlink when using iconv
2024-03-24 13:34:40 +00:00
Jonathan G Rennison
e9c8c36af7
Add missing include to src/sl/saveload.cpp
2024-03-24 10:59:06 +00:00
Rubidium
5d8e40cad4
Codechange: use int32_t instead of uint16_t for scroll bar position/size/capacity
...
(cherry picked from commit d09b5aaeba
)
# Conflicts:
# src/newgrf_debug_gui.cpp
# src/newgrf_gui.cpp
# src/widget_type.h
2024-03-24 10:37:40 +00:00
Peter Nelson
2219b8e378
Fix: Don't let CT_INVALID map to valid cargo type. ( #12364 )
...
(cherry picked from commit ff35288ddf
)
# Conflicts:
# src/cargotype.cpp
2024-03-23 21:29:15 +00:00
glx22
5b127ed23e
Revert bbdbf9a
: ScriptTimeMode was not the best solution for economy/calendar support
...
(cherry picked from commit 704e871a0e
)
# Conflicts:
# src/script/api/script_date.cpp
# src/script/script_storage.hpp
2024-03-23 21:29:15 +00:00
frosch
0b6d73fab2
Add: [SDL2] Driver parameter 'no_mouse_capture' to ease interactive debugging ( #12336 )
...
(cherry picked from commit 603154899a
)
2024-03-23 20:55:58 +00:00