Commit Graph

58365 Commits

Author SHA1 Message Date
Jonathan G Rennison
15f4e62936 Merge branch 'master' into jgrpp
# Conflicts:
#	src/network/network.cpp
#	src/pathfinder/yapf/yapf.h
#	src/pathfinder/yapf/yapf_ship.cpp
#	src/saveload/afterload.cpp
#	src/ship_cmd.cpp
#	src/station_cmd.cpp
#	src/vehicle.cpp
#	src/vehicle_gui.cpp
2024-07-06 18:24:53 +01:00
Jonathan G Rennison
21793af8dd Fix accel/braking percentage setting changes not updating running trains 2024-07-06 16:41:15 +01:00
Jonathan G Rennison
61b39296e1 Fix crash when replacing recolour sprite with normal sprite
See: #712
2024-07-06 13:34:44 +01:00
Jonathan G Rennison
18ef0741e7 Use hash map instead of btree for SpritePointerHolder cache 2024-07-06 13:18:59 +01:00
Qwest8K
3fd71b2821 Update russian.txt 2024-07-05 22:52:02 +01:00
Jonathan G Rennison
2d6c9c2f90 Fix 05915b21: One-way behaviour of signalled bridge exit applied to bypassing track 2024-07-05 22:42:34 +01:00
Jonathan G Rennison
b3e20ec9b6 Version: Committing version data for tag: jgrpp-0.60.1 2024-07-03 22:12:02 +01:00
Jonathan G Rennison
ae516b4a86 Fix text truncation in Win32 help dialog 2024-07-03 22:04:39 +01:00
TELK
dcd4295d4e
Update: Korean translation up to 0.60.0 (#710) 2024-07-03 18:08:25 +01:00
Jonathan G Rennison
5dc0bb61ea Test: Check that game packet ID to string mappings are correct/complete 2024-07-03 17:52:20 +01:00
Jonathan G Rennison
7c569b2c83 Fix PACKET_SERVER_MAP_DONE prepending with packet encryption
Also fix logging of sent encrypted packets
2024-07-03 02:32:57 +01:00
Jonathan G Rennison
06718b632d Fix TCP game packet ID to string mapping 2024-07-03 02:07:39 +01:00
Jonathan G Rennison
28c115fc33 Fix false positive cache check error on MinGW/GCC 10 builds
Due to incorrect default operator== on structs with C arrays.

See: #709
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94924
2024-07-03 00:25:16 +01:00
Jonathan G Rennison
5f34407ce1 Command line: Fix truncation of help text
Use std::string
2024-07-03 00:19:38 +01:00
Jonathan G Rennison
ffaa36c8d2 Command line: Fix -Z option 2024-07-03 00:04:55 +01:00
Jonathan G Rennison
27a847633c Version: Committing version data for tag: jgrpp-0.60.0 2024-07-02 22:21:40 +01:00
Jonathan G Rennison
3a1f1e12bc Fix Linux compilation issues in settingsgen 2024-07-02 22:21:04 +01:00
Jonathan G Rennison
ace441d5ea Fix GrfMsg logging in ChangeGRFFeatureTestName 2024-07-02 19:48:24 +01:00
Peter Nelson
92b6e06ba2 Fix #12832: Sanitise strings from NewGRF before logging them in Debug output.
NewGRF strings may not be UTF-8 encoded, which causes issues on Windows.

(cherry picked from commit b08e465c8d4df48d42fb603c867a7c756ce18a74)
2024-07-02 19:48:24 +01:00
Jonathan G Rennison
a99e6b5082 Delay vehicle cache init to after map upgrades in load
Split AfterLoadVehicles into two functions.
Vehicle cache init and other functionality requiring an upgraded and
valid map is now performed later in the load process.

Re-order load update for SLV_139, it is no longer required to be
performed before the first phase of vehicle updates
2024-07-02 00:45:07 +01:00
Jonathan G Rennison
f5b0874c1c Do not unnecessarily update town label if local rating unchanged 2024-07-01 20:39:32 +01:00
Jonathan G Rennison
78fdb09e2b Add setting for auto-fill drag signal removal to stop at restricted signal
Default on
2024-06-30 19:33:47 +01:00
Jonathan G Rennison
bea66c4beb Fix minor code style issue 2024-06-30 19:12:08 +01:00
Jonathan G Rennison
f8b008cd28 Avoid unnecessary GoodsEntryData creation 2024-06-30 13:12:53 +01:00
Jonathan G Rennison
f1504dcc34 Improve link graph refresher when using autorefit with cargo-type load orders 2024-06-30 13:05:24 +01:00
Fedello
9a342e489d
🌐 Update galician Translations 2024-06-28 (#708) 2024-06-28 23:25:03 +01:00
Jonathan G Rennison
41dbd2ade2 Fix struct/class mismatch for BitmapTileArea 2024-06-28 23:24:22 +01:00
Jonathan G Rennison
f21618a987 Preserve wait time/timetabled state when duplicating or mass changing order 2024-06-28 22:25:29 +01:00
Jonathan G Rennison
72bd896625 Fix moving unbunch orders to another depot 2024-06-28 22:45:52 +01:00
Jonathan G Rennison
14e0468504 Fix duplicate order duplicating dispatch schedule assignment 2024-06-28 21:41:07 +01:00
Jonathan G Rennison
6b30ab5c2c Try all suitable free wagon chains in CmdMoveRailVehicle when no destination
If none usable, move to its own chain

Fixes issues when moving wagons off trains during template replacement
when remainders are kept

See: #707
2024-06-28 00:07:13 +01:00
Jonathan G Rennison
618ed0a0ce Use vehicle tile hash for finding wagons/engines in depots 2024-06-28 00:00:26 +01:00
Jonathan G Rennison
fced6d0eb2 Fix name of CountTrainsNeedingTemplateReplacement 2024-06-28 00:00:26 +01:00
Jonathan G Rennison
0addb29e35 Enable clicking on tunnel to show vehicles inside for road/tram tunnels
Use tile hash to enumerate vehicles
2024-06-27 22:23:06 +01:00
Jonathan G Rennison
4cb3b10f55 Add vehicle function to get first vehicle in tile hash for tile 2024-06-27 22:23:06 +01:00
Jonathan G Rennison
af11b76877 Reduce duplication when iterating shared orders for departure board 2024-06-27 21:19:54 +01:00
Jonathan G Rennison
93d2b6716e Fix missing parameter documentation for vehicle on pos functions 2024-06-27 20:48:52 +01:00
Jonathan G Rennison
991bde6600 Allow changing max tunnel length and max bridge heights in network games 2024-06-27 17:15:16 +01:00
Jonathan G Rennison
291ad74864 Fix wording of running costs per calendar year setting 2024-06-24 00:14:52 +01:00
Jonathan G Rennison
51ce0a69db Fix vehicle route overlay focus handling in orders window for some drop downs 2024-06-23 20:08:12 +01:00
Jonathan G Rennison
2927a587cd Tracerestrict: Fix handling of value_drop_down_is_company field 2024-06-23 20:08:12 +01:00
Jonathan G Rennison
04254af89c Slightly reorder struct Station to reduce padding waste 2024-06-23 20:08:12 +01:00
Jonathan G Rennison
d4819ad184 Use row-aligned block data type in BitmapTileArea
Use bit operations to reduce looping over individual bits where possible
2024-06-23 20:08:12 +01:00
Jonathan G Rennison
68b16f6741 Fix minor code style issue 2024-06-20 20:45:32 +01:00
Jonathan G Rennison
a2ece31e91 Fix narrowing warning in rail/road waypoint windows 2024-06-20 17:33:47 +01:00
Jonathan G Rennison
6244f5b929 Avoid nullptr reference undefined behaviour in saveload when discarding table string on load 2024-06-20 00:09:19 +01:00
Jonathan G Rennison
88b298f30e Documentation: Remove various low level changes which are now upstream 2024-06-19 20:31:52 +01:00
Jonathan G Rennison
eda50ef6a5 Use std::vector for extra station name strings 2024-06-19 20:03:42 +01:00
Jonathan G Rennison
1e0279e72e Remove std::function from StringIDMapping to reduce size/overhead 2024-06-19 19:53:30 +01:00
Jonathan G Rennison
1b228b24a5 Add helper wrappers similar to std::bit_cast which support size mismatches 2024-06-19 19:50:48 +01:00