Commit Graph

44688 Commits (jgrpp)

Author SHA1 Message Date
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.
2 months ago
Jonathan G Rennison c29a7128c6 Bump upstream content version to 14.0 2 months ago
Jonathan G Rennison 1ba9806002 Add case parameter to FormatArrayAsHex
Use upper case where needed for vanilla compatibility
2 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.
2 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
Jonathan G Rennison 6dec7a5b35 Saveload: Add PeekByte method to ReadBuffer 3 months ago
Jonathan G Rennison bd2358f6cc Saveload: Tidy up logging of chunk IDs
Add helper to dump chunk IDs as strings
Avoid duplicate logging of load steps for upstream load paths
3 months ago
Jonathan G Rennison ba1fa3ad29 Saveload: Fix SlNullPointers with upstream chunks 3 months ago
Jonathan G Rennison b58ecb0cd8 Saveload: Remove unnecessary auto-length use for tracerestrict 3 months ago
Jonathan G Rennison 8e8d698b24 Fix comment spelling errors 3 months ago
Rubidium 5d2e6e4efa Fix #12148, fca8166: Do not draw decimals when number of digits is 0 3 months ago
Jonathan G Rennison ca146c8ddd Fix #12145: Incorrect date handling in date cheat in wallclock time-keeping mode 3 months ago
Jonathan G Rennison 409c073eca Codefix: Off by one in TimerGameEconomy::ConvertDateToYMD wallclock mode 3 months ago
merni-ns 7bab2c1cc3 Fix #12119: Remove red warning text when maximum loan is zero 3 months ago
Jonathan G Rennison 158fbe19f8 Fix missing includes 3 months ago
Jonathan G Rennison 1f08ea54e5 Script: Fix narrowing conversion warning 3 months ago
Jonathan G Rennison aad6fadd7f Fix noreturn tag in window crash log 3 months ago
Jonathan G Rennison c2d581a928 Revert "Iconv: Ensure that OTTD2FS/FS2OTTD are thread-safe"
This reverts commit 94d326b1e0.
3 months ago
Jonathan G Rennison 4469925605 Add missing typename specifier 3 months ago
Jonathan G Rennison a7c7e3d618 Add missing includes for std::runtime_error 3 months ago
Loïc Guilloux d310a04276 Fix #12133: [Script] Don't crash when emergency saving (#12138)
(cherry picked from commit 25d1238907)
3 months ago
Loïc Guilloux 5098c77c38 Fix: [Script] Only show debug script window at the end of savegame loading (#12135)
(cherry picked from commit 2d7ad9f717)
3 months ago
Jonathan G Rennison ff0d212705 Fix incorrect assert of LinkGraph LastCompression date 3 months ago
Jonathan G Rennison 69ae516353 Fix loading of depot unbunch bit from vanilla saves 3 months ago
Jonathan G Rennison c637d376d0
Fix cb588d8d: Ordering of command per tick limit and pause mode filtering (#12126)
The command per tick limit should be applied after the pause mode filter
3 months ago
Jonathan G Rennison 37e6f36b1f Fix off by one in wallclock mode ConvertDateToYMD 3 months ago
translators bff69e192b Update: Translations from eints
english (us): 24 changes by 2TallTyler
vietnamese: 13 changes by KhoiCanDev
estonian: 7 changes by RM87
german: 16 changes by Wuzzy2
belarusian: 328 changes by KorneySan
russian: 6 changes by KorneySan, 5 changes by Ln-Wolf
ukrainian: 9 changes by StepanIvasyn
catalan: 18 changes by J0anJosep
danish: 61 changes by bscargo
french: 8 changes by ottdfevr
portuguese: 29 changes by jcteotonio, 12 changes by azulcosta
portuguese (brazilian): 185 changes by pasantoro
polish: 1 change by pAter-exe
3 months ago
Jonathan G Rennison 79388e4207 Include dates and tick counters in state checksum 3 months ago
Jonathan G Rennison 24cd52616c Add getter for calendar sub date fract 3 months ago
Jonathan G Rennison f32eef4f38 Allow changing time-keeping mode in-game 3 months ago
Jonathan G Rennison 471934e685 Add a helper to get the number of days in a given calendar month 3 months ago
Loïc Guilloux 25d1238907
Fix #12133: [Script] Don't crash when emergency saving (#12138) 3 months ago
Loïc Guilloux 2d7ad9f717
Fix: [Script] Only show debug script window at the end of savegame loading (#12135) 3 months ago
Jonathan G Rennison 6e10f01f59 Fix timetable durations when loading old saves
With version 1 of XSLFI_TT_WAIT_IN_DEPOT or without XSLFI_TIMETABLE_EXTRA
3 months ago
Jonathan G Rennison 0993622f09 Fix production cargo icon in industry window 3 months ago
Jonathan G Rennison 40f5f17e32 Tidy up focus management for vehicle dropdowns 3 months ago
Jonathan G Rennison fc2f746b80 Increase river pathfinding node limit 3 months ago
Jonathan G Rennison d512602369 Charge scripts for use of ScriptList::FillList
See: https://github.com/OpenTTD/OpenTTD/issues/12128
3 months ago
Jonathan G Rennison 351c607dad Call ProcessScheduledResize from FinishInitNested
This is to make sure that OnResize is called at least once before
the window is first drawn, to set up scrollbar capacities, etc

See: d3c673e2
3 months ago
Damian Laczak 2aa574a48f Fix #10983: [AdminPort] Correct order of messages
(cherry picked from commit 49c3215751)
3 months ago
Peter Nelson 5c35a87ed7 Fix a258833: Don't invalidate station list on vehicle load/unload. (#12112)
a258833 fixed a bug but as a result causes the station list to be rebuilt every time (once per game tick) a vehicle loads/unloads.

Instead just mark the window for redraw.

(cherry picked from commit f20d241e81)
3 months ago
Koen Bussemaker 69af0e8f26 Codechange: Skip non-water water region patches in neigbor search
(cherry picked from commit 8a1cea2ab6)
3 months ago
Jonathan G Rennison a98a56669b Merge branch 'master' into jgrpp
# Conflicts:
#	regression/regression/result.txt
#	src/autoreplace_cmd.cpp
#	src/industry_gui.cpp
#	src/landscape.cpp
#	src/network/network_content.cpp
#	src/newgrf_roadstop.cpp
#	src/pathfinder/yapf/yapf_ship.cpp
#	src/road_gui.cpp
#	src/saveload/ai_sl.cpp
#	src/saveload/saveload.h
#	src/saveload/vehicle_sl.cpp
#	src/station.cpp
#	src/station_gui.cpp
#	src/video/cocoa/cocoa_ogl.h
#	src/video/sdl2_opengl_v.h
#	src/video/video_driver.hpp
#	src/video/win32_v.h
#	src/widget_type.h
#	src/widgets/dropdown.cpp
#	src/widgets/dropdown_type.h
#	src/window.cpp
3 months ago
Jonathan G Rennison 4097fc4e33 Saveload: Enable upstream mode SlAutolength
Use non-upstream implementation for SlCopyBytes
3 months ago
Jonathan G Rennison 8a85055c68 Saveload: Use std::span for autosave temporary buffer view 3 months ago
translators f1bf39f38b Update: Translations from eints
english (au): 12 changes by krysclarke
chinese (simplified): 84 changes by WenSimEHRP
russian: 13 changes by Ln-Wolf
finnish: 12 changes by hpiirai
ukrainian: 12 changes by StepanIvasyn
latvian: 19 changes by lexuslatvia
french: 1 change by ZarTek-Creole
portuguese (brazilian): 169 changes by pasantoro
polish: 12 changes by pAter-exe
3 months ago
Jonathan G Rennison 75dd135e8d Merge tag '14.0-beta3' into jgrpp
# Conflicts:
#	regression/regression/result.txt
#	src/industrytype.h
#	src/network/core/config.h
#	src/network/core/network_game_info.cpp
#	src/network/core/network_game_info.h
#	src/network/core/packet.cpp
#	src/network/core/packet.h
#	src/network/core/tcp.cpp
#	src/network/core/tcp.h
#	src/network/core/tcp_admin.cpp
#	src/network/core/tcp_content.cpp
#	src/network/core/tcp_coordinator.cpp
#	src/network/core/tcp_game.cpp
#	src/network/core/tcp_game.h
#	src/network/core/tcp_turn.cpp
#	src/network/core/udp.cpp
#	src/network/core/udp.h
#	src/network/network_admin.cpp
#	src/network/network_client.cpp
#	src/network/network_client.h
#	src/network/network_command.cpp
#	src/network/network_content.cpp
#	src/network/network_internal.h
#	src/network/network_query.cpp
#	src/network/network_query.h
#	src/network/network_server.cpp
#	src/network/network_server.h
#	src/network/network_turn.cpp
#	src/network/network_udp.cpp
#	src/rail_gui.cpp
#	src/road_gui.cpp
3 months ago
FedelloKirfed 2e3e93fe32 Update Galician Translations
(cherry picked from commit 10596e84cf)

#653
3 months ago
Jonathan G Rennison 1040f9612f Saveload: Tag duplicate detection in SlTableHeader as maybe unused 3 months ago
Jonathan G Rennison a874bb70b1 Remove unused saveload desc in cheats_sl.cpp 3 months ago
Jonathan G Rennison 6ab1f9a416 Use CargoID instead of CargoSpec in town_production_cargoes 3 months ago
Jonathan G Rennison 19e4895ffd Add cargo mask of town production cargoes
Use for all non-GUI cases (where display sort order is not required)
3 months ago
Jonathan G Rennison 8581808952 Merge tag '14.0-beta2' into jgrpp
# Conflicts:
#	CMakeLists.txt
#	src/cargotype.cpp
#	src/console_cmds.cpp
#	src/graph_gui.cpp
#	src/industry_cmd.cpp
#	src/industrytype.h
#	src/misc_gui.cpp
#	src/network/network_client.cpp
#	src/newgrf.cpp
#	src/newgrf_town.cpp
#	src/object_cmd.cpp
#	src/openttd.cpp
#	src/pathfinder/water_regions.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload.h
#	src/table/build_industry.h
#	src/table/engines.h
#	src/vehicle.cpp
#	src/vehicle_cmd.cpp
#	src/vehicle_gui.cpp
3 months ago
Jonathan G Rennison c6893388ab Fix order flags collision in OT_GOTO_DEPOT
Move depot wait is timetabled flag to xflags
3 months ago
Jonathan G Rennison 821c5970db Disallow unbunching if auto-separation, scheduled dispatch or per-cargo full load 3 months ago
Jonathan G Rennison f9e8a49df0 Auto-separation: Do not allow enabling if unbunching is present
Check for scheduled dispatch/unbunching in enable command
Show in button tooltip
3 months ago
Jonathan G Rennison df2d4bd83c Scheduled dispatch: Do not allow enabling if unbunching is present
Check for auto-separation/unbunching in enable command
Show in enable button tooltip and summary text
3 months ago
Jonathan G Rennison 0fd3f93310 Debug: Add unbunching state to debug info 3 months ago
Jonathan G Rennison 8f9783e7d3 Debug: Adjust vehicle debug text order/indentation 3 months ago
Jonathan G Rennison fdd666f66a Merge tag '14.0-beta1' into jgrpp
# Conflicts:
#	src/3rdparty/squirrel/squirrel/sqcompiler.cpp
#	src/aircraft.h
#	src/animated_tile.h
#	src/base_consist.h
#	src/cargotype.h
#	src/company_gui.cpp
#	src/console_cmds.cpp
#	src/core/overflowsafe_type.hpp
#	src/engine_gui.cpp
#	src/industry_gui.cpp
#	src/lang/english.txt
#	src/music/extmidi.cpp
#	src/network/core/network_game_info.cpp
#	src/network/network_server.cpp
#	src/newgrf.cpp
#	src/newgrf_industries.cpp
#	src/order_base.h
#	src/order_cmd.cpp
#	src/order_gui.cpp
#	src/order_type.h
#	src/os/macosx/misc_osx.cpp
#	src/os/windows/crashlog_win.cpp
#	src/rail_gui.cpp
#	src/rail_gui.h
#	src/roadveh.h
#	src/roadveh_cmd.cpp
#	src/saveload/afterload.cpp
#	src/saveload/company_sl.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload.h
#	src/saveload/saveload_error.hpp
#	src/script/api/script_town.cpp
#	src/settingsgen/settingsgen.cpp
#	src/ship.h
#	src/ship_cmd.cpp
#	src/smallmap_gui.cpp
#	src/spritecache.cpp
#	src/stdafx.h
#	src/strgen/strgen.cpp
#	src/strgen/strgen.h
#	src/table/settings/script_settings.ini
#	src/timetable_cmd.cpp
#	src/timetable_gui.cpp
#	src/town.h
#	src/town_cmd.cpp
#	src/town_cmd.h
#	src/town_gui.cpp
#	src/train.h
#	src/train_cmd.cpp
#	src/tree_cmd.cpp
#	src/vehicle.cpp
#	src/vehicle_base.h
#	src/vehicle_cmd.cpp
#	src/vehicle_gui.cpp
#	src/vehiclelist.cpp
#	src/waypoint_base.h
#	src/widget.cpp
3 months ago
Rubidium a4d4301a0c Codechange: We are heading to 15 3 months ago
translators 73bed054b8 Update: Translations from eints
english (au): 2 changes by krysclarke
korean: 5 changes by telk5093
russian: 2 changes by Ln-Wolf
tamil: 45 changes by Aswn
portuguese: 1 change by azulcosta
hindi: 85 changes by NisheshTyagi
portuguese (brazilian): 119 changes by pasantoro
3 months ago
Rubidium 15be383b93 Fix a253205: remove (now) unused currency separator 3 months ago
Tyler Trahan 4f1bc39bf7
Change: Show speed before destination in vehicle status bar (#11932) 3 months ago
Tyler Trahan 87a80c7ff2
Change: When adding orders, Ctrl+Click on a depot to unbunch, instead of service if required (#12023) 3 months ago
frosch 555a37930b
Fix: Shadows of individual character glyphs could be drawn over other characters (#12115) 3 months ago
Damian Laczak 49c3215751 Fix #10983: [AdminPort] Correct order of messages 3 months ago
Peter Nelson f20d241e81
Fix a258833: Don't invalidate station list on vehicle load/unload. (#12112)
a258833 fixed a bug but as a result causes the station list to be rebuilt every time (once per game tick) a vehicle loads/unloads.

Instead just mark the window for redraw.
3 months ago
Koen Bussemaker 8a1cea2ab6 Codechange: Skip non-water water region patches in neigbor search 3 months ago
Rubidium 360fe8b0b6 Fix a253205: division by zero when attempting to format some short currencies 3 months ago
Jonathan G Rennison f0fdc882ea Fix town action description texts in wallclock mode 3 months ago
translators 03e3553230 Update: Translations from eints
estonian: 15 changes by RM87
portuguese (brazilian): 42 changes by pasantoro
polish: 30 changes by pAter-exe
3 months ago
Peter Nelson 2ecc3c90f7
Change: Improve performance of finding free pool slots. (#12055)
Add a bitmap of used pool slots which allows finding a free pool slot without having to check if each index is already used or not.

Loosely based on a JGRPP patch.
3 months ago
Rubidium 1aa9a5c0ab Update: Use proper number formats and abbreviations for Chinese, Japanese, Korean and German 3 months ago
Rubidium 59f56941e5 Update: Number format configuration based on old digitsep and STR_CURRENCY_SHORT_* values 3 months ago
Rubidium 7e2eefb91f Cleanup: Remove digit group separators from strgen and languages 3 months ago
Rubidium b741b2ba6f Feature: Fully user configurable number format and abbreviations 3 months ago
Rubidium 609d0071d5 Change: Remove saving of digit group and decimal separator configurations from the savegame 3 months ago
Rubidium e67fc33172 Codechange: Add support for NULL strings in SaveLoadCompat 3 months ago
Rubidium 9f8fd80112 Feature: Fully customisable number abbreviations per translation 3 months ago
Rubidium a253205b93 Feature: Fully customisable number format per translation 3 months ago
Rubidium 819c6c756e Codechange: Add support for number format and abbreviations pragmas/attributes to strgen 3 months ago
Rubidium fca8166087 Codechange: Simplify FormatNumber by moving out zero fill and decimal support 3 months ago
Rubidium a44bd81280 Codechange: Move determining the decimal separator to a separate function 3 months ago
Rubidium f0c50ad529 Codechange: Add function to get the power of ten for a given number 3 months ago
Jonathan G Rennison d4d6ad2dfc Debug: Include various speed/acceleration values in vehicle debug window 3 months ago
Jonathan G Rennison 94d326b1e0 Iconv: Ensure that OTTD2FS/FS2OTTD are thread-safe 3 months ago
Jonathan G Rennison 838b166726 Merge branch 'master' into jgrpp
# Conflicts:
#	src/cheat_gui.cpp
#	src/command.cpp
#	src/command_func.h
#	src/company_base.h
#	src/debug.cpp
#	src/debug.h
#	src/economy.cpp
#	src/engine_type.h
#	src/graph_gui.cpp
#	src/misc_cmd.cpp
#	src/misc_cmd.h
#	src/network/core/os_abstraction.cpp
#	src/openttd.cpp
#	src/saveload/saveload.cpp
#	src/saveload/saveload.h
#	src/settings_type.h
#	src/ship_cmd.cpp
#	src/stdafx.h
#	src/tests/bitmath_func.cpp
#	src/town_cmd.cpp
#	src/town_gui.cpp
3 months ago
Jonathan G Rennison 074447138c Add method for whether calendar is frozen 3 months ago
rubidium42 8bccb5805a
Fix 0ca4b4e: Ctrl+Click style inconsistency in base language (#12099) 3 months ago
Jonathan G Rennison 7938844d1d Vehicles age at calendar speed in wallclock mode 3 months ago
Jonathan G Rennison b940fa9466 Do not scale shown running costs by the day length factor
Show in original years
3 months ago
translators bb2446c058 Update: Translations from eints
welsh: 5 changes by Ansbaradigeidfran
estonian: 108 changes by siimsoni, 50 changes by RM87
luxembourgish: 276 changes by phreeze83
hungarian: 81 changes by PstasDev
indonesian: 6 changes by tsaqibfs
italian: 191 changes by AlphaJack
bulgarian: 118 changes by lamarin1
ukrainian: 16 changes by StepanIvasyn
tamil: 408 changes by Aswn
turkish: 43 changes by metsysma
esperanto: 103 changes by JadedCtrl
portuguese (brazilian): 57 changes by pasantoro
polish: 61 changes by pAter-exe
3 months ago
Jonathan G Rennison 3ec77973df Fix setting callbacks when using setting_newgame console command
See: https://github.com/OpenTTD/OpenTTD/issues/12059
3 months ago
Jonathan G Rennison bd74340416 Disable settings inapplicable for the current timekeeping mode 3 months ago
Jonathan G Rennison 75645b8563 Allow disabling a setting via guiproc 3 months ago
Jonathan G Rennison c45bfccc2e Always use 27ms/tick in wallclock timing mode 3 months ago
Jonathan G Rennison 450c6b76d6 Ensure tile loop counts and cargo scalers updated when day length changed 3 months ago
Jonathan G Rennison 86a6f63e2f Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/ci-build.yml
#	.github/workflows/codeql.yml
#	.github/workflows/commit-checker.yml
#	.github/workflows/release-linux-legacy.yml
#	.github/workflows/release-linux.yml
#	.github/workflows/release-macos.yml
#	.github/workflows/release-windows-store.yml
#	.github/workflows/release-windows.yml
#	.github/workflows/upload-cdn.yml
#	.github/workflows/upload-gog.yml
#	.github/workflows/upload-steam.yml
#	src/console_cmds.cpp
#	src/core/math_func.hpp
#	src/fios.cpp
#	src/fios.h
#	src/intro_gui.cpp
#	src/network/network_server.cpp
#	src/openttd.cpp
#	src/settings.cpp
#	src/settings_gui.cpp
#	src/settings_internal.h
#	src/settings_table.cpp
#	src/settings_type.h
#	src/table/settings.h.preamble
#	src/table/settings/company_settings.ini
#	src/table/settings/currency_settings.ini
#	src/table/settings/difficulty_settings.ini
#	src/table/settings/economy_settings.ini
#	src/table/settings/game_settings.ini
#	src/table/settings/gui_settings.ini
#	src/table/settings/linkgraph_settings.ini
#	src/table/settings/locale_settings.ini
#	src/table/settings/misc_settings.ini
#	src/table/settings/multimedia_settings.ini
#	src/table/settings/network_private_settings.ini
#	src/table/settings/network_settings.ini
#	src/table/settings/news_display_settings.ini
#	src/table/settings/old_gameopt_settings.ini
#	src/table/settings/pathfinding_settings.ini
#	src/table/settings/script_settings.ini
#	src/table/settings/win32_settings.ini
#	src/table/settings/window_settings.ini
#	src/table/settings/world_settings.ini
#	src/viewport.cpp
#	src/viewport_func.h
#	src/window.cpp
3 months ago
Peter Nelson adb796a21a Change: Show 6 or 2 orientation buttons in NewGRF road stop picker as appropriate.
This replaces the normal method of masking unusable buttons.
3 months ago
Peter Nelson 8c22690ce1 Codechange: Update window's widget lookup map when switching displayed plane. 3 months ago
Jonathan G Rennison cbde4b00ab Crashlog: Change ordering to put settings and command log before gamelog 3 months ago
Jonathan G Rennison a48e15dce0 Add wallclock time settings 3 months ago
Jonathan G Rennison 58f8971f17 Add console command to get version information
See: #652
3 months ago
translators 3d591c2094 Update: Translations from eints
swedish: 1 change by SpamixOfficial
welsh: 280 changes by Ansbaradigeidfran
vietnamese: 245 changes by myquartz
estonian: 1 change by siimsoni
czech: 64 changes by LubosKolouch, 29 changes by adamek0202
arabic (egypt): 17 changes by AviationGamerX
luxembourgish: 247 changes by phreeze83
hungarian: 9 changes by nemesbala
indonesian: 21 changes by tsaqibfs, 19 changes by K4smun1
italian: 13 changes by AlphaJack
hebrew: 20 changes by Boltyansky
bulgarian: 107 changes by lamarin1
finnish: 4 changes by lanurmi
ukrainian: 18 changes by StepanIvasyn
catalan: 1 change by arnaullv
turkish: 120 changes by metsysma, 43 changes by EndChapter
danish: 23 changes by mamure, 23 changes by bscargo
dutch: 1 change by Jaws3rd
french: 1 change by Lishouuu
portuguese (brazilian): 362 changes by pasantoro
polish: 60 changes by pAter-exe
3 months ago