Commit Graph

44688 Commits (jgrpp)

Author SHA1 Message Date
translators 0cff40dd19 Update: Translations from eints
norwegian (bokmal): 203 changes by eriksorngard
italian: 45 changes by Rivarossi
german: 42 changes by Wuzzy2
ukrainian: 13 changes by StepanIvasyn
turkish: 25 changes by jnmbk
portuguese (brazilian): 25 changes by pasantoro
2 months ago
Jonathan G Rennison f0832fa9b5 Fix debug version of TileAdd 2 months ago
Jonathan G Rennison 8d141b767c Crashlog: Windows: Handle simultaneous crashes in multiple threads 2 months ago
Jonathan G Rennison c4a1436362 Workaround missing std::bit_cast on some compilers 2 months ago
Jonathan G Rennison a887333f00 Crashlog: Unix: Handle simultaneous crash signals in multiple threads
Avoid changing signal handler during crash
Just adjust the signal proc mask and vary response of signal handler
2 months ago
Jonathan G Rennison af867a4b33 Fix crash downscaling sprites from 2x for max sprite resolution setting 2 months ago
Jonathan G Rennison 9f205727bf Extend industry production/transported totals to 32 bits 2 months ago
Jonathan G Rennison cc2521ddf5 Add helper function for unsigned saturating add 2 months ago
Jonathan G Rennison fe730bce31 Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/ci-build.yml
#	.github/workflows/codeql.yml
#	.github/workflows/release-linux.yml
#	.github/workflows/release-macos.yml
#	.github/workflows/release-windows.yml
#	src/map.cpp
#	src/music/midifile.hpp
#	src/order_cmd.cpp
#	src/order_gui.cpp
#	src/pathfinder/yapf/yapf_rail.cpp
#	src/pbs.cpp
#	src/saveload/afterload.cpp
#	src/saveload/saveload.h
#	src/saveload/vehicle_sl.cpp
#	src/script/api/script_text.cpp
#	src/ship_cmd.cpp
#	src/train_cmd.cpp
#	src/vehicle.cpp
#	src/vehicle_base.h
#	src/vehicle_func.h
#	src/vehicle_gui.cpp
#	src/vehicle_gui_base.h
#	src/viewport.cpp
#	src/waypoint_cmd.cpp
2 months ago
Jonathan G Rennison c7d3e291d2 Fix divide by zero when autosave uses real time and autosave both disabled
See: #666
2 months ago
translators 1addeddc07 Update: Translations from eints
english (au): 45 changes by krysclarke
norwegian (bokmal): 256 changes by eriksorngard
welsh: 41 changes by Ansbaradigeidfran
english (us): 45 changes by 2TallTyler
russian: 11 changes by Ln-Wolf
finnish: 18 changes by hpiirai
ukrainian: 20 changes by StepanIvasyn
catalan: 167 changes by J0anJosep
danish: 11 changes by bscargo
spanish: 35 changes by lrlopez
french: 41 changes by ottdfevr
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 168 changes by pasantoro
2 months ago
Rubidium a06814c173 Codechange: use std::source_location over __FILE__ and __LINE__ for Random 2 months ago
Koen Bussemaker 984202b101 Codechange: Remove outdated YAPF example code 2 months ago
Peter Nelson b9ca3ead8b
Change: Use (at least) standard toolbar button size for signal selection buttons. (#12265)
Signal selection buttons could be very narrow, with a very wide spacer, depending on loaded signal types and fonts.
2 months ago
Peter Nelson dc6305e8c1
Codechange: Use std::make_unique instead of passing new into a unique_ptr. (#12263)
std::make_unique will also initialise the data so MemSetT is not needed.
2 months ago
translators 95a8fab339 Update: Translations from eints
swedish: 7 changes by joeax910
norwegian (bokmal): 242 changes by eriksorngard
welsh: 609 changes by Ansbaradigeidfran
english (us): 3 changes by 2TallTyler
chinese (simplified): 1 change by WenSimEHRP
ukrainian: 21 changes by StepanIvasyn
latvian: 1 change by lexuslatvia
dutch: 1 change by Jaws3rd
esperanto: 53 changes by legoscia
portuguese (brazilian): 19 changes by pasantoro
2 months ago
Peter Nelson 8b60fc3d35
Codechange: Use vector for waypoint layout. (#12264)
This replaces manual new/delete of byte array, and matches how it is used for station layouts.
2 months ago
Rubidium 2f0fe22d63 Fix #12255: inconsistent punctuation in English 2 months ago
Peter Nelson 649c1cf14c
Fix: Off-by-one in EnsureVisibleCaption. (#12261)
An off-by-one in EnsureVisibleCaption causes the minimum visible caption height to be 13 scaled pixels and 1 unscaled pixel. At 1x interface scale, this 'happens' to be the complete height of a caption, but at other interface scales it is not.

Instead of using a scaled fixed value, correct the off-by-one and just use the window's actual caption height instead.
2 months ago
Rubidium ecf534522c Codechange: replace macro with function for TileAdd(XY) 2 months ago
Rubidium 27eadc13ec Codechange: rename TILE_ADD(XY) to TileAdd(XY) 2 months ago
Rubidium df461b0329 Codechange: simplify TileAdd by using simple asserts 2 months ago
Kuhnovic 005892bfdb
Fix #12250: YAPF Trivial rail pathfinding crashes due to #12217 (#12258) 2 months ago
Jonathan G Rennison f6ba65317c Fix rail pathfinding with YAPF
Partial revert of 30e1a61c04.

See: https://github.com/OpenTTD/OpenTTD/issues/12250
2 months ago
Jonathan G Rennison dd194960f5 Fix handling of title game zoom when changing UI scaling 2 months ago
Jonathan G Rennison 2140e3fc3b Departure boards: Fix handling of invalid/empty dispatch schedules 2 months ago
Jonathan G Rennison fae9df329e Fix drawing of black text with TC_FORCED 2 months ago
Rubidium 86cb184eb4 Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc 2 months ago
Rubidium e4b3f3f495 Codechange: use std::source_location over __FILE__ and __LINE__ for NOT_REACHED 2 months ago
Rubidium bab5a8a787 Codechange: use std::source_location over __FILE__ and __LINE__ for Backup 2 months ago
translators 738624ded4 Update: Translations from eints
english (au): 1 change by krysclarke
norwegian (bokmal): 545 changes by eriksorngard
chinese (traditional): 75 changes by wpi3
galician: 24 changes by pvillaverde
chinese (simplified): 1 change by WenSimEHRP
russian: 1 change by Ln-Wolf
finnish: 4 changes by hpiirai
ukrainian: 16 changes by StepanIvasyn
catalan: 1 change by J0anJosep
danish: 1 change by bscargo
french: 3 changes by ottdfevr
portuguese: 1 change by azulcosta
esperanto: 203 changes by legoscia
portuguese (brazilian): 21 changes by pasantoro
polish: 1 change by pAter-exe
2 months ago
Jonathan G Rennison 7796451b6c Disable MSVC warning 4244 for src/3rdparty/monocypher/monocypher.cpp
See: #664
2 months ago
Jonathan G Rennison 0e76f774eb Merge branch 'master' into jgrpp
# Conflicts:
#	src/landscape.cpp
#	src/landscape.h
#	src/misc_gui.cpp
#	src/newgrf_commons.cpp
#	src/order_cmd.cpp
#	src/pathfinder/yapf/yapf_base.hpp
#	src/station_cmd.cpp
#	src/tunnelbridge_cmd.cpp
#	src/vehicle.cpp
#	src/water_cmd.cpp
#	src/window.cpp
2 months ago
Jonathan G Rennison 5b88ea6857 Revert "Add setting to disable script parameter randomisation"
This reverts commit 2bb5c9ac84.
2 months ago
Jonathan G Rennison ba79f7b2ba Merge branch 'master' into jgrpp
# Conflicts:
#	src/base_station_base.h
#	src/newgrf_roadstop.cpp
#	src/newgrf_station.cpp
#	src/object_gui.cpp
#	src/saveload/settings_sl.cpp
#	src/saveload/station_sl.cpp
#	src/settings.cpp
#	src/settings_internal.h
#	src/timer/timer_game_calendar.cpp
2 months ago
Peter Nelson 55a328c586
Codechange: Replace type-punning with `std::bit_cast` in squirrel. (#12224) 2 months ago
Peter Nelson de8a840db5
Codefix: Fully initialise `MidiFile::DataBlock` to avoid gcc warning. (#12240) 2 months ago
Loïc Guilloux 82430a1086
Fix ab315d0: Don't show "insert order" errors in the console (#12245) 2 months ago
rubidium42 e0e0d5f8fb Revert #11606: Don't auto-build past tunnelbridge ends
This reverts commit 59f6c199bf.
2 months ago
Tyler Trahan 32b0fb9f6e
Fix #12010: Use economy timer for vehicle stats minimum age, not calendar (#12142) 2 months ago
Tyler Trahan ab315d0dc9
Fix #12118: When adding an unbunching order, properly check for unsafe conditions (#12136) 2 months ago
glx22 3a71f36393 Change: [Script] Match FormatString behaviour more closely 2 months ago
glx22 ae27ce12a7 Fix 0858377: [Script] Don't output parameters more than once 2 months ago
translators ce3d0097f6 Update: Translations from eints
chinese (simplified): 27 changes by WenSimEHRP
korean: 2 changes by telk5093
greek: 42 changes by Xertoveizer
indonesian: 32 changes by tsaqibfs
slovak: 184 changes by ApplePie420
danish: 2 changes by bscargo
latvian: 2 changes by lexuslatvia
dutch: 2 changes by Afoklala
portuguese: 16 changes by jcteotonio
portuguese (brazilian): 77 changes by pasantoro
2 months ago
Kuhnovic 08ff1ab93e
Fix #12236: Ship pathfinder causes crash when ship is already at destination (#12238) 2 months ago
Kuhnovic ab353f8ad5
Update: Developer credits (#12235) (#12235) 2 months ago
Michael Lutz 8b9f59d320 Codechange: Use references for non-optional in/out values of slope functions 2 months ago
Michael Lutz 8dda387f82 Codechange: Use std::tuple for slope functions with two return values 2 months ago
Tyler Trahan 5806c2aba4
Fix #12203: When unbunching at a depot, don't overlook implicit orders (#12220) 2 months ago
SamuXarick 0c432bdc4d Fix 3947453: GetNextDecisionNode ignored go to nearest depot when combined with stop at depot 2 months ago
SamuXarick ab52f7eecf Fix ccb4c37: Aircraft could route to hangars outside their range when stopping at them 2 months ago
merni-ns b8b80cb42e
Fix #12134: Use correct error messages if clearing drive-through road stops fails (#12139) 2 months ago
rubidium42 aef8a345b2
Codefix #12162, 3105d0b: Textbuf::Assign read beyond std::string_view (#12177) 2 months ago
jcteotonio 63b9284a7e
Add: Portuguese Escudo currency (#12108) 2 months ago
Peter Nelson a9de766fa6
Fix: Train running sounds should only be produced for engine parts. (#12229) 2 months ago
Kuhnovic 30e1a61c04
Fix: YAPF doesn't check destination for start nodes (#12217) 2 months ago
translators 216905ce1f Update: Translations from eints
chinese (simplified): 2 changes by WenSimEHRP
luxembourgish: 2 changes by phreeze83
hungarian: 2 changes by PstasDev
german: 2 changes by Wuzzy2
ukrainian: 10 changes by StepanIvasyn
slovak: 197 changes by ApplePie420
catalan: 2 changes by J0anJosep
portuguese (brazilian): 35 changes by pasantoro
2 months ago
Peter Nelson 25aeb1c5a5
Change: Use same audio buffer size (and config parameter) for all sound drivers. (#12227)
Windows drivers used a default buffer size of 8192 instead of 1024, which results in a considerable 186ms latency.
2 months ago
translators 8fb26612c0 Update: Translations from eints
english (au): 2 changes by krysclarke
vietnamese: 1 change by KhoiCanDev
estonian: 4 changes by RM87
russian: 8 changes by Ln-Wolf
ukrainian: 27 changes by StepanIvasyn
slovak: 34 changes by palsoft333
tamil: 41 changes by Aswn
spanish: 4 changes by MontyMontana
portuguese (brazilian): 72 changes by pasantoro
polish: 3 changes by pAter-exe
2 months ago
Loïc Guilloux ef40c5e240
Fix #12225, 977aba7: [Script] Missing AI:ResetConfig support for running AI config (#12226) 2 months ago
translators 634b67bf13 Update: Translations from eints
estonian: 66 changes by siimsoni
greek: 41 changes by gh658804
ukrainian: 6 changes by StepanIvasyn
slovak: 30 changes by palsoft333
portuguese (brazilian): 41 changes by pasantoro
2 months ago
Kuhnovic 1a2b54498b
Change: Show tile index as decimal number in land info window (#12104) 2 months ago
Peter Nelson 2d48829999
Codechange: Scan station catchment tiles when removing station from nearby towns/industries. (#12129)
Avoid iterating all towns and industries when updating station catchment, and scan a limited portion of the map instead.

This provides a modest performance benefit when many towns/industries exist.
2 months ago
Peter Nelson 00b442d6f9
Fix: Maximum permitted sound volume from NewGRF is 128. (#12222) 2 months ago
Peter Nelson bc3bd642b9
Fix: Relocate main toolbar and statusbar before other windows. (#12218)
When repositioning all windows, the main toolbar and statusbar need to already be in position to ensure that window captions are visible.
2 months ago
Loïc Guilloux 845b894fd8
Remove: [Script] random_deviation from setting description table (#12221) 2 months ago
translators 0fd576bfbc Update: Translations from eints
chinese (simplified): 2 changes by WenSimEHRP
russian: 1 change by Ln-Wolf
ukrainian: 9 changes by StepanIvasyn
portuguese (brazilian): 66 changes by pasantoro
2 months ago
James103 230eaabb5c
Fix 2bb5c9ac84: typo in disable script parameter randomisation helptext (#663) 2 months ago
Jonathan G Rennison 1c83ea8694 Fix double-leave of crashed road vehicle in drive-through stop
See: #662
2 months ago
translators 626ee4ab41 Update: Translations from eints
chinese (simplified): 6 changes by WenSimEHRP
serbian: 16 changes by nkrs
ukrainian: 1 change by StepanIvasyn
portuguese (brazilian): 234 changes by pasantoro
2 months ago
Peter Nelson 8172e25273
Codechange: Use range-for when iterating station speclists. (#12212)
This replaces indexed access.
3 months ago
Jonathan G Rennison c29a7128c6 Bump upstream content version to 14.0 3 months ago
Jonathan G Rennison 1ba9806002 Add case parameter to FormatArrayAsHex
Use upper case where needed for vanilla compatibility
3 months ago
Peter Nelson b2ca6e1ac8
Codefix: Remove no-longer used ship special-case. (#12192)
This special-case has not been triggered since multi-tile docks were introduced.
3 months ago
Peter Nelson cff48c0f63 Codechange: Templatise SlStationSpecList to reduce duplication.
SlStationSpecList now handles both StationSpec and RoadStopSpec, and replaces indexed array access with range-for and reserve/emplace_back pattern.
3 months ago
Peter Nelson 41b3314d76 Codechange: Replace separate Station/RoadStopSpecList with template struct.
Reduces duplication and simplifies reuse.

Additionally naming an item that is used in a list as a ...List was
pretty weird.
3 months ago
Peter Nelson 278c3a7db1 Codechange: Use reference instead of copy of NewGRF speclist item. 3 months ago
Kuhnovic c5afc9173c
Fix #12176: Ships are circling in one place (#12181) 3 months ago
Jonathan G Rennison f180262aee
Fix #12154: Incorrect calendar day lengths with minutes per year setting (#12158) 3 months ago
Jonathan G Rennison 9d65fd9c2a Adjust handling of vehicles introduced before vehicle expiry stop year
See: #646
3 months ago
translators d7c485d4b9 Update: Translations from eints
estonian: 166 changes by siimsoni, 22 changes by RM87
chinese (simplified): 6 changes by WenSimEHRP
serbian: 172 changes by nkrs
ukrainian: 11 changes by StepanIvasyn
spanish: 1 change by MontyMontana
portuguese (brazilian): 149 changes by pasantoro
3 months ago
Patric Stout 8f22066b9a
Fix #12147: reset all saved settings to their default before loading a game (#12210) 3 months ago
Rubidium aff09306de Fix #12076: Do not allow 'join' command on dedicated servers 3 months ago
Loïc Guilloux 253ba0d354
Fix #12195: Reset cursor when no Object is selected (#12207) 3 months ago
Jonathan G Rennison 2bb5c9ac84 Add setting to disable script parameter randomisation 3 months ago
Jonathan G Rennison e730956213 Re-add "path signals only" mode to the signal cycle setting 3 months ago
TELK 7241b28199
Update: Korean translation (#661)
Update: Korean translation
3 months ago
Jonathan G Rennison 3a4398b613 Fix signed/unsigned comparison warning 3 months ago
Jonathan G Rennison b04a356f53 Merge branch 'master' into jgrpp
# Conflicts:
#	src/vehicle.cpp
3 months ago
Loïc Guilloux b53d79b1d2
Codechange: Don't use NOT_REACHED() when catching unhandled thread exceptions (#12199) 3 months ago
Peter Nelson a602845d0a
Fix #12202: Race condition when using sprite picker. (#12204)
When using the sprite picker the screen is redrawn so that the sprites under the mouse cursor can be captured. This redraw also caused the sprite aligner window to be redrawn before the OnInvalidateData event that updates its scrollbars with the list count.
3 months ago
Tyler Trahan 3fd5c33ae6
Fix f6dd505: Only reset unbunching departure data in the correct depot (#12155) 3 months ago
Patric Stout 7824ae5b59 Fix #12196: disable "select upgrade" button when filtering 3 months ago
Patric Stout b307541099 Fix #12196: always show selected content, even when filtering 3 months ago
Jonathan G Rennison cb5c6abc00 Fix display of ships entering viewports on an aqueduct 3 months ago
Tyler Trahan 890040ceea
Update: Developer credits (#12173) 3 months ago
Jonathan G Rennison 9e807d2072 Fix desync after joining a server with flood_from_edges setting enabled 3 months ago
translators 667adf7df9 Update: Translations from eints
chinese (simplified): 26 changes by WenSimEHRP
korean: 5 changes by telk5093
dutch: 9 changes by Afoklala
portuguese (brazilian): 25 changes by pasantoro
3 months ago
Jonathan G Rennison 421a937112 Fix plan window add lines button text when active 3 months ago
Peter Nelson f0a891c4f7
Cleanup: Remove unused last_num_specs from SlRoadStopTileData. (#12198)
Inadvertently copy & pasted from another Sl handler.
3 months ago
Jonathan G Rennison 26fc78d2bf Fix incorrect accounting of company quarterly statistics 3 months ago
translators c0b5510a94 Update: Translations from eints
portuguese (brazilian): 157 changes by pasantoro
polish: 5 changes by pAter-exe
3 months ago
Jonathan G Rennison a816829cd1 Merge branch 'master' into jgrpp
# Conflicts:
#	src/station_gui.cpp
#	src/vehicle_cmd.cpp
#	src/vehicle_gui.cpp
3 months ago
Jonathan G Rennison f403d99c90 Saveload: Add helper to iterate orders from order lists and vehicles 3 months ago
translators c4f9479507 Update: Translations from eints
chinese (simplified): 19 changes by WenSimEHRP
ukrainian: 9 changes by StepanIvasyn
portuguese (brazilian): 43 changes by pasantoro
3 months ago
Jonathan G Rennison 12b092aa91 Stop engine reliability decay once no vehicles expire after year is reached
Instead of maximum of expire and introduction year settings

See: #646
3 months ago
Loïc Guilloux fad77261ea
Fix f6dd505: Missing savegame conversion for current_order (#12188) 3 months ago
Jonathan G Rennison cd40eba453 Add an option to disable use of tagged pointers 3 months ago
Peter Nelson d4f0f0e2c5
Codechange: Use `GetVisibleRangeIterators()` in more places. (#12190)
This replaces more first/last index calculation, along with indexed array/vector access, with iterator access instead.
3 months ago
Jonathan G Rennison 7e0acd686e Add NewGRF signal style flag to draw on both sides 3 months ago
Jonathan G Rennison 55410152a2 Merge branch 'master' into jgrpp
# Conflicts:
#	src/openttd.cpp
#	src/script/api/script_text.cpp
#	src/settings_type.h
3 months ago
translators 529d813496 Update: Translations from eints
hungarian: 96 changes by titanicbobo, 11 changes by pnpBrumi
ukrainian: 19 changes by StepanIvasyn
latvian: 1 change by lexuslatvia
spanish: 9 changes by MontyMontana
portuguese (brazilian): 94 changes by pasantoro
3 months ago
Jonathan G Rennison 7a2ea83654 Plans: Adjust button tooltips 3 months ago
Jonathan G Rennison 5047b2ef4e Plans: Allow taking ownership of unowned plans
Except for unauthed network clients
3 months ago
Peter Nelson e93d081a4a
Codechange: Use range-for instead of indexed loop. (#12191) 3 months ago
Jonathan G Rennison 3a301cd986 Add helper functions for network settings admin state 3 months ago
Peter Nelson 59420d57ec
Codechange: Use vehicle tile hash to build depot vehicle list. (#12186)
This avoids iterating the entire vehicle pool.
3 months ago
Peter Nelson a61311fcb0 Codefix: DrawEngineList does not accept EngineID.
Replace min/max parameters of DrawEngineList with scrollbar reference, and use iterators instead of indices.
3 months ago
Peter Nelson bf865dc536 Codechange: Add `GetVisibleRangeIterators()` to `Scrollbar`. 3 months ago
Loïc Guilloux f612bc6ee2
Fix bf4b6696: [Script] Broken ScriptText circular reference detection (#12187) 3 months ago
Kuhnovic 2fb1593550
Fix e38c3c5: Added missing return statement (#12185) 3 months ago
Patric Stout e775ef2b70
Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time (#12184) 3 months ago
Jonathan G Rennison f186b640f6 Plans: Add initial scenario editor support
See: #655
3 months ago
Jonathan G Rennison e5a34feaed Plans: Remove visibility/window code from CmdAddPlan, use callback 3 months ago
Jonathan G Rennison a20f862cd0 Plans: Adjust command flags 3 months ago
Jonathan G Rennison d09f93879b Fix main viewport only partial redraw when changing UI scale using slider 3 months ago
Jonathan G Rennison 1e0ff41d33 Add UI setting to show speed before destination in vehicle status bar 3 months ago
Jonathan G Rennison 5d7c87f5e4 Add setting for whether to show vehicle running costs per calendar year
See #660
3 months ago
Jonathan G Rennison a429bddbac Batch depot order removals when deleting companies 3 months ago
Jonathan G Rennison 8caa4d8708 Use btree_set in Station::RemoveFromAllNearbyLists 3 months ago
Peter Nelson 5462204930 Codechange: Scan station catchment tiles when removing station from nearby towns/industries.
Avoid iterating all towns and industries when updating station catchment, and scan a limited portion of the map instead.

This provides a modest performance benefit when many towns/industries exist.

(cherry picked from commit c28762019ee4c0a60815b2c4df433a0d9bc82094)
3 months ago
translators 149592e4dd Update: Translations from eints
english (us): 9 changes by 2TallTyler
chinese (simplified): 10 changes by WenSimEHRP
luxembourgish: 21 changes by phreeze83
greek: 11 changes by Xertoveizer
hungarian: 60 changes by titanicbobo
german: 37 changes by frosch123
french: 9 changes by Bulest
portuguese (brazilian): 74 changes by pasantoro
polish: 5 changes by pAter-exe
3 months ago
Jonathan G Rennison 828d2146eb Merge branch 'master' into jgrpp
# Conflicts:
#	CMakeLists.txt
#	bin/ai/CMakeLists.txt
#	bin/game/CMakeLists.txt
#	src/ai/ai_info.cpp
#	src/company_base.h
#	src/economy.cpp
#	src/game/game_info.cpp
#	src/gfx_type.h
#	src/linkgraph/linkgraph_gui.cpp
#	src/palette.cpp
#	src/palette_func.h
#	src/saveload/saveload.h
#	src/saveload/vehicle_sl.cpp
#	src/ship_cmd.cpp
#	src/train_cmd.cpp
#	src/vehicle_base.h
#	src/window.cpp
#	src/window_func.h
3 months ago
Jonathan G Rennison cc04fe5005 Duplicate vehicle status bar velocity strings 3 months ago
Jonathan G Rennison 18e1d57fc6 Duplicate STR_ORDERS_GO_TO_TOOLTIP string 3 months ago
Jonathan G Rennison 567e235883 Merge branch 'master' into jgrpp
# Conflicts:
#	src/saveload/saveload.h
3 months ago
Patric Stout e939f59cbb
Codechange: replace "byte" with "uint8_t" in settings (#12179) 3 months ago
Jonathan G Rennison c09fdb0444 Fix company infrastructure windows not being marked as a company window
Fixes it not being removed on company deletion, which could cause a crash
3 months ago
Jonathan G Rennison 0d20a54dc5 Use pointer tags instead of dereferencing in RebuildVehicleTickCaches 3 months ago
Jonathan G Rennison bd04aff725 Use front/vehicle type filtered iteration in ScriptVehicleList 3 months ago
Jonathan G Rennison ac683bc278 ScriptList: Generalise FillList pool iteration 3 months ago
Jonathan G Rennison 746e3874c5 Fix VF_STOP_LOADING flag not always being cleared when leaving station 3 months ago
translators 7b1e3cfeb5 Update: Translations from eints
english (au): 1 change by krysclarke
swedish: 1 change by niklasva
chinese (simplified): 6 changes by WenSimEHRP
korean: 21 changes by telk5093
hungarian: 1 change by PstasDev
italian: 1 change by Rivarossi
belarusian: 7 changes by KorneySan
russian: 7 changes by Ln-Wolf, 3 changes by KorneySan
catalan: 9 changes by J0anJosep
danish: 7 changes by bscargo
french: 7 changes by ottdfevr
portuguese: 1 change by jcteotonio
hindi: 2 changes by michaelsmassey
portuguese (brazilian): 115 changes by pasantoro
polish: 1 change by pAter-exe
3 months ago
Jonathan G Rennison 93bf033107 Add whether the vehicle is non-front to the vehicle pool pointer tag
Add iteration filters which check this
3 months ago
Jonathan G Rennison 05e237f8d1 Add wrapper to iterate vehicle pool with vehicle type filter
Without needing to dereference vehicle pointers if using tagged pointers
3 months ago
Jonathan G Rennison be4aea0dad Rationalise handling of train too heavy advice messages 3 months ago
Peter Nelson 86be6d7e0b Codechange: Off-by-one in colour gradient initialisation.
Remap sprites start with a count byte followed by 256 entries, but
SetupColoursAndInitialWindow did not take account of this extra byte and
therefore started at palette index 0xC5 instead of 0xC6. This caused the
first colour of each gradient to be incorrect and all shades were actually
1 step lower in the gradient than indicated.
3 months ago
Peter Nelson 912d7bd80e Codechange: Give ColourShade values names instead of numbers. 3 months ago
Peter Nelson ae3390fe48 Codechange: Add ColourShade enum. 3 months ago
Peter Nelson 0463d4c198 Codechange: Remove direct access to _colour_gradient.
Access is now through GetColourGradient, which ensures parameters are in range.
3 months ago
Peter Nelson 56cf89d189
Change: Use bitmap for free unit ID generation. (#12165)
This improves performance of finding the next free unit number for a vehicle.

Based loosely on pool's used slot bitmap.
3 months ago
Jonathan G Rennison 601071744e Fix timetabled waiting in depots
See: #658
3 months ago
Peter Nelson 8afef45d4e
Fix d3c673e: Don't defer OnResize() after ReInit() (#12174)
Some windows resize themselves during painting and issue ReInit(). In this case deferred OnResize() causes a visible glitch as the event is handled on the next redraw.
3 months ago
Jonathan G Rennison 528aae3f3b Saveload: Remove unused engine save/load desc 3 months ago
Jonathan G Rennison ee7a347287 Fix 07278a41: Narrowing conversion warning fix 3 months ago
Jonathan G Rennison 090656bd7f Adjust handling of year display in wallclock mode and company inauguration years
See: #657
3 months ago
Jonathan G Rennison 1bfcbf823c Use tagged pointers in the vehicle pool on supported (64 bit) platforms
Use to avoid needing to dereference each pointer to get the vehicle
type when doing per-vehicle type iteration
3 months ago
translators ddb3914074 Update: Translations from eints
english (au): 6 changes by krysclarke
swedish: 19 changes by sereneavatar
estonian: 30 changes by RM87
chinese (simplified): 3 changes by Kevin-mao0721
hungarian: 60 changes by titanicbobo
italian: 6 changes by Rivarossi
russian: 3 changes by Ln-Wolf, 3 changes by KorneySan
finnish: 6 changes by hpiirai
ukrainian: 7 changes by StepanIvasyn
latvian: 6 changes by lexuslatvia
portuguese: 37 changes by azulcosta
portuguese (brazilian): 19 changes by pasantoro
polish: 6 changes by SzyZuu
3 months ago
Tyler Trahan 677ec70b0e
Fix fd9e72a: Helptext for timekeeping unit setting erroneously refers to vehicle movement (#12172) 3 months ago
Jonathan G Rennison 07278a41e5 Fix narrowing conversion warnings in pool resize capacity calculation 3 months ago
Jonathan G Rennison 64be289942 Workaround: Replace use of std::filesystem in signature.cpp
Creates DWARF generation problem with LTO and -g1 on MinGW
3 months ago
Richard Wheeler c25d9f5c81
Fix: Make link graph node borders scale with GUI (#12167) 3 months ago
Jonathan G Rennison 222832f1d4
Fix #12166: Crash when opening tram road stop build window (#12168) 3 months ago
Jonathan G Rennison 0978bd18bf Fix crash when opening tram road stop build window
See: https://github.com/OpenTTD/OpenTTD/issues/12166
3 months ago
translators 7135330819 Update: Translations from eints
vietnamese: 3 changes by KhoiCanDev
chinese (simplified): 5 changes by WenSimEHRP
hungarian: 63 changes by titanicbobo
belarusian: 47 changes by KorneySan
finnish: 2 changes by hpiirai
ukrainian: 25 changes by StepanIvasyn
danish: 38 changes by bscargo
portuguese (brazilian): 158 changes by pasantoro
3 months ago
Jonathan G Rennison 0fbb32403c Add exponential behaviour to pool growth reallocation 3 months ago
SamuXarick b22fb43cea
Fix #10490: Allow ships to exit depots if another is not moving at the exit point (#12161) 3 months ago
frosch fcad801685 Fix #12127, 555a379: Truncation ellipses rendered shadows even for black font without shadows (#12132)
(cherry picked from commit bb86023d50)
3 months ago
frosch 89b6773c93 Fix: Shadows of individual character glyphs could be drawn over other characters (#12115)
(cherry picked from commit 555a37930b)
3 months ago
Jonathan G Rennison d3bbb4fb1c Adjust ordering of date/tick setup in InitializeGame 3 months ago
Jonathan G Rennison b38321b9b4 Add setting to only spawn primary industries 3 months ago
Jonathan G Rennison c7e95d5b03 Close graph windows when changing timekeeping mode 3 months ago
Peter Nelson 2b79e7cdf5
Fix b7630b0: Incorrect padding for text purchase list. (#12160)
Restore to original (and more normal) framerect padding.
3 months ago
frosch bb86023d50
Fix #12127, 555a379: Truncation ellipses rendered shadows even for black font without shadows (#12132) 3 months ago
Jonathan G Rennison c511f93f24 Scheduled dispatch: Disable in wallclock mode if not using time in minutes 3 months ago
Jonathan G Rennison d8ecb9c016 Use absolute display units for the departure board 3 months ago
Jonathan G Rennison 91d83335c7 Add helper to get timetable absolute display unit size 3 months ago
Jonathan G Rennison 33cbfc3e76 Cache current ticks per calendar day 3 months ago
Jonathan G Rennison 45b6079899 Add string code for absolute timetable time 3 months ago
Jonathan G Rennison 6b12539e3f Implement StateTicksToCalendarDate for wallclock mode 3 months ago
Jonathan G Rennison 91b3e9c1ab Initial support for relative timetabling in wallclock mode 3 months ago
Jonathan G Rennison 7581ce0010 Fix changing time keeping units incorrectly updating state ticks offset 3 months ago
Rubidium 4c117dd2d8 Revert #11993: new number format system does not and cannot work for CJK languages
There are too many intricacies that I am unaware of that are popping up after
asking whether things are right or not.
I do not want to keep playing whack-a-mole, so just revert the whole thing.

This reverts:
15be383b93
360fe8b0b6
1aa9a5c0ab
59f56941e5
7e2eefb91f
b741b2ba6f
609d0071d5
9f8fd80112
a253205b93
819c6c756e
3 months ago
Jonathan G Rennison bbd34bb6db Increase information shown in getfulldate console command 3 months ago
Jonathan G Rennison bd955c4117 Fix calendar day length in wallclock mode
See: https://github.com/OpenTTD/OpenTTD/issues/12154
3 months ago
translators 8015d96a50 Update: Translations from eints
english (au): 2 changes by krysclarke
spanish (mexican): 149 changes by Can202
estonian: 11 changes by RM87
chinese (simplified): 18 changes by WenSimEHRP
hungarian: 2 changes by PstasDev
italian: 195 changes by Rivarossi
serbian: 42 changes by nkrs
german: 2 changes by Wuzzy2
belarusian: 537 changes by KorneySan
russian: 25 changes by KorneySan
ukrainian: 21 changes by StepanIvasyn
turkish: 14 changes by jnmbk
latvian: 2 changes by lexuslatvia
dutch: 1 change by iamthedutchdude
spanish: 15 changes by MontyMontana
french: 2 changes by ottdfevr
portuguese: 2 changes by jcteotonio, 2 changes by azulcosta
portuguese (brazilian): 149 changes by pasantoro
polish: 2 changes by pAter-exe
3 months ago
Jonathan G Rennison 5605650e26 Saveload: Don't apply state ticks offset on load if not stored in save 3 months ago
Jonathan G Rennison 58f2e0cdf0 Clamp link graph compression ticks when loading old saves 3 months ago
Jonathan G Rennison 57a4586f08 Set flood from edges setting to false when loading old saves before then 3 months ago
Jonathan G Rennison 593a81d421 Saveload: Rename IsSavegameVersionUntil to IsSavegameVersionBeforeOrAt
To match upstream
3 months ago
Jonathan G Rennison ea0fa2194a Add debug console command to unblock bay road stops with incorrect occupancy state 3 months ago
Jonathan G Rennison 16d77d9268 Fix deleting road vehicle in bay stop not unmarking as occupied 3 months ago
Jonathan G Rennison 53b06a3d04 Add event flag for removing invalid RVs during load 3 months ago
Jonathan G Rennison 675b31887a Saveload: Fix recalculation of _state_ticks
For XSLFI_VARIABLE_DAY_LENGTH versions 1 to 3
3 months ago
Jonathan G Rennison f52d56249d Saveload: Use table format for industry build data chunks 3 months ago
Jonathan G Rennison 0e262620d2 Saveload: Use table format for NewGRF/ID mapping chunks 3 months ago
Jonathan G Rennison b3bd1bb5ad Use upstream load for non-table script chunks 3 months ago
Jonathan G Rennison a92377fe98 Use upstream save/load for various unchanged chunks 3 months ago
Jonathan G Rennison b178be36f3 Saveload: Maintain map of chunk ID to (first byte) block mode 3 months ago
Jonathan G Rennison dadbad2bfc Saveload: Log changes in SlExecWithSlVersion 3 months ago