Jonathan G Rennison
a3c003546b
Implement extended NewGRF variable parameter support
3 years ago
Jonathan G Rennison
ecc4e79337
Fix non-rail bridge construction setting polyrail endpoints
...
See: #371
3 years ago
Jonathan G Rennison
d659ce3189
Fix c040a69f: rail waypoint spec not being allocated for new waypoints
3 years ago
Niels Martin Hansen
41c40f130b
Fix: Original music playback rate was slightly too fast
...
Found a new tempo value experimentally. The new value gives a timing error of less than 0.01 second per minute.
3 years ago
translators
81adc38176
Update: Translations from eints
...
japanese: 9 changes by Azusa257
3 years ago
Jonathan G Rennison
c040a69fec
Handle case where rail waypoint runs out of station spec slots
3 years ago
frosch
8028794bee
Fix #9811 , 9156d7b: Use the NewGRF-defined vehicle center when dragging ships and aircraft. ( #9812 )
...
The alignment using the total-width of the vehicle-chain was meant for articulated trains and road vehicles only.
3 years ago
Jonathan G Rennison
2959221066
Debug: Add support for showing extended variables in object debug window
3 years ago
translators
a83cd9b4f5
Update: Translations from eints
...
turkish: 1 change by AlphenLLC
3 years ago
Jonathan G Rennison
bd4cfcee69
Fix d4f11eca: Missing break in switch
3 years ago
Jonathan G Rennison
4fde8d13a7
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/console_cmds.cpp
# src/lang/belarusian.txt
3 years ago
Jonathan G Rennison
d4f11eca42
Add NewGRF object properties to set viewport map mode/smallmap tile type
3 years ago
translators
83b6defbfb
Update: Translations from eints
...
korean: 1 change by telk5093
turkish: 5 changes by AlphenLLC
3 years ago
Jonathan G Rennison
1d885c462f
Fix incorrect string parameters for dispatch schedule assigned to depot
...
See: #368
3 years ago
Jonathan G Rennison
acaf20120f
Fix text colour in scheduled dispatch management dropdown items
...
See: #369
3 years ago
Jonathan G Rennison
b68226aa07
Add colour flags field to DropDownListStringItem
3 years ago
Jonathan G Rennison
929ee23b34
Fix SetColourRemap when using TC_FORCED | TC_BLACK
3 years ago
Jonathan G Rennison
d0d7d97691
Use static extended feature versions for SlIsObjectCurrentlyValid
3 years ago
Jonathan G Rennison
fd3ea0dcd5
Fix upstream savegame loader not initialising non-upstream settings
...
See: #367
3 years ago
Jonathan G Rennison
dacdb1137a
Add extended feature array with static current version values
3 years ago
Jonathan G Rennison
bffff8e357
Add feature array as parameter to SlXvIsFeaturePresent methods
3 years ago
Jonathan G Rennison
3353546966
Adjust linkgraph.aircraft_link_scale feature test
3 years ago
Jonathan G Rennison
29cd07d1c0
Fix aircraft link scale when loading previous savegame versions
...
See: #367
3 years ago
Tyler Trahan
7f0efbe00e
Feature: Remember the last-used signal between games ( #9792 )
3 years ago
Dave Shifflett
25ae42ae8a
Feature: Add/extend console commands to enable screenshot automation ( #9771 )
...
* Add: `zoomto` console command for main viewport
Similar in spirit to `scrollto`, `zoomto` takes an absolute zoom level
from the user and sets the main viewport to that level while respecting
both the absolute minimum and maximum zoom levels supported by the game
and any limitations imposed by the local client settings.
* Add: optional `instant` flag for `scrollto` command
Using this flag has two effects:
- if the user has smooth scrolling enabled, the scroll action will take
place as if it were not enabled
- the viewport is redrawn immediately, so any successive `screenshot`
command will actually work correctly
The original positional arguments are processed like same before.
3 years ago
glx22
b6c5f49379
Change: add a timestamp in name of crash files
3 years ago
J0anJosep
d9a37c915f
Cleanup #9725 : Replace cmd_helper related functions and remove cmd_helper.h.
3 years ago
translators
09b71c97aa
Update: Translations from eints
...
belarusian: 35 changes by KorneySan
3 years ago
Jonathan G Rennison
fedc0889ac
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/korean.txt
# src/lang/thai.txt
3 years ago
translators
b59acc7e2c
Update: Translations from eints
...
thai: 122 changes by phetoffux
3 years ago
TELK
1c7263a736
Update: Korean translation up to a7bcb7e
3 years ago
translators
4ad6b1e58d
Update: Translations from eints
...
thai: 8 changes by phetoffux
3 years ago
Jonathan G Rennison
a7bcb7e62d
Implement ottd_rdtsc for AARCH64 on GCC/clang
3 years ago
Jonathan G Rennison
ed80a39b30
MacOSX: Mark CrashLogOSX::context as maybe_unused
3 years ago
Jonathan G Rennison
ceb4f7fb82
Fix #365 : Unused function warning on Mac OSX
3 years ago
Jonathan G Rennison
47f219d66d
Settings GUI: Label sprite_zoom_min as should be left at default
3 years ago
Jonathan G Rennison
e5c99b3601
Settings GUI: Add flag to mark a setting as should be left at default
3 years ago
Jonathan G Rennison
0a7a7ebcf0
Add build vehicle window sort mode: cargo capacity / running cost
3 years ago
translators
30da75941b
Update: Translations from eints
...
swedish: 15 changes by joeax910
slovak: 5 changes by FuryPapaya
thai: 15 changes by phetoffux
3 years ago
Jonathan G Rennison
5a6a2400a5
Merge branch 'pr-364' into jgrpp
3 years ago
TELK
680344719b
Fix: Korean translation
3 years ago
Jonathan G Rennison
6ccf020dc2
Fix #9802 : Assertion failure in BuildRailWaypointWindow constructor
3 years ago
translators
61abfc9050
Update: Translations from eints
...
korean: 2 changes by telk5093
slovak: 14 changes by FuryPapaya
thai: 107 changes by phetoffux
3 years ago
Jonathan G Rennison
ab823ad808
Fix b0f9cc38: Assertion failure still occurs via different path
3 years ago
Jonathan G Rennison
b0f9cc389f
Fix assertion failure in BuildRailWaypointWindow constructor
3 years ago
Jonathan G Rennison
70a65ac1c0
Road waypoints no longer block road inferred one-way state interpolation
3 years ago
Jonathan G Rennison
ad9c85ad3c
Fix crash when changing one-way state of road waypoints
3 years ago
Jonathan G Rennison
b74de5ff2b
Fix crash in road vehicle overtaking checks with road waypoints
3 years ago
Jonathan G Rennison
786f80e878
Fix removal of road waypoints during bankruptcy
3 years ago
TELK
6d9921ef72
Update: Korean translation up to 0.46-rc1
3 years ago
Jonathan G Rennison
f5ef81f5ac
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/italian.txt
# src/lang/tamil.txt
3 years ago
Jonathan G Rennison
a03453da49
Add properties to set lighthouse and transmitter generation amounts
3 years ago
Jonathan G Rennison
eeef6c485a
Initial implementation of NewGRF feature ID mapping
3 years ago
Jonathan G Rennison
ef3916928c
Initial abstraction around NewGRF feature ID bytes
3 years ago
Jonathan G Rennison
c69ed1711d
Allow road vehicle go to station/waypoint orders to have a direction
3 years ago
Jonathan G Rennison
afccf04188
Report road waypoint tiles as road to GRFs
3 years ago
Jonathan G Rennison
c3c55db02b
Implement road ground types for road waypoints
3 years ago
Jonathan G Rennison
7ff885fc96
Add replacement sprites for road waypoint buildings
...
Add action 5 sprite replacement support
3 years ago
Jonathan G Rennison
b4fc0b4dc5
Initial implementation of road waypoints
3 years ago
Jonathan G Rennison
ace75f6864
Widen station type field in map array
3 years ago
Jonathan G Rennison
fcc581fba9
Add static assert that number of commands does not exceed limit
3 years ago
Jonathan G Rennison
812933ffd4
Debug: Show names of remapped action 2 variables in sprite group dumper
3 years ago
Jonathan G Rennison
eddc6ddcdb
Debug: Add sprite dumping to house inspect window
3 years ago
Jonathan G Rennison
08b6540c84
Fix wrong error message building bridge over obstructing station
...
When some bridge types are too long for the requested span
3 years ago
Jonathan G Rennison
bb848331b6
Fix narrowing conversion warning
3 years ago
Jonathan G Rennison
afa75ded1c
Zoning: Fix unserved industry mode with passenger-handling industries
3 years ago
Jonathan G Rennison
acc9dffab7
Add object mapped variables for slope after foundation applied
3 years ago
Jonathan G Rennison
33dc6c9688
Add NewGRF VarAction2 variable remapping infrastructure
3 years ago
Jonathan G Rennison
e56fee612c
Zoning: Fix unserved industries mode with partially overlapping catchment
3 years ago
Jonathan G Rennison
96d789dfbf
Fix window preference save/load of build vehicle windows
3 years ago
Jonathan G Rennison
2e7f8d2e1e
Add inclined foundation option to object edge foundation mode
...
Bump feature version
3 years ago
Jonathan G Rennison
e7c12f2ad4
Fix terraforming not resetting ground type for use land ground objects
3 years ago
translators
9e47df298f
Update: Translations from eints
...
italian: 61 changes by denialmac
3 years ago
Andy
b8a8891a86
Add: [Script] IndustryType::ResolveNewGRFID to resolve industry id from grfid and grf_local_id
3 years ago
Andy
26ac0c48f0
Add: [Script] ObjectType::ResolveNewGRFID to resolve object id from grfid and grf_local_id
3 years ago
Jonathan G Rennison
d69657846c
Add Action 5 remappable type for misc GUI sprites
3 years ago
Jonathan G Rennison
d81cbc25b8
Add setting to allow hiding viewport labels of inidivudal waypoints
3 years ago
Jonathan G Rennison
c65901fef2
Add a baseset GRF for misc GUI sprites
3 years ago
translators
f6775a2d55
Update: Translations from eints
...
irish: 2 changes by temuchie
3 years ago
Jonathan G Rennison
8ffe519179
Debug: Fix title of waypoint inspector window
3 years ago
Jonathan G Rennison
26fb0940c6
Add client setting for whether to sync locale settings with server in multiplayer
3 years ago
TELK
f0da66961a
Update: Korean translation for conditional orders
3 years ago
Jonathan G Rennison
7015c92680
Check station coverage highlight in ZoningMarkDirtyStationCoverageArea
3 years ago
Tyler Trahan
bec218069c
Feature: Remember the last-used signal between games
...
(cherry picked from commit a9de36ad23f30d125ed495f0bd84342b594d19df)
See: https://github.com/OpenTTD/OpenTTD/pull/9792
3 years ago
Jonathan G Rennison
e5110bd7f6
Handle service at depot orders in cond order loops
3 years ago
Jonathan G Rennison
e7abf9efb1
Remove unnecessary recursion in GetNextRealStation
3 years ago
Jonathan G Rennison
beb6d01fe8
Improve handling of conditional order waiting loops
...
Do not leave station/depot/waypoint at all if conditional order
loop would result in re-starting waiting/loading
Only actually leave and update timetable at end of loop
Rate-limit loop checks regardless of timetabled wait time
3 years ago
Jonathan G Rennison
904ff6757d
Add slot support to road vehicles, ships and aircraft
3 years ago
Jonathan G Rennison
0513961b2a
Duplicate STR_SMALLMAP_LEGENDA_... veh type strings with format codes removed
3 years ago
Jonathan G Rennison
ce61f6439c
Allow non-train vehicles to test counter values in conditional orders
3 years ago
Jonathan G Rennison
7d86909a90
Ensure that sprite data is cleared when loading over an existing sprite
...
Fixes crash when looking at recolour sprite in sprite viewer window
which has been overriden by a non-recolour sprite by a faulty GRF
3 years ago
Jonathan G Rennison
1a4b0d6ecf
Prevent NewGRFs from using Action A to replace internal sprites
3 years ago
Jonathan G Rennison
027a792cbd
Crash log: On OSX allocate crash log buffer using mmap if possible
...
Otherwise use conservatively sized stack buffer
3 years ago
Jonathan G Rennison
79db533abb
Fix nullptr deref evaluating train in slot conditional order with no slot
...
See: #360
3 years ago
translators
5239018878
Update: Translations from eints
...
tamil: 24 changes by Aswn
3 years ago
Jonathan G Rennison
6197baee9c
Fix unused function warning on OSX
3 years ago
Jonathan G Rennison
29126619a3
Disable OSX touchbar support, fixes #358
3 years ago
translators
15c9191568
Update: Translations from eints
...
tamil: 19 changes by Aswn
3 years ago
Jonathan G Rennison
dd5438fe75
Merge branch 'multi-sd' into jgrpp
3 years ago
Jonathan G Rennison
c40f4e0abc
Handle predictable conditional orders in departure boards
3 years ago
Jonathan G Rennison
b23d394f0b
Handle predictable conditional orders in timetable window
3 years ago
Jonathan G Rennison
91ed26415e
Fix manual setting of conditional order jump taken travel times
3 years ago
Jonathan G Rennison
1ac6326306
Departure boards: Fix departure slot cache with multiple schedules
3 years ago
Jonathan G Rennison
543433218c
Ensure that timetable and scheduled dispatch windows redrawn as required
...
Reduce inefficient window and shared order list iteration
3 years ago
Jonathan G Rennison
fe522f193b
Show confirmation window before clearing/removing dispatch schedule
3 years ago
Jonathan G Rennison
21ef4902c6
Show predicted scheduled dispatch arr/dep times in timetable window
3 years ago
Jonathan G Rennison
8754e1c5d0
Show scheduled dispatch marker in yellow in timetable window
3 years ago
Jonathan G Rennison
8b2a6248e7
List static NewGRFs in crash logs
3 years ago
translators
8ac3f9a6e1
Update: Translations from eints
...
vietnamese: 28 changes by chupper100
3 years ago
Jonathan G Rennison
3892a1e201
Log client ID/name in server desync logs
3 years ago
Jonathan G Rennison
65cb4ccedf
Limit number of warnings whon in timetable window
3 years ago
Jonathan G Rennison
4f7f8c5b63
Show which order schedule assigned to in scheduled dispatch window
3 years ago
Jonathan G Rennison
ff3473fe6a
Add support for multiple scheduled dispatch schedules per order list
3 years ago
Jonathan G Rennison
29521ef883
Fix SB function when using sizes greater than 32 bits
3 years ago
Jonathan G Rennison
9e1a78c86e
Clear order wait times when changing to a non-stopping order
3 years ago
Jonathan G Rennison
dd312ef9a4
Remove asserts on input from CmdChangeTimetable
3 years ago
Jonathan G Rennison
644bd0a325
Fix input/display of speeds in tracerestrict window in tiles/day mode
3 years ago
Jonathan G Rennison
a64a6aeeb8
Fix text input of velocity setting values
...
See: #357
3 years ago
Jonathan G Rennison
eab98e4808
Industry::this_month_production should saturate instead of overflowing
3 years ago
Jonathan G Rennison
a4ea155d33
Merge PR #357 into jgrpp
3 years ago
Jonathan G Rennison
309f5974e8
Merge PR #353 into jgrpp
3 years ago
Jonathan G Rennison
b2c6c3b07a
Merge branch 'master' into jgrpp
...
# Conflicts:
# media/baseset/CMakeLists.txt
# src/lang/croatian.txt
3 years ago
Jonathan G Rennison
579c71dd44
Script: Add ScriptRoad methods related to road types
3 years ago
Jonathan G Rennison
dfc6e309d0
Fix ground/tree tile vegetation changes not updating map mode viewports
...
(In vegetation mode)
3 years ago
translators
93e8d4871d
Update: Translations from eints
...
croatian: 67 changes by srekoslav
3 years ago
Yourself
7823c81597
Add: Through load speed limit setting
3 years ago
Jonathan G Rennison
d56f7e7060
Fix wrong signal aspects when track built up to rear of tunnel/bridge entrance
3 years ago
translators
ad54d08abd
Update: Translations from eints
...
croatian: 6 changes by srekoslav
thai: 2 changes by sanotti
3 years ago
Jonathan G Rennison
b9db85048f
Merge pull request #354 from internet-trains/screenshot-numbering
...
Change: Automatic screenshot numbering
3 years ago
Jonathan G Rennison
985c6ad7db
Merge PR #356 into jgrpp
3 years ago
Jonathan G Rennison
f54e19083e
Fix crash which could occur when removing invalidated link graph flow.
3 years ago
Yourself
aa7413a89f
Fix: Require non-zero capacity for refit cargo type
3 years ago
translators
32a4212ef1
Update: Translations from eints
...
norwegian (bokmal): 2 changes by tmn
3 years ago
Larry Fenn
33ae34f25d
Change: Automatic screenshot numbering
...
Invoking the `screenshot` console command with a filename ending in %d
will cause it to be numbered automatically.
3 years ago
TELK
fc8ab829f6
Update: Korean translation up to 0.45.0
3 years ago
Jonathan G Rennison
0ffa1b1db6
Scale cargo movement cap in TransportIndustryGoods by industry cargo factor
3 years ago
translators
8032423bf1
Update: Translations from eints
...
romanian: 18 changes by Gisterecis
3 years ago
Joan Josep
54ce5b28a4
Codechange: Make RoadScopeResolver constructor inlineable ( #9780 )
3 years ago
Loïc Guilloux
d62c5667cf
Fix #9766 : Don't write uninitialised data in config file ( #9767 )
3 years ago
Jonathan G Rennison
2f8e63e954
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/gfx.cpp
# src/lang/traditional_chinese.txt
# src/station_cmd.cpp
3 years ago
Jonathan G Rennison
ba824f08c3
Fix re-routing of unrelated cargo when removing invalidated link graph flow
3 years ago
Jonathan G Rennison
de41a54f94
Departure boards: Fix excessive window width when using GUI zoom
3 years ago
Jonathan G Rennison
55b7e2178a
Departure boards: Fix vehicle name column width with group vehicle names
3 years ago
Jonathan G Rennison
dd160a4e74
Support cond order to continue loading at station without moving for ships
3 years ago
Jonathan G Rennison
e92b1004cc
Merge PR #352 into jgrpp
3 years ago
Jonathan G Rennison
7e313d120c
Fix narrowing conversion warnings
3 years ago
Jonathan G Rennison
51a37ecf2a
Monocypher: Fix narrowing conversion warning
3 years ago
Jonathan G Rennison
ab17deae3a
Random bytes: Fix minor compilation warnings
3 years ago
Yourself
65b90f966b
Fix: station raiting tooltip showed incorrect time
3 years ago
Jonathan G Rennison
a14df8dfe2
Merge PR #351 into jgrpp
3 years ago
Yourself
e4fa9f8465
Add: Cargo delivery distribution modes
3 years ago
Jonathan G Rennison
30817c3915
Fix VRF_BEYOND_PLATFORM_END not being cleared when switching order
3 years ago
Jonathan G Rennison
e993afcd99
Store encrypted company password hashes in server saves
...
Restore when loading back into the server if server has required secret
3 years ago
Jonathan G Rennison
1f50106466
Saveload: Add functions to save/load to arbitrary buffers
3 years ago
Jonathan G Rennison
87f0c20bc0
Add setting flag to run string setting change callbacks on config load
3 years ago
Jonathan G Rennison
26eca815d3
Add separate network salt string for company passwords
3 years ago
Jonathan G Rennison
00cfb00537
Fix auto-generated network.network_id setting value not being saved in config
3 years ago
Jonathan G Rennison
eb22b49758
Add randombytes lib to src/3rdparty
3 years ago
Jonathan G Rennison
91f6c6941a
Add monocypher lib to src/3rdparty
3 years ago
Jonathan G Rennison
89181ea9fd
Add setting to increase cost/distance of aircraft linkgraph links
3 years ago
Jonathan G Rennison
ba97d0a827
Allow building waypoints with spec IDs >= 256
...
See: #349
3 years ago
Michael Lutz
57b992717b
Codechange: Extend DrawSpriteToRgbaBuffer to work with 8bpp blitters.
3 years ago
Michael Lutz
69c8ed9965
Codechange: [OSX] Simplify touchbar button data definition.
3 years ago
Michael Lutz
b351cbe490
Fix #9743 : [OSX] Only (re-)create touchbar sprites when requested by the main loop.
3 years ago
Michael Lutz
f40e82a19d
Fix #9743 : [OSX] Don't try to render touchbar sprites with invalid zoom level.
3 years ago
Michael Lutz
80fc5fb46c
Change: [OSX] Allow touchbar usage on all supported OS versions.
...
Touchbar support was introduced in 10.12.2. There's no need to limit
support to 10.15+, as the convenience class NSButtonTouchBarItem is
easily replicated.
3 years ago
Jonathan G Rennison
ee7fbfc410
Merge pull request #350 into jgrpp
3 years ago
Jonathan G Rennison
f658d9f1fc
Fix rail drag remove removing track even with an unremovable signal
...
This occurred when a removing a signal was blocked due to realistic
braking moving train restrictions.
This resulted in incorrect signal infrastructure totals and MP desyncs.
3 years ago
Yourself
3f391a74af
fix: error when removing tunnelbridge signal w/ tracerestruct
3 years ago
Jonathan G Rennison
4844268d1c
Fix #9774 : CmdBuildRoadStop updated station acceptance in estimate mode
3 years ago
Jonathan G Rennison
42b223a288
Fix CmdBuildRoadStop updating station acceptance in estimate mode
3 years ago
translators
21f85cac87
Update: Translations from eints
...
chinese (traditional): 25 changes by Tetrapod1206
italian: 12 changes by federico1564S
3 years ago
translators
3ed7910cfe
Update: Translations from eints
...
portuguese (brazilian): 2 changes by Vimerum
3 years ago
Yourself
3caef277c8
fix: Give money message showed incorrect value
3 years ago
Jonathan G Rennison
f65a166308
Add client setting to show all signals using the default sprites
3 years ago
Jonathan G Rennison
621677343f
Fix wrong sprite count for duplicated prog signal sprites
3 years ago
Jonathan G Rennison
f40191b3c0
Add hysteresis to depot search max penalty in missing depot order mode
...
See: #345
3 years ago
Jonathan G Rennison
2c7ec68b76
Enable news warning for missing depot order in order list by default
3 years ago
Jonathan G Rennison
4871071dcb
Show vehicle destination when mousing over vehicle breakdown in status bar
3 years ago
glx22
3069f805e2
Fix #9766 : Don't write uninitialised data in config file
...
(cherry picked from commit 50304f7164d5c88a42dcc1d09648c3ec8b2faab5)
Fixes : #344
3 years ago
Jonathan G Rennison
dda4167edc
Change debug level of network received packet logging
3 years ago
translators
a97bce51c2
Update: Translations from eints
...
czech: 6 changes by vladoschreiner
hungarian: 5 changes by pnpBrumi
3 years ago
translators
afb817fe19
Update: Translations from eints
...
norwegian (bokmal): 4 changes by Anolitt
3 years ago
Michael Lutz
b11bd185e3
Fix #9756 : Network command unpack proc was not generated in all cases.
...
The case where the callback proc takes all command results but not any of
the command parameters was not handled properly.
3 years ago
Tyler Trahan
9c18236f2c
Fix: Suppress vehicle age warnings for stopped vehicles
3 years ago
Michael Lutz
e67124e174
Change: [Admin] Bump admin port protocol due to command changes.
...
docs/admin_network.md promised that information in an admin packet
is never removed. It does allow the possibility of using a new packet type
for changed data in combination with a bump of the admin port version.
As the recent command handling changes modified the contents of
ADMIN_PACKET_SERVER_CMD_LOGGING, do exactly that.
3 years ago
Michael Lutz
3fede15940
Codechange: [Script] Prettify squirrel call helpers by using C++17.
3 years ago
Jonathan G Rennison
e08a6e2014
Fix #9735 : Fix OrderBackup::Reset in non-GUI case
3 years ago
Joan Josep
e890e7db76
Cleanup #9725 : Clean up Doxygen docs and fix typo. ( #9753 )
3 years ago
Jonathan G Rennison
66ce6c5090
Scheduled dispatch: Add clear schedule GUI function
...
Add management dropdown box to window
3 years ago
Jonathan G Rennison
7b0c083c11
Debug: Add vehicle cargo type, refit mask and age period to debug window
3 years ago
Michael Lutz
afc3d71fd0
Codechange: Don't generate CommandPacket unpack functions for invalid cmd/callback combinations.
...
If the arguments of the callback proc don't match with the command parameters,
we can't do the proper command execution anyway. As such, don't even generate
an unpack function in the first place, saving a bit of unnecessary code bloat.
Validate on receive that the cmd/callback combination is supported, rejecting
clients that try to send invalid values.
3 years ago
Michael Lutz
c521b965bd
Codechange: Don't use a global for the terrforming error tile.
3 years ago
Michael Lutz
2e39637db2
Codechange: Don't use a global for the 'not enough cash' message.
3 years ago
Michael Lutz
41fa16f325
Codechange: Don't use globals for return values from vehicle command procs.
3 years ago
Michael Lutz
57b82e2e99
Codechange: Don't use globals for story/goal/sign/group command proc return values.
3 years ago
Michael Lutz
3e85e833a7
Codechange: Add support for additional command result values.
3 years ago
Michael Lutz
8503854655
Codechange: Pass unpacked command arguments to command callbacks (except Script).
3 years ago
Michael Lutz
d85348b1d1
Codechange: Template the command callback function type to allow unpacked arguments.
3 years ago
Michael Lutz
13528bfcd0
Codechange: Un-bitstuff all remaining commands.
3 years ago
Michael Lutz
58cff7b081
Codechange: Un-bitstuff the remaining on-map commands.
3 years ago
Michael Lutz
c6d7b98808
Codechange: Un-bitstuff landscape commands.
3 years ago
Michael Lutz
e6e69d5289
Codechange: Un-bitstuff goal and story page commands.
3 years ago
Michael Lutz
1a42a8a5d5
Codechange: Un-bitstuff town-related commands.
3 years ago
Michael Lutz
e08b3abe7f
Codechange: Un-bitstuff group and autoreplace commands.
3 years ago
Michael Lutz
46bd2f1ced
Codechange: Un-bitstuff remaining transport infrastructure commands.
3 years ago
Michael Lutz
55170ae703
Codechange: Un-bitstuff rail commands.
3 years ago
Michael Lutz
6fe445e6c0
Codechange: Un-bitstuff station/depot/waypoint commands.
3 years ago
Michael Lutz
21675ec7e2
Codechange: Un-bitstuff vehicle/engine commands.
3 years ago
Michael Lutz
2637c06f88
Codechange: Un-bitstuff timetable commands.
3 years ago
Michael Lutz
211c630cbe
Codechange: Un-bitstuff order commands.
3 years ago
Michael Lutz
de45a8729c
Codechange: Add DoCommand::Post specialization for commands that take no TileIndex.
...
This adds a new Post overloads that still take a TileIndex which
is used to place any error windows or text effects.
3 years ago
Michael Lutz
4f3ea3907e
Codechange: Un-bitstuff commands taking a ClientID (i.e. CMD_CLIENT_ID).
3 years ago
Michael Lutz
ccefa76a46
Codechange: Template DoCommandPInternal.
3 years ago
Michael Lutz
6691ee3b96
Codechange: Template script command calls.
3 years ago
Michael Lutz
eab18f06a4
Codechange: Pass additional data as byte stream to command callbacks.
3 years ago
Michael Lutz
0f64ee5ce1
Codechange: Template DoCommandP to automagically reflect the parameters of the command proc.
...
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
3 years ago
Michael Lutz
e740c24eb7
Codechange: Template DoCommand to automagically reflect the parameters of the command proc.
...
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
3 years ago
Michael Lutz
c88b104ec6
Codechange: Use wrapper struct to automatically manage command depth tracking.
3 years ago
Michael Lutz
996b16de70
Codechange: Use lambdas instead of CommandContainer to manage station picker commands.
3 years ago
Michael Lutz
a05fd7aa50
Change: [Network] Transfer command data as serialized byte stream without fixed structure.
...
The data will be transmitted as the length followed by the serialized data. This allows the command
data to be different for every command type in the future.
3 years ago
Michael Lutz
b0990fcff7
Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
...
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
3 years ago
Michael Lutz
4fc055d6e9
Codechange: Align parameter order of command callbacks to command handlers.
3 years ago
Michael Lutz
123c7f99c3
Codechange: Move command callback declarations to the cmd header files.
3 years ago
Michael Lutz
7048e1522f
Codechange: Move flags in CommandProc in front of the command arguments.
3 years ago
Michael Lutz
33ca4f2b99
Codechange: Let the compile generate the master command table out of templated command traits.
...
This is using a non-intrusive type-traits like templated system, which
allows compile-time validation that the command table and the command
enum match up.
3 years ago
Michael Lutz
5ddfdc8516
Codechange: Declare our custom enum operators as constexpr.
3 years ago
Michael Lutz
a38bbefe1b
Codechange: Untangle command code, flags and error string for DoCommand*.
3 years ago
Michael Lutz
549caca39c
Codechange: Move command arguments to the back of the networked command function calls.
3 years ago
Michael Lutz
b6933a2ebd
Codechange: Move command arguments to the back of the DoCommand function call.
3 years ago
Michael Lutz
39e8783f4b
Fix: Template syntax error when using 'span' with a container type.
3 years ago
Jonathan G Rennison
17d949980f
Fix assert fail when building virtual train from engine with invalid cargo
3 years ago
translators
0c90326ada
Update: Translations from eints
...
swedish: 1 change by joeax910
chinese (traditional): 160 changes by Tetrapod1206
galician: 21 changes by pvillaverde
irish: 5 changes by temuchie
polish: 2 changes by pAter-exe
3 years ago
Jonathan G Rennison
7953a1f8d1
Allow setting autosave interval to a custom number of real-time minutes
3 years ago
Jonathan G Rennison
583663bca1
Allow setting autosave interval to a custom number of days
3 years ago
frosch
bc22e9333e
Fix: if vehicles only refit to cargo-slots >= 32, the default cargo was wrong. ( #9744 )
3 years ago
geby
1854dc87cc
Fix some statement to make sense.
3 years ago
Jonathan G Rennison
762b656b53
Fix #9740 : Fix loading of gamelog change items from savegame ver >= 294
3 years ago
Jonathan G Rennison
15b0231821
Debug: Add object intro and end of life dates to debug window
3 years ago
Jonathan G Rennison
77d3be3d3b
Fix loading of gamelog revision text in upstream savegame loader
3 years ago
Jonathan G Rennison
3d0b1a3b12
Fix loading of gamelog change items from savegame ver >= 294
...
See: https://github.com/OpenTTD/OpenTTD/issues/9740
3 years ago
Jonathan G Rennison
70ca147fa4
Merge PR #341 into jgrpp
3 years ago
pvillaverde
ebe0aec89a
[Feat] Galician Translation
3 years ago
Jonathan G Rennison
69b6b388d6
On dedicated servers, save copy of last autosave on crash
...
This is to avoid all autosaves being overwritten when the server
is auto-restarted with a new map
3 years ago
Jonathan G Rennison
585c3fe9ca
Add town and industry counts to dump_map_stats command
3 years ago
Jonathan G Rennison
b69521ea87
Allow specifying a custom number of industries in map generation window
3 years ago
Jonathan G Rennison
b807f0d50e
Fix setting of object spec ctrl flags from GRF properties
3 years ago
Jonathan G Rennison
5349003ec4
Add assert checks to road type infra total changes
3 years ago
Jonathan G Rennison
0b45103eed
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/network/core/tcp_connect.cpp
3 years ago
Jonathan G Rennison
4543803823
Crash log: Increase crash log length limit on Unix
...
Allocate buffer using mmap if possible
3 years ago
Jonathan G Rennison
90c672fc6d
Crash log: Increase length limit for desync/inconsistency logs
...
Allocate buffer instead of using stack
3 years ago
Jonathan G Rennison
117eb6637d
Fix OrderBackup::Reset in non-GUI case
...
See: https://github.com/OpenTTD/OpenTTD/issues/9735
3 years ago
Jonathan G Rennison
b75a633dc6
Add command log flag for whether order backups changed
...
See also: https://github.com/OpenTTD/OpenTTD/issues/9735
3 years ago
Jonathan G Rennison
54b7aa3d1b
Add chicken bit for periodic signal infra total check
...
Set automatically if server detects signal infra mismatch
3 years ago
Jonathan G Rennison
2d71ec1c5a
Bump savegame for object ground types
3 years ago
Jonathan G Rennison
de6cf4de24
Check blocking train reservation before removing signals in CmdRemoveSingleRail
3 years ago
Jonathan G Rennison
24fb390e9f
Add NewGRF object property for flood-resistance
...
Does not imply being able to be built on water
3 years ago
Jonathan G Rennison
06fa1ae332
Add object shore/flooding support, adjust handling of foundations
...
Add info to debug window
3 years ago
Jonathan G Rennison
d9116106ca
Add NewGRF object property for new edge foundation mode
3 years ago
Rubidium
ad89601c49
Codechange: do not use all upper case enumerators in a scoped enum
3 years ago
Jonathan G Rennison
2c8b462708
Debug: Add object view and colour to debug window
3 years ago
Jonathan G Rennison
c6bd01b2f2
Add an IsOddParity bitmath function
3 years ago
Jonathan G Rennison
ff714b7648
Add setting to disable "big GUI" NewGRFs
3 years ago
Jonathan G Rennison
924ffb013f
Add NewGRF object property/flag to use land as object ground sprite
...
This handles variable ground densities, snow/desert, etc.
3 years ago
Patric Stout
ea4f6bb8b2
Fix #9730 : [Network] connections can use an invalid socket due to a race condition
...
A race condition happens when an IPv6 connection takes more than
250ms to report an error, but does return before the IPv4 connection
is established.
In result, an invalid socket might be used for that connection.
3 years ago
Patric Stout
9c36c12c85
Codechange: ensure OnConnect() always gets called with a valid socket ( #9729 )
...
This should already be the case, but now assert()s will tell us
if this isn't.
3 years ago
Jonathan G Rennison
906fde15c7
Move NewGRF extension feature/property lists to separate file
3 years ago
Jonathan G Rennison
aaf5cd1091
Debug: Fix dumping of randomised sprite groups
3 years ago
Jonathan G Rennison
76fcfd3efd
Debug: Add sprite dump support to NewGRF objects
3 years ago
Jonathan G Rennison
5d56d12bf3
Debug: Show object class/type IDs in object debug window
3 years ago
Jonathan G Rennison
4e25fa199c
Add a "default" mode to TT autofill rounding setting, set as default
...
Use game ticks per minute or day ticks
3 years ago
Jonathan G Rennison
bc75c3af6f
Debug: Show ObjectSpec flags and more fields in debug window
3 years ago
Jonathan G Rennison
431d33f149
Allow per-house town cargo generation to be truncated to 0
...
This effectively applies the town cargo scaling setting more strictly
3 years ago
Jonathan G Rennison
a8f879251b
Debug: Allow inspecting non-GRF houses
3 years ago
Jonathan G Rennison
7c1a332f84
Merge pull request #340 from telk5093/jgrpp
...
Update: Korean translation
3 years ago
Jonathan G Rennison
0642af2e99
Explictly suppress unsigned unary minus warning on MSVC in IntFromChars
3 years ago
TELK
6046852310
Update: Korean translation up to 8258289
3 years ago
Jonathan G Rennison
3ef6b29f4a
Avoid unsigned unary minux warning on MSVC in IntFromChars
3 years ago
Jonathan G Rennison
0cdaa8ef55
Remove use of std::from_chars and <charconv>
...
Replace it with another implementation to avoid compilation issues
on some platforms
3 years ago
Tyler Trahan
802ca4e722
Fix: Don't try to rename OWNER_DEITY signs in-game ( #9716 )
3 years ago
Jonathan G Rennison
cff3000358
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/galician.txt
3 years ago
Jonathan G Rennison
0aeafeaf3a
Allow adding multiple scheduled dispatch departure slots at once
3 years ago
Jonathan G Rennison
6f38769b73
Rename incorrectly named set time/date window strings
3 years ago
Jonathan G Rennison
10f3641d9f
Adjust road vehicle quantum tunneling setting text
...
See: #338
3 years ago
Jonathan G Rennison
70fdb9091b
Merge PR #338 into jgrpp
3 years ago
translators
6953df7b5e
Update: Translations from eints
...
galician: 265 changes by pvillaverde
indonesian: 8 changes by indrabagus
spanish: 7 changes by MontyMontana
3 years ago
Jonathan G Rennison
ba65a5bab5
Run most "daily" vehicle tasks at a fixed frequency at day lengths >= 8
...
This includes: running costs, track sharing costs, breakdown checks,
servicing checks, order checks
3 years ago
Jonathan G Rennison
1ff03f8ee9
De-virtualise calls to Vehicle::OnNewDay
3 years ago
Jonathan G Rennison
0794825187
Reduce unnecessary diffs with upstream in lang/english.txt
3 years ago
Jonathan G Rennison
8bc15c10cd
Fix station/waypoint vehicle tooltip showing incorrect ctrl-click text
...
Split ctrl-click text from original tooltip strings
See: #36
3 years ago
Jonathan G Rennison
e6fbf797ff
Split timetable clear/set speed/wait time tooltip strings
...
This is to separate the original strings from added suffixes
3 years ago
translators
e0a91d7325
Update: Translations from eints
...
galician: 17 changes by pvillaverde
3 years ago
Jonathan G Rennison
b02b154218
Also show hours and minutes for schdispatch duration in minutes mode
3 years ago
Jonathan G Rennison
a7094fec3b
Add a STRING8 format code
3 years ago
Jonathan G Rennison
dd5d4c795b
Fix entering schdispatch delay/duration when not in minutes mode
3 years ago
Jonathan G Rennison
2308345803
Improve labels of non-text scheduled dispatch date/time entry window
3 years ago
Jonathan G Rennison
766fbacd57
Debug: Click toggle between long and short vehicle flag dump in window
3 years ago
Jonathan G Rennison
5d6533e258
Debug: Add a multiline long form of DumpVehicleFlags
3 years ago
Jonathan G Rennison
b5521653e0
Debug: Add general mechanism to make lines in debug window clickable
3 years ago
Jonathan G Rennison
2b56ca2b62
Debug: Create struct type for ExtraInfo output parameter
3 years ago