Peter Nelson
af6c4d50ce
Change: Tidy up coverage area label widget layout.
...
Label is now centered properly and uses standard spacing.
2 years ago
Peter Nelson
8626090b24
Codechange: Draw station acceptance text in its own widget.
2 years ago
Jonathan G Rennison
23b974fb39
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/fontcache.cpp
# src/openttd.cpp
# src/os/macosx/font_osx.cpp
# src/os/unix/font_unix.cpp
# src/os/windows/font_win32.cpp
# src/strings.cpp
2 years ago
Jonathan G Rennison
0818ce4ae7
Merge branch 'master' into jgrpp (SLV_U64_TICK_COUNTER)
...
# Conflicts:
# src/date.cpp
# src/date_func.h
# src/newgrf.cpp
# src/newgrf_animation_base.h
# src/saveload/gamelog_sl.cpp
# src/saveload/misc_sl.cpp
# src/saveload/saveload.h
# src/stdafx.h
2 years ago
translators
f011a559d0
Update: Translations from eints
...
latvian: 1 change by lexuslatvia
2 years ago
Woelfi Von Wolfhausen
462d9414d6
Better word order
2 years ago
Woelfi Von Wolfhausen
c6cb89827d
Typos
...
I went through the settings and found some more typos :)
2 years ago
Woelfi Von Wolfhausen
8184ad6427
Make small corrections regarding the orthography
...
Tippfeler behobne
2 years ago
Jonathan G Rennison
12eb23f0ab
Clear old tree counter in map array on load of old savegames
...
See: https://github.com/OpenTTD/OpenTTD/pull/10018
2 years ago
dP
30bc490292
Codechange: Don't store tree counter in the map array
...
(cherry picked from commit 6c3f351d5a4b0d19a1a265f04f44c70c24c19cd2)
See: https://github.com/OpenTTD/OpenTTD/pull/10018
2 years ago
Jonathan G Rennison
c2ede2af54
VarAction2: Allow inlining trivial procedures
2 years ago
Jonathan G Rennison
9e24414033
In ReloadNewGRFData recompute prices before reiniting windows
...
Avoid crash if land info window is open during reload
2 years ago
Jonathan G Rennison
60cc8ddf80
Fix road stops SetRoadStopAnimationFrame
2 years ago
Jonathan G Rennison
77f25a48a9
Only show/use appropriate parent or child registers in tile layout group
...
Do not use both
2 years ago
Jonathan G Rennison
73e5c57e6b
Fix 5e413c9d: Last sprite offset in GRF file was not recorded ( #10062 )
...
A line was missed when preparing PR #9988 , as this had been added
in a commit prior to the one which the PR was immediately based on
2 years ago
Bouke Haarsma
f3fd9b5895
Codechange: typo in code comment ( #10061 )
2 years ago
translators
d843c8bd48
Update: Translations from eints
...
italian: 5 changes by Rivarossi
polish: 1 change by pAter-exe
2 years ago
Jonathan G Rennison
fdf2d3dfe1
Fix vehicles with no cargo being shown with last cargo in build window
2 years ago
translators
e5203f3409
Update: Translations from eints
...
vietnamese: 7 changes by KhoiCanDev
german: 6 changes by Wuzzy2
2 years ago
TELK
e9de3e9c4d
Update: Korean translation for some route restrict
2 years ago
translators
761105aaa4
Update: Translations from eints
...
russian: 1 change by Ln-Wolf
catalan: 1 change by J0anJosep
2 years ago
Peter Nelson
b00e18fe9f
Cleanup: Remove unused GetUnicodeGlyph()
2 years ago
Peter Nelson
2cdd8b7429
Change: Separate fontcache implementations.
2 years ago
Peter Nelson
f6ad8e1c9c
Change: Rename some freetype things to fontcache.
...
The font cache supports more than just FreeType as a font provider, but still used freetype in some naming.
This now uses more suitable terms.
2 years ago
Peter Nelson
273988551d
Fix: font_win32.cpp compile failure with WITH_FREETYPE
2 years ago
PeterN
0c20a5f39f
Fix: Open scenario editor date query once. ( #10050 )
...
Clearing `_left_button_clicked` causes the button callback to be fired
constantly while the mouse button is held.
2 years ago
Loïc Guilloux
93b711d70d
Fix #10048 : Don't relocate company HQ on the same exact location ( #10049 )
2 years ago
translators
70d33dc71f
Update: Translations from eints
...
spanish (mexican): 1 change by absay
chinese (simplified): 1 change by XiaoJi-Game
korean: 1 change by telk5093
2 years ago
translators
2b29f1a181
Update: Translations from eints
...
english (us): 1 change by 2TallTyler
dutch: 15 changes by Bouke
portuguese: 1 change by azulcosta
2 years ago
PeterN
d7ceb7efea
Change: Use widget string parameters for face window. ( #10046 )
...
The face window previously drew the buttons of face settings itself.
Instead we can provide parameters for each widget and let the widget
system draw the buttons.
2 years ago
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
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
Patric Stout
979704271b
Fix: reverse train direction command did not validate the given vehicle properly ( #9947 )
...
You could give a wagon in the chain to reverse (which makes no
functional sense ofc). In result, only parts of the vehicle were
reversing, leading to weird crashes.
2 years ago
Patric Stout
055121df80
Fix: depot-related commands did not validate depot tiles properly ( #9948 )
...
The bug comes in two slices:
1) the functions never actually checked if "tile" was a depot tile.
This allowed executing the function on tile 0, where are the
things like shadows of aircrafts are.
2) BuildDepotVehicleList() first checked if a vehicle is in a depot
before checking if it was a primary vehicle. This is invalid
for aircraft.
Fixing the first hides the second, and fixing the second makes the
first non-exploitable. But, fixing both felt like the best thing
to do.
2 years ago
Patric Stout
100aca1848
Fix: CmdRemoveRoadStop didn't validate the height property properly ( #9945 )
...
Height was a unsigned 32bit integer, where TileAddWrap uses a
signed 32bit integer for the height. In result, there was an
implicit cast from unsigned to signed, messing things up.
But looking at it from a functional perspective, allowing such
large values is not sensible. In fact, width is restricted to
just a 8bit integer. By changing height to a 8bit integer too,
the implicit cast will never make a positive value negative anymore.
2 years ago
Patric Stout
9957675a66
Fix: autoreplace command did not validate the vehicle argument properly ( #9946 )
...
It first checked if the vehicle was in the depot, which for some types
is only a valid action for the primary vehicle. Afterwards, it checked
if the vehicle was a primary vehicle.
2 years ago
Patric Stout
4651ad94fe
Fix: commands with a RoadType in their arguments were not validated properly ( #9944 )
...
Although it was checked that RoadType was not 63 (INVALID_ROADTYPE),
and all values lower than 63 are fine, it also allowed values higher
than 63. As the RoadType is a "byte", it could contain values up
to 255.
2 years ago
Patric Stout
6810d09c1b
Fix: commands with Axis in their arguments were not validated properly ( #9943 )
...
When you don't type an Enum, it is a signed value. To validate
if an Axis is valid, it is checked to be lower than AXIS_END. Which
is the case for any value below 0.
2 years ago
Michael Lutz
dd93244853
Fix: The first tile in commands received from a client wasn't validated properly.
2 years ago
Jonathan G Rennison
23e057cfac
Don't apply show signals using default graphics settings for custom styles
2 years ago
TELK
f2838768ca
Update: Korean translation up to 0.48.0
2 years ago
TELK
3cace09207
Update: Match the lines of Korean lang. file with english's one
2 years ago
Jonathan G Rennison
96c63ab7fc
Remove incorrect comment
2 years ago
Jonathan G Rennison
752e46dfcb
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/station_cmd.cpp
2 years ago
glx22
44e3b05c50
Fix: Use more selectivity when building SSE specific code
...
See: https://github.com/OpenTTD/OpenTTD/issues/9935
(cherry picked from commit c3f55d53405af04bfe928d9e1a815e06c187ca50)
2 years ago
Jonathan G Rennison
432717b21d
Enabled shared orders and occupancy buttons for competitor order windows
2 years ago
Jonathan G Rennison
4e8a8a5e0a
Add conditional order to test if last/next dispatch slot is first/last
2 years ago
Jonathan G Rennison
116ddf4b35
Fix timetable automation with conditional order sequences
2 years ago
Jonathan G Rennison
da57d75165
Debug: Print lookahead approach speeds for stations (using current order)
2 years ago
Jonathan G Rennison
c6ae82b611
Fix 9ff161e4
boosting lookahead braking stats but not actual brake forces
2 years ago
Jonathan G Rennison
bd28d5a239
Use order state at reservation time for signal mode tracerestrict eval
2 years ago
Jonathan G Rennison
12566f05ca
Add tracerestrict actions used flags for order conditionals present
2 years ago
Jonathan G Rennison
a5fb39b388
Use shunt for combined shunt/normal for routes into a bay with shunt exit
2 years ago
Jonathan G Rennison
f98f5fd291
Fix not being able to build waypoints when custom types no longer present
...
And a custom type was previously selected
2 years ago
Jonathan G Rennison
c19bd4473f
Add signal style flag to require realistic braking
2 years ago
Jonathan G Rennison
bdd97f1aea
Add debug build console command to run tile loop handler on tile
2 years ago
Jonathan G Rennison
e399853f2c
Fix aspect propagation issues with combined shunt/normal signals
2 years ago
Jonathan G Rennison
05c7c528f5
Fix a6e3467d: Don't do cargo consistency checks after overriding cargo
...
This falsely triggers warning messages
2 years ago
Jonathan G Rennison
19af139631
Fix #9937 : Station industries_near incorrect after removing part moved sign
...
RecomputeCatchment was being called before moving the sign tile
instead of afterwards
2 years ago
Jonathan G Rennison
6150edd3b4
Fix Station industries_near incorrect after removing part moved sign
...
RecomputeCatchment was being called before moving the sign tile
instead of afterwards
See: https://github.com/OpenTTD/OpenTTD/issues/9937
2 years ago
Jonathan G Rennison
91e0529a39
Fix train variable 0x63 using wrong rail type on dual rail type tiles
2 years ago
translators
f72b9fa767
Update: Translations from eints
...
italian: 22 changes by Rivarossi
2 years ago
Jonathan G Rennison
e6a6b50675
Include signal combined/normal style mask in aspect cfg hash
2 years ago
Jonathan G Rennison
1422cc871c
Fix signal aspect re-calculation in bidi signal blocks with no junctions
2 years ago
Jonathan G Rennison
e747f96c78
Fix signal aspect re-calculation with combined normal/shunt
2 years ago
Jonathan G Rennison
d48912aa15
Add setting to show full group hierarchy in group names
2 years ago
Jonathan G Rennison
d4a813e92e
Show group name when grouping vehicles by shared orders
...
If all vehicles in shared order set are in the same group
2 years ago
Jonathan G Rennison
6a69a5495f
Add tracerestrict action to set combined normal/shunt signal mode
...
Add associated conditional to get reservation end tile
2 years ago
Jonathan G Rennison
52f28eb5c1
Tracerestrict GUI: Refactor string handling for realistic braking warning
2 years ago
Jonathan G Rennison
ae47b1636a
Add a set of temporary std::strings which can be referenced by StringID
2 years ago
Jonathan G Rennison
4747e1d1d0
Merge PR #403 into jgrpp
2 years ago
Melvin Vermeeren
d48234c81b
Add GUI setting to show order occupancy by default
2 years ago
Jonathan G Rennison
78ae295dfe
Add combined normal and shunt aspect signal style flag
2 years ago
Jonathan G Rennison
a6e3467d58
Fix virtual train consist change callbacks being run before cargotype set
...
When instantiating virtual train from non-buildable template train
See: #402
Also fixes instantiating virtual train from train not refitting leading
vehicle.
2 years ago
Jonathan G Rennison
759b00262e
VarAction2: Allow more than one JZ to end on the same end block adjust
2 years ago
Jonathan G Rennison
9775f468e8
VarAction2: Fix jump insertion moving the end marker for another jump
2 years ago
Jonathan G Rennison
5b5fbaa476
Fix reservation error when a reserve through signal was the last tile
...
When there were no junctions earlier in the reservation
2 years ago
Jonathan G Rennison
a451b76c45
Remove unused extern declaration
2 years ago
Jonathan G Rennison
fa89036a27
Add function to get maximum signal aspect
2 years ago
Jonathan G Rennison
89f66236ff
VarAction2: Fix SHR/SAR mixup in check for merge with prior RST
2 years ago
Jonathan G Rennison
5059054f0a
Sending a vehicle to a depot for sale can now sell immediately
...
If the vehicle is already stopped in a suitable depot
2 years ago
Jonathan G Rennison
85e949a6ba
Fix road/tram type check when moving depot orders to another depot
2 years ago
Jonathan G Rennison
21606df9d3
Fix adding second set of signals to tile not setting signal style
2 years ago
Jonathan G Rennison
8249f3d535
Fix land info window not having strings for no-entry signals
2 years ago
Jonathan G Rennison
04da11b668
Store signal style GRF to local map in savegame
...
Update existing signal style IDs as necessary
2 years ago
Jonathan G Rennison
a73bc141a1
Remove unneeded calls to GetOtherTunnelBridgeEnd in AfterLoadCompanyStats
2 years ago
Jonathan G Rennison
0ed30d0200
Avoid maybe unintialised warning in struct UniscribeRun
...
See: #394
2 years ago
Jonathan G Rennison
96df13a032
Merge pull request #400 from telk5093/jgrpp
...
Update: Korean translation up to 10b415b
2 years ago
Jonathan G Rennison
2f7664fc93
Move signal style mask variables into a single struct
2 years ago
Jonathan G Rennison
c1b54f1c31
Fix missing includes in newgrf_newsignals.h
...
See: #401
2 years ago
TELK
9c81951cef
Update: Korean translation up to 10b415b
2 years ago
Jonathan G Rennison
a311f12615
Add signals_style_lookahead_single_signal_only signal style property
2 years ago
Jonathan G Rennison
24e965061c
Fix limit train lookahead to signal aspect when starting
...
From depot and within signal sighting distance (e.g. reverse)
2 years ago
translators
ffd3c11ba7
Update: Translations from eints
...
italian: 8 changes by Rivarossi
spanish: 19 changes by MontyMontana
2 years ago
Jonathan G Rennison
10b415bf10
Level crossings: Clarify adjacent blocked crossing track status handler
...
Avoid unnecessary adjacent tile checks if crossing is not blocked
2 years ago
translators
68257e0d7d
Update: Translations from eints
...
turkish: 1 change by jnmbk
spanish: 12 changes by MontyMontana
2 years ago
Jonathan G Rennison
fcae909839
Add signal style flag for drawing on the opposite side
2 years ago
Jonathan G Rennison
ff064e06b8
Fix race between network client disconnect and network window deletion
2 years ago
Jonathan G Rennison
ccef4baea6
Remove header prototypes for non-existent functions
2 years ago
Jonathan G Rennison
3a064f127b
Fix SetTrainReservationLookaheadEnd moving end nearer
2 years ago
Jonathan G Rennison
96cf0f95bf
Adjust tunnel/bridge signal spacing to prefer a signal in the middle
2 years ago
Jonathan G Rennison
b5d0c1d493
Debug: Show signalled tunnel/bridge info in debug window
2 years ago