Commit Graph

54115 Commits

Author SHA1 Message Date
SamuXarick
a8a7f95665 Change: Allow to build dock on clearable watered object tiles (#8514) 2022-11-08 21:04:14 +01:00
Henry Wilson
59dbcdb5ba Feature: Display power-to-weight ratio in ground vehicle details GUI 2022-11-08 21:02:08 +01:00
Henry Wilson
b304c06a4a Codechange: Use override specifier for Train and RoadVehicle structs 2022-11-08 21:02:08 +01:00
Henry Wilson
89cf0d5da8 Codechange: Factor cargotype weight conversion magic numbers 2022-11-08 21:02:08 +01:00
Didac Perez Parera
019dcb7b7b Change: Let AI developers edit non-editable AI/Game Script Parameters (#8895) 2022-11-08 18:23:34 +00:00
Aaron Kofsky
ede0560f9b Feature: Add buttons to toggle music in the Game Options menu (#9727) 2022-11-08 18:21:52 +00:00
Tyler Trahan
31d08421ab Update: Rename mapgen Sea Level string in other language files 2022-11-08 11:12:14 -07:00
Tyler Trahan
62a15734fe Codechange: Rename mapgen Sea Level string 2022-11-08 11:12:14 -07:00
SamuXarick
60ccab3c52 Fix #9908: Close company windows only after all its infrastructure is removed (#9912) 2022-11-08 09:44:17 -05:00
larryfenn
d738cd235f Change: Automatic screenshot numbering with a filename ending in '#' (#9781) 2022-11-08 11:13:16 +00:00
SamuXarick
b7abaa55a3 Codechange: Improve performance when calculating company value (#9901) 2022-11-08 11:11:24 +00:00
Jonathan G Rennison
e8463a15c3 Fix: Data race on effect volume setting with mixer thread 2022-11-08 01:21:06 +00:00
Jonathan G Rennison
299159d5e9 Fix: Data races on MixerChannel active states 2022-11-08 01:21:05 +00:00
SamuXarick
8c4a70e05e Fix: Refresh company window when switching companies (#9910) 2022-11-07 17:54:04 -05:00
Jonathan G Rennison
6154406d8a Prevent spread/regrowth of temperate trees already on snowy ground 2022-11-07 18:54:42 +00:00
translators
b6a899eb2b Update: Translations from eints
slovak: 62 changes by legitalk
2022-11-07 18:48:23 +00:00
Jonathan G Rennison
ce3eb338ba Fix assert fail when order set to no unload then unload, during unload 2022-11-07 18:27:35 +00:00
Jonathan G Rennison
e931f3061f Fix: Dereference of past-the-end iterator in linkgraph overlay tooltip (#10145) 2022-11-07 00:16:38 +01:00
Jonathan G Rennison
b428c5b58a Debug: Show train engine veh type and power in debug window 2022-11-06 22:27:25 +00:00
Jonathan G Rennison
b14e213bd9 Add average travel time to the link graph overlay tooltip 2022-11-06 21:55:14 +00:00
Jonathan G Rennison
aa4501747f Merge branch 'master' into jgrpp
# Conflicts:
#	src/base_station_base.h
#	src/lang/german.txt
#	src/saveload/station_sl.cpp
#	src/station.cpp
#	src/station_cmd.cpp
2022-11-06 20:33:37 +00:00
translators
7711907a6b Update: Translations from eints
german: 16 changes by SecretIdetity
tamil: 3 changes by merni-ns
2022-11-06 18:47:19 +00:00
Peter Nelson
22803f997b Codechange: Use std::vector for station speclist
This removes manual memory allocation, although we still manage the list
size in roughly the same way.
2022-11-06 16:50:42 +01:00
Jonathan G Rennison
4dc741a8a0 Fix #10011: Incorrect infrastructure totals when overbuilding bay road stop (#10143)
Fix https://github.com/OpenTTD/OpenTTD/issues/10011
2022-11-06 16:46:11 +01:00
Jonathan G Rennison
8090bbf713 Documentation: Fix error in roadstop_draw_mode bit table 2022-11-06 15:20:00 +00:00
Loïc Guilloux
c294e8b19f Codechange: [MinGW] use pe-bigobj-x86-64 format for x64 debug builds (#10142) 2022-11-06 11:24:35 +01:00
Jonathan G Rennison
6459e62fff Merge branch 'master' into jgrpp
# Conflicts:
#	src/lang/english.txt
#	src/map_type.h
#	src/network/network_command.cpp
#	src/object_cmd.cpp
#	src/rail_cmd.cpp
#	src/road_cmd.cpp
#	src/road_func.h
#	src/saveload/afterload.cpp
#	src/saveload/saveload.h
#	src/settings_gui.cpp
#	src/string.cpp
#	src/table/road_land.h
#	src/table/settings/game_settings.ini
#	src/table/settings/world_settings.ini
#	src/tbtr_template_gui_main.h
#	src/train_cmd.cpp
2022-11-05 19:24:44 +00:00
Jonathan G Rennison
0bf1c9bb9d Merge tag '13.0-beta1' into jgrpp 2022-11-05 19:12:42 +00:00
Nicolas Chappe
a43a1902bb Feature: [Linkgraph] Prioritize faster routes for passengers, mail and express cargo
Passengers usually prefer fast paths to short paths.
Average travel times of links are updated in real-time for use in Dijkstra's algorithm,
and newer travel times weigh more, just like capacities.

(cherry picked from commit 977604ef08)
2022-11-05 19:07:35 +00:00
Tyler Trahan
0172eb39a2 Fix #10135: Cost of building multiple objects might not match test (#10137) 2022-11-05 14:46:44 -04:00
Tyler Trahan
c719ba560e Fix 03cc0d6: Mark level crossings dirty when removing road from them, not from bridges (#10138) 2022-11-05 14:46:19 -04:00
Jonathan G Rennison
1518c2fa1e Merge branch 'master' into jgrpp
# Conflicts:
#	src/depot_type.h
#	src/lang/german.txt
#	src/order_gui.cpp
#	src/pathfinder/yapf/yapf_rail.cpp
#	src/script/api/script_window.hpp.in
#	src/settings_table.cpp
#	src/train_cmd.cpp
2022-11-05 17:19:00 +00:00
frosch
fea6a34684 Codechange: SetDParamStr borrows contents from std::string::c_str(). Prevent calling it with temporaries. (#10136) 2022-11-05 17:14:10 +01:00
krysclarke
21cea308f9 Codechange: Move Sound Driver parameter name listings (#10127) 2022-11-05 15:42:20 +01:00
Jonathan G Rennison
3b3c9c1c3a Fix #10129: Use after free in GRFLoadConfig invalid GRF error path (#10130) 2022-11-05 15:17:18 +01:00
translators
d48a48b2cf Update: Translations from eints
russian: 16 changes by Ln-Wolf
dutch: 16 changes by Afoklala
2022-11-04 18:52:05 +00:00
PeterN
f24286a1ae Fix: Ensure 31-bit shifts are unsigned. (#10128)
Shifting a signed 32-bit integer by 31 bits is undefined behaviour.
A few more than necessary are switched to unsigned for consistentency.
2022-11-04 07:15:59 +00:00
Jonathan G Rennison
1f27ece49b VarAction2: Fix wrong bit used for industry tile anim callback mask 2022-11-03 20:23:50 +00:00
Jonathan G Rennison
ba3bc73676 VarAction2: Fix memory leak of inlinable adjust groups 2022-11-03 20:23:31 +00:00
Jonathan G Rennison
51b39b68b7 VarAction2: Fix technical undefined behaviour advancing iterator
Fixes error when using debug mode containers
2022-11-03 19:54:53 +00:00
Jonathan G Rennison
f4ff9c1d82 strgen: Exit early in LanguageFileWriter::Write if length is 0
Avoids warnings about passing a nullptr to fwrite
2022-11-03 19:18:07 +00:00
Jonathan G Rennison
fb67adbd82 Fix assert macro on Apple/clang when using default cmake build 2022-11-03 19:00:25 +00:00
Jonathan G Rennison
9abc6f9aec Comment out additional include of <cassert>
Reapplies part of 22c3a010
2022-11-03 18:58:24 +00:00
translators
accbfd502e Update: Translations from eints
english (au): 16 changes by krysclarke
english (us): 16 changes by 2TallTyler
korean: 14 changes by telk5093
hungarian: 15 changes by PstasDev
french: 18 changes by glx22
portuguese: 16 changes by azulcosta
polish: 22 changes by pAter-exe
2022-11-03 18:55:35 +00:00
Jonathan G Rennison
206a853a7f Fix WITH_FULL_ASSERTS being defined when all asserts disabled 2022-11-03 18:41:04 +00:00
Jonathan G Rennison
4b08874583 Only show edge level crossing overlays even when safer crossings is off 2022-11-03 00:57:47 +00:00
Jonathan G Rennison
49bda05fb5 Set adjacent crossings setting to false when loading pre v300 trunk savegames 2022-11-03 00:57:47 +00:00
Jonathan G Rennison
652d6c8181 Crashlog: Windows: Handle negative address offsets from BFD symbol 2022-11-03 00:57:47 +00:00
Jonathan G Rennison
60ed858707 Fix handling of printf format specifiers on MinGW
See: #446
2022-11-03 00:57:47 +00:00
hallonsoda79
0d51460f27 Fix #10023: Allow negative input in text fields when needed (#10112) 2022-11-02 20:54:07 +01:00