Commit Graph

40428 Commits (9ee3bf7fcfd7e4787fab5d681375e0424f89f62b)

Author SHA1 Message Date
Jonathan G Rennison a8d5e56696 Crashlog: Only output dump files for MSVC builds 2 years ago
PeterN f279fc5772
Fix: DrawStringMultiLine() could overdraw (#10014)
This function did not take the line height into account when checking text will fit before the bottom bounds.
2 years ago
Jonathan G Rennison ad9d593a51 Fix assertion failure setting player face for new company in multiplayer
See: https://github.com/OpenTTD/OpenTTD/issues/10016
2 years ago
Jonathan G Rennison 22b2ce0bc6 Fix incorrect infrastructure totals when overbuilding bay road stop
With different road/tram type

See: https://github.com/OpenTTD/OpenTTD/issues/10011
2 years ago
Jonathan G Rennison 7a4b0417b0 Codechange: Fix unnecessary string reallocation in IConsoleLine constructor 2 years ago
Jonathan G Rennison 3a313324dc Fix #10010: Memory leak in IConsolePrint in non-dedicated case 2 years ago
Jonathan G Rennison f4f221b1e0 Fix crash which could occur when adding plans in single player 2 years ago
Jonathan G Rennison 751e0a2d9e Merge branch 'master' into jgrpp 2 years ago
Jonathan G Rennison 62ffa130c0 Fix #420: Wrong string code in STR_NEWS_VEHICLE_AUTORENEW_FAILED 2 years ago
translators 0355299639 Update: Translations from eints
dutch: 36 changes by Bouke
2 years ago
Jonathan G Rennison 7c4c75d181 Add tracerestrict conditional on direction of order target from signal 2 years ago
Jonathan G Rennison 4e368beaca Fix #417: Wrong window caption for cargo payment graph in average speed mode 2 years ago
Jonathan G Rennison da3b1b9c32 Template replacement: Show warning if chain not compatible with any rail type
See: #419
2 years ago
Jonathan G Rennison 764a67b168 Fix wrong header comment in CallVehicleTicks 2 years ago
Jonathan G Rennison 33e3e571d3 Return specific error when wagon purchase fails due to wrong depot type
See: #419
2 years ago
translators 0c848a9b3b Update: Translations from eints
dutch: 2 changes by Bouke
2 years ago
Jonathan G Rennison a97d5cb333 Fix incorrect template replacement error message when chain not buildable
And no specific error returned

See: #419
2 years ago
Bouke Haarsma 18c210b013 Fix: title positioning on HiDPI displays 2 years ago
Jonathan G Rennison 5a39734a1c Allow station cargo histories to record larger values than 64k
See: #414
2 years ago
Jonathan G Rennison 1d93cd59e7 Add utility function for integer dynamic range extension encoding 2 years ago
Peter Nelson 2d2a5dd966 Fix: Change duration of news window scroll depending on GUI zoom. 2 years ago
Peter Nelson 8b989d4999 Fix: Update news window viewport if GUI zoom is changed. 2 years ago
Jonathan G Rennison 1e7ca9f71a Merge branch 'master' into jgrpp 2 years ago
Jonathan G Rennison 4b9d5a437f Add GS methods to set inflation factors
See: #415
2 years ago
Jonathan G Rennison 81291c4ffc Add AI/GS methods to get inflation factors
See: #415
2 years ago
translators 57fa8690df Update: Translations from eints
dutch: 1 change by Bouke
2 years ago
Jonathan G Rennison 4049cb1407 MacOS: Use _exit instead of exit on execvp failure in crashlog 2 years ago
Jonathan G Rennison e64427d034 Crashlog: Unix: Add BFD inline info support 2 years ago
Jonathan G Rennison ad1e4ca334 Crashlog: Windows: Add BFD inline info support 2 years ago
Patric Stout 8ac0ab47b0
Update: to all the friends we have lost and those we have gained (#10000) 2 years ago
Jonathan G Rennison 3d39e439f6 Unix: Use _exit instead of exit on execvp failure in crashlog 2 years ago
Jonathan G Rennison 0811990d4a Unix: Try using addr2line for crash log backtrace symbol resolution 2 years ago
Jonathan G Rennison e3896b69d3 Fix #416: Division by zero for trains of 0 mass
In maximum achievable speed estimator
2 years ago
frosch 54ac304828
Fix: [NewGRF] Upper 16 random bits should be the same for all station tiles in callback 140. (#9992) 2 years ago
Jonathan G Rennison 0400f06d9e Debug: Show industry GRF local ID in debug window 2 years ago
Jonathan G Rennison 48d0a0e15c Fix #413: Truncation of expense type names in finance windows 2 years ago
Jonathan G Rennison 3d857333c8 Reduce delays with company bankrupcty/sale processing at high day lengths 2 years ago
Jonathan G Rennison 23fa7cd239 Improve handling of company sales
Avoid conflicts between bankruptcy and manual company sale paths
2 years ago
Jonathan G Rennison 142a5a95ec Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/release.yml
#	src/goal_cmd.h
#	src/industry_cmd.cpp
2 years ago
dP c839950791
Cleanup: Remove duplicate command_type.h include (#9986) 2 years ago
frosch 9529703cab
Codechange: When checking industry placement conditions, perform cheap checks first. (#9987)
1. Built-in checks on industry level.
2. Built-in checks on industry tiles.
3. NewGRF-defined checks on industry level.
4. NewGRF-defined checks on industry tiles.
2 years ago
Loïc Guilloux 31668b8f94
Fix #9914, 86818e5: prevent more useless pathfinder run for blocked vehicles (#9917) 2 years ago
Jonathan G Rennison dc5e073379 Merge branch 'master' into jgrpp 2 years ago
Tyler Trahan 788b06fe0f
Change: New player companies use favorite manager face, if saved (#9895) 2 years ago
Joel-Milligan 3937953f72
Fix #9363: Rebuild client list on reinit event (#9929) 2 years ago
dP ca23e8abcf Add step console command to advance n ticks
Cherry-picked from https://github.com/citymania-org/cmclient
Commit: 5ce2d21223a96934a83b8da43434c7a81f001ef0
2 years ago
Jonathan G Rennison 50965bbce7 Add road stops flag to disable auto road connections
Bump road stops version
2 years ago
Jonathan G Rennison 2a41854f6b VarAction2: Infer ternary add result is bool if both branches are bool 2 years ago
Jonathan G Rennison 8c94ba0dc8 VarAction2: Infer that multiplying two bools results in bool 2 years ago
Jonathan G Rennison 7c78b22c48 Show failure reason in message box when network savegame load fails
See: #412
2 years ago
Jonathan G Rennison edd8b29794 Don't trigger signal state/style desync message in GM_MENU mode
This occurs when loading a network savegame fails and the menu
game is reloaded
2 years ago
Niels Martin Hansen 5a0dd7e322 Fix #9971: Don't assert that time moves forward 2 years ago
Jonathan G Rennison 22a1fdff5e Log error message to console in LoadWithFilter exception handler
See: #412
2 years ago
Niels Martin Hansen 4253db28fa Fix #9972: Add some missing fill/resize flags on Framerate window widgets 2 years ago
translators db378e746b Update: Translations from eints
korean: 2 changes by telk5093
2 years ago
Jonathan G Rennison 1d08572cfa Merge branch 'master' into jgrpp
# Conflicts:
#	src/lang/english_AU.txt
#	src/openttd.cpp
#	src/viewport_sprite_sorter_sse4.cpp
2 years ago
Niels Martin Hansen e6aab701c9 Fix #9977: Use a deque rather than linked list for console buffer 2 years ago
Niels Martin Hansen aaab0610eb Fix: Only apply debuglevel changes after successful parse 2 years ago
Niels Martin Hansen c6953f13e4 Fix #9940: Print debuglevel parse errors to console when changed from console 2 years ago
translators dcdc8d187c Update: Translations from eints
dutch: 1 change by Bouke
2 years ago
frosch acf9d786f1
Fix: [NewGRF] Default value of RailVehicleInfo::railveh_type was inconsistent with other default properties. (#9967)
If a NewGRF assigned neither "power" nor "dual-headed" properties,
then "railveh_type" defaulted to "singlehead-engine", while "power=0" said "it's a wagon".
2 years ago
glx22 bba6ad1f4e Fix #9935: Use more selectivity when building SSE specific code 2 years ago
translators e9507e7ffa Update: Translations from eints
latvian: 31 changes by lexuslatvia
2 years ago
Jonathan G Rennison 602ac717aa Initial support for DSE and jumping over procedures with child groups 2 years ago
translators 04911822c1 Update: Translations from eints
indonesian: 1 change by K4smun1
2 years ago
Jonathan G Rennison 916441d943 VarAction2: Avoid turning skip on zero/LSB set sequences into jumps 2 years ago
Jonathan G Rennison 0bec49fa56 Skip sound effects handling earlier if effects volume is 0 2 years ago
Jonathan G Rennison 4fd8634ff9 VarAction2: Remove trivially redundant special stores 2 years ago
glx22 e3968cdf65 Fix #9974, aa5a8fe: strftime buffer maxsize is off by one
strftime() return value doesn't count NULL character, but buffer size must include it.
2 years ago
Jonathan G Rennison d9aa2d6138 VarAction2: Extend group cast to bool range elision
Handle opposite arrangement of range and default group
2 years ago
Jonathan G Rennison df6b9d355f VarAction2: Simplify store, load with bool/invert, ternary sequence in DSE 2 years ago
translators 882b8f45d9 Update: Translations from eints
hungarian: 31 changes by andrejmoltok
romanian: 27 changes by andrejmoltok
2 years ago
Jonathan G Rennison 173f867e1a VarAction2: Save calculated_result in shadow group struct 2 years ago
Jonathan G Rennison 14de8c7f34 VarAction2: Add quick exit case to last-level callback groups if possible 2 years ago
Jonathan G Rennison 35063b2176 VarAction2: Ensure group pruning can't break var 1C via random groups 2 years ago
Jonathan G Rennison 3676b0912d VarAction2: Fix inference handling when pruning ops prior to RST 2 years ago
Jonathan G Rennison c60e3fed99 VarAction2: Do not re-assign error group
When pruning ranges of group with constant result
2 years ago
Jonathan G Rennison 0bcdaba0f9 VarAction2: Add constructor for AnalyseCallbackOperation 2 years ago
Jonathan G Rennison a0c894d067 Debug: Add a visual indicator in indent for var 0x7E procedure calls 2 years ago
translators 417f9bb48d Update: Translations from eints
french: 1 change by glx22
hindi: 18 changes by baijuch
2 years ago
Jonathan G Rennison 680e074a5f Debug: Fix sprite dumping of top level default group 2 years ago
Jonathan G Rennison 8688840e24 Viewport route step markers are now variable size to match font/text
See: #410
2 years ago
Jonathan G Rennison 8c0eca28a8 Recalculated route step sprite sizes when changing zoom levels 2 years ago
translators 88a046a76e Update: Translations from eints
korean: 7 changes by telk5093
2 years ago
Jonathan G Rennison 84da7ad7b6 Add setting to show group hierarchy in vehicle names
See: #405
2 years ago
Jonathan G Rennison e335c86e77 VarAction2: Elide group ranges as cast to bool when result is already bool 2 years ago
Jonathan G Rennison b04d1295cd VarAction2: Infer that unsigned mod 2 results in 0 or 1 2 years ago
Jonathan G Rennison ad00f5032a Add a setting to show the introduction year for train wagons 2 years ago
Jonathan G Rennison ad9e1a8fb3 Increase value of MAX_SL_OPS constant 2 years ago
Jonathan G Rennison e584ef7bba Move NewGRF analysis to separate files 2 years ago
Jonathan G Rennison 9c18835bd0 Move ProcessDeterministicSpriteGroupRanges into newgrf.cpp 2 years ago
Jonathan G Rennison 0f8dc86120 Remove setting string now unused since 309f1b47 2 years ago
Jonathan G Rennison 309f1b47d2 Only apply sprite_zoom_min setting when suitable zoom levels are available
Only discard sprite zoom levels when a suitable higher zoom level is
defined in the same colour mode

See: https://github.com/OpenTTD/OpenTTD/issues/9804
2 years ago
Jonathan G Rennison 27316f70ec Create enum for sprite cache control flag bits 2 years ago
Jonathan G Rennison 4e5e85e7aa Debug: Allow inspecting industry specs before industry is built
Add debug box to industry chains window
2 years ago
Jonathan G Rennison c58b94c376 VarAction2: DSE: Allow setting skip on zero flag on skippable procedures 2 years ago
Jonathan G Rennison 4601a1bfc6 Move NewGRF optimiser functions into a separate file
Create a new header for shared definitions with newgrf.cpp
2 years ago
Jonathan G Rennison 3d59c961a6 VarAction2: Avoid group variable tracking coupling through shared procs
Output dependencies on a procedure shouldn't propagate into input
dependencies on unrelated call sites in different groups
2 years ago
Jonathan G Rennison 00e32162a1 VarAction2: Allow DSE to remove procedure calls 2 years ago
Jonathan G Rennison 30ecdfe140 VarAction2: Allow jumping over constant stores to special registers
Insert suitable store(s) after the end block
2 years ago
Jonathan G Rennison 3a8bd7a589 VarAction2: Allow jumps to skip over procedure calls if possible 2 years ago
Jonathan G Rennison 9ed5b6e65c Debug: Change sprite group indentation handling 2 years ago
Jonathan G Rennison 41f2e92f5c VarAction2: Add a NOOP operator 2 years ago
translators be352ce1b6 Update: Translations from eints
catalan: 11 changes by J0anJosep
2 years ago
Jonathan G Rennison e143ab06d8 VarAction2: Track which temp stores may be overwritten by procedures
Instead of treating procedures as an unpredictable store
2 years ago
Jonathan G Rennison 06cc71b6c5 VarAction2: Mark suitable AND ops as jump insertion candidates 2 years ago
translators eb805b77b7 Update: Translations from eints
german: 1 change by SecretIdetity
2 years ago
Jonathan G Rennison aa49e17e39 Remove road vehicles during load which are uncorrectably invalid 2 years ago
Jonathan G Rennison bf618a3584 Debug: Add more stats to dump map and veh stats console commands 2 years ago
SamuXarick 374f0c7d11 Fix 6fe445e: Removing rail station parts without ctrl pressed was also removing tracks
The behaviour of holding ctrl key is swapped
2 years ago
Jonathan G Rennison 613c90e78f Fix GetClosestIndustry with invalid industry type when using cache 2 years ago
translators 6893135fef Update: Translations from eints
english (au): 536 changes by krysclarke
2 years ago
Jonathan G Rennison bc920df63a Fix excessive braking for slopes with realistic braking
Unit conversion issue between potential and kinetic energies
2 years ago
translators 5a404a17ee Update: Translations from eints
korean: 1 change by telk5093
polish: 1 change by pAter-exe
2 years ago
translators 6b4fd01eeb Update: Translations from eints
italian: 1 change by Rivarossi
2 years ago
Jonathan G Rennison 0bddf96f7f VarAction2: Set variable for ABS op to avoid unused read from var 0 2 years ago
Jonathan G Rennison dc69957dcc VarAction2: Cache industry distances in CBID_INDUSTRY_LOCATION 2 years ago
Jonathan G Rennison 0e1e892ca8 VarAction2: Use masking for sub-parts of industry var 67
Ensure that distance and count can't overflow on very large maps
2 years ago
Jonathan G Rennison 0a99440166 Debug: Always use head for vehicle debug window name in caption 2 years ago
translators b7462934e2 Update: Translations from eints
dutch: 1 change by Afoklala
2 years ago
Jonathan G Rennison dbc55274e2 Debug: Show callback ID names in sprite dump 2 years ago
Jonathan G Rennison 7af568f0f0 VarAction2: Handle case where expensive vars are only conditionally read
Within a JZ_LV and in prior DSGAF_SKIP_ON_ZERO op
2 years ago
Jonathan G Rennison 9a4c31b0da VarAction2: Add last_value variants of JZ/JNZ ops 2 years ago
Jonathan G Rennison cbc6199542 VarAction2: Add a JNZ op analogous to JZ for OR ops 2 years ago
Jonathan G Rennison 5ec802a3d4 VarAction2: Allow substituting perm store loads through temp store 2 years ago
Jonathan G Rennison cbabbb6db6 Fix train braking behaviour when lookahead is aspect limited
When lookahead end is within the reservation end
2 years ago
Jonathan G Rennison 71b6d7a502 Merge branch 'master' into jgrpp
# Conflicts:
#	src/lang/arabic_egypt.txt
#	src/station_cmd.cpp
#	src/station_cmd.h
#	src/timetable_cmd.cpp
#	src/train_cmd.cpp
2 years ago
translators ccb9d99880 Update: Translations from eints
arabic (egypt): 13 changes by AviationGamerX
persian: 16 changes by pooyana84
finnish: 33 changes by lanurmi
2 years ago
translators e3759931e7 Update: Translations from eints
english (us): 1 change by 2TallTyler
arabic (egypt): 62 changes by AviationGamerX
turkish: 1 change by ahmetlii
2 years ago
translators 97d79c8e52 Update: Translations from eints
spanish (mexican): 1 change by absay
catalan: 1 change by J0anJosep
2 years ago
Jonathan G Rennison c6817fab6e Don't use implicit orders for conditional order waiting loops
Fixes vehicles never leaving when the only order is an implicit order
(because vehicles were released with no orders)
2 years ago
translators d1d7e47896 Update: Translations from eints
russian: 1 change by Ln-Wolf
portuguese: 1 change by azulcosta
2 years ago
Jonathan G Rennison 70ef4c6d90
Merge pull request #407 from auge8472/lang-de
Translated most of the missing strings for German language, stand jgrpp 0.48.0
2 years ago
translators 77a8e3b649 Update: Translations from eints
polish: 1 change by pAter-exe
2 years ago
Heiko August 12aa409332 Change: translated most of the missing strings for German language 2 years ago
Nicolas Chappe 6d154e72dd Fix #8584: Vehicles with shared orders getting invalid or unexpected start dates 2 years ago
translators 67608350b6 Update: Translations from eints
finnish: 45 changes by lanurmi
portuguese (brazilian): 29 changes by rodigu
2 years ago
Jonathan G Rennison 67331fe946
Fix #9951: Scenario editor random industries button and persistent storage (#9952)
BasePersistentStorageArray::SwitchMode was not called
2 years ago
translators 8f772352ce Update: Translations from eints
italian: 1 change by Rivarossi
2 years ago
translators b199779ad4 Update: Translations from eints
chinese (simplified): 26 changes by ZZY2357
korean: 1 change by telk5093
2 years ago
Jonathan G Rennison 0735c4b851 Ensure that disabling infra sharing can't break realistic braking reservations 2 years ago
Jonathan G Rennison 856cea576f Fix infrastructure sharing checks not being executed when disabling 2 years ago
Jonathan G Rennison 27d4900fde Fix text colour for infrastructure sharing error messages 2 years ago
Jonathan G Rennison dc01d0cac4 Handle case where deleting a company removes part of a train's reservation
When realistic braking is enabled, which would ordinarily prevent
the track from being removed
2 years ago
Jonathan G Rennison ed737e1a8f VarAction2: Do not remove redundant adjusts when this would break var 1C 2 years ago
Jonathan G Rennison b9c22a0b9e VarAction2: Do not prune groups when this would break var 1C 2 years ago
Jonathan G Rennison ae746a1af4 VarAction2: Fix tracking of whether a sprite group needs var 1C 2 years ago
Jonathan G Rennison e497f0e78d Fix crash in tooltip window UpdateWidgetSize due to not using saved string 2 years ago
Jonathan G Rennison cd4a9fba68 Fix viewport map mode bridges/tunnels not appearing dotted at high zoom 2 years ago
Patric Stout 77a85e9b4c
Fix: CmdSetAutoReplace didn't validate group type and engine type match (#9950)
Basically, you could setup an auto-replace in a group for trains
to replace a ship with another ship.

Most of the code is surprisingly okay with this, it is only the
group statistics that doesn't like this.
2 years ago