Commit Graph

40428 Commits (9ee3bf7fcfd7e4787fab5d681375e0424f89f62b)

Author SHA1 Message Date
Jonathan G Rennison bb9b6a8ca0 Fix hang when tram turned around against underside of tram custom bridge head 2 years ago
PeterN 69527abb6f
Fix 9aef7b8c: Don't dispatch hover event if already hovering. (#10042)
This fixes the timed tooltip window being (invisibly) destroyed and
reconstructed every frame.

This also affects the unused OnHover() window event.
2 years ago
translators 1f04cc62d9 Update: Translations from eints
welsh: 8 changes by Osian
korean: 6 changes by telk5093
2 years ago
Jonathan G Rennison b3a8dd44e4 Fix crash when removing routing restriction with reserve through from tunnel/bridge 2 years ago
Jonathan G Rennison ac1071f4fc Merge branch 'master' into jgrpp
# Conflicts:
#	src/station_cmd.cpp
#	src/vehicle_gui.cpp
2 years ago
PeterN 607ef09fa5
Fix: File list mouse hover behaviour. (#10040)
Hover highlight was visible even if the mouse pointer was in a different
window. Resolved by using OnMouseOver() instead of OnMouseLoop().
2 years ago
dP 548f0496a9
Change: Make _tick_counter 64bit to avoid wrapping (#10035) 2 years ago
Tyler Trahan 164ec3ac07
Fix: Disable "turn around" button for other companies' road vehicles (#10033) 2 years ago
Tyler Trahan 07443969f9 Fix ca19a0d: Network hosts also use favorite face 2 years ago
Tyler Trahan 6d84b1e108 Fix ca19a0d: Send the proper network command when loading favorite face 2 years ago
Tyler Trahan a4e00c5cb5
Fix #9989: Zero Net Profit is neither negative nor positive (#9991) 2 years ago
Jonathan G Rennison 5e413c9dcd
Fix #9804: Only apply sprite_zoom_min setting when sprites available (#9988)
Only discard sprite zoom levels when a suitable higher zoom level is
defined in the same colour mode

This is to avoid placeholder or empty sprites being used, causing
visual artefacts
2 years ago
Jonathan G Rennison 20f7ff8ac0 Codechange: Fix unnecessary string reallocation in IConsoleLine constructor 2 years ago
Jonathan G Rennison 0a7ffae0d9 Fix #10010: Memory leak in IConsolePrint in non-dedicated case 2 years ago
PeterN 0bac74ec2b
Fix #10038: Missing upper bounds check when loading custom playlists (#10039) 2 years ago
PeterN f59f0195e3
Fix: Wrong string used to determine size of zoomed out station sign. (#10036) 2 years ago
Peter Nelson fa5e2ca276 Cleanup: Tweak panel layout of Online Players window.
This ensures panel borders not hidden behind other widgets.
2 years ago
Peter Nelson 8e9ca5ebcb Fix: Online Players list mouse hover behaviour.
Hover highlight was visible even if the mouse pointer was in a different
window, and the window refreshed itself every frame if the mouse pointer
was not over its matrix widget.

Resolved by using OnMouseOver() instead of OnMouseLoop(), and only
redrawing if the hover position has changed.
2 years ago
Jonathan G Rennison 6c80944c38 VarAction2: Fix variable propagation when a group had only pending bits 2 years ago
Jonathan G Rennison f381e45d5b VarAction2: Fix DSE for non-leaf procedure groups 2 years ago
Jonathan G Rennison a58d910a0b Debug: Include cost multipliers in rail and road type debug info 2 years ago
Jonathan G Rennison 3d8187261a Debug: Include values when logging GRF base cost changes 2 years ago
Jonathan G Rennison 681b9e08f0 Fix fc5e2071: Incorrect translation string codes 2 years ago
Jonathan G Rennison 08bb440b47 Merge branch 'master' into jgrpp 2 years ago
translators 81388d9425 Update: Translations from eints
chinese (simplified): 7 changes by XiaoJi-Game
2 years ago
Jonathan G Rennison 9c255850a5 Add AI/GS method to get annual expense category value
See: #425
2 years ago
Jonathan G Rennison 2ff11017dc Fix #432: Fix false positive warning in CheckCaches with very old saves 2 years ago
Jonathan G Rennison bc3b928d34 Fix improved breakdowns being enabled after loading old/other savegame 2 years ago
Jonathan G Rennison c7e4dbf2f6 Fix displayed capacities/weights of articulated vehicles in build window
Simplify handling of multi-part capacities and refits

See: https://github.com/OpenTTD/OpenTTD/issues/9954
See: https://github.com/OpenTTD/OpenTTD/issues/10032
2 years ago
translators 0c8db77154 Update: Translations from eints
dutch: 6 changes by Afoklala
2 years ago
Jonathan G Rennison f61562efef Fix network clients setting old company settings for new companies 2 years ago
Jonathan G Rennison 175ef00985 Avoid dangling company purchase timeout when no clients connected to company 2 years ago
Jonathan G Rennison 839746d2bb Fix template train move/sell command category for build while paused 2 years ago
Jonathan G Rennison fc5e20719d Fix #423: Max TE/weight should not be shown for maglevs 2 years ago
translators b38051c9ad Update: Translations from eints
galician: 11 changes by pvillaverde
polish: 5 changes by pAter-exe
2 years ago
Jonathan G Rennison 5825fec5bf Fix #427: Recursive DoCommandP call issuing CMD_DECLINE_BUY_COMPANY
Ignore shift and pause states for CMD_DECLINE_BUY_COMPANY command
2 years ago
Jonathan G Rennison bd2593ca48 Add function to enqueue a DoCommandP call 2 years ago
Jonathan G Rennison 5cb6d2240a Add command flag to disable shift-key estimate mode in DoCommandP 2 years ago
translators 984e0b1263 Update: Translations from eints
spanish (mexican): 5 changes by absay
catalan: 6 changes by J0anJosep
2 years ago
Jonathan G Rennison ece0a43146 Merge branch 'master' into jgrpp
# Conflicts:
#	src/newgrf_station.cpp
2 years ago
Fedello 3150151aa6
[Feat] Updated Galician translations up to v0.48.2 (#428)
* [Feat] Subsidy fix

* [Feat] Updated Galician Translation 0.48.2

* [Doc] Command used to obtain translations

Co-authored-by: pvillaverde <pvillaverde@qualigy.com>
2 years ago
translators d29289addb Update: Translations from eints
english (us): 6 changes by 2TallTyler
russian: 2 changes by Ln-Wolf
portuguese: 6 changes by azulcosta
2 years ago
dP 64453cb134
Fix: Incorrect player name in online players window (#10013) 2 years ago
Andy 129979acf7
Change: 'string' is spurious in 'Filter string:' labels for filter UI widgets (#10022) 2 years ago
Andy 039f90d05f
Feature: add sticky pin to Object Selection UI panel (#10019) 2 years ago
frosch e2c46fda3f Fix: [NewGRF] Ensure that stations always have an even number of sprite layouts.
The drawing code has a special fallbacks for zero layouts, but fails hard for one layout.
(odd numbers >= 3 are weird, but do not fail as badly as 1)
2 years ago
frosch 5c66de860d Fix: [NewGRF] Result bit 0 of callback 14 was not ignored in the GUI. 2 years ago
frosch f7022925d3 Cleanup: [NewGRF] Callback 14 used a weird value for var10 in the GUI.
The value 0x2110000 probably originated from a mixup between callback 14 (sprite layout) and 24 (tile layout).
The latter does indeed use a var10 value like that.
2 years ago
Andy a06d323f03
Feature: add shade widget to Object Selection UI panel (#10020) 2 years ago
Jonathan G Rennison 143230d8f2 Allow changing road vehicle driving side when all road vehicles in depots 2 years ago
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