Jonathan G Rennison
06fa1ae332
Add object shore/flooding support, adjust handling of foundations
...
Add info to debug window
2021-12-05 21:46:09 +00:00
Jonathan G Rennison
d9116106ca
Add NewGRF object property for new edge foundation mode
2021-12-05 21:33:56 +00:00
Rubidium
ad89601c49
Codechange: do not use all upper case enumerators in a scoped enum
2021-12-05 21:41:43 +01:00
Jonathan G Rennison
2c8b462708
Debug: Add object view and colour to debug window
2021-12-05 17:41:36 +00:00
Jonathan G Rennison
c6bd01b2f2
Add an IsOddParity bitmath function
2021-12-05 17:40:42 +00:00
Jonathan G Rennison
ff714b7648
Add setting to disable "big GUI" NewGRFs
2021-12-05 13:40:56 +00:00
Jonathan G Rennison
924ffb013f
Add NewGRF object property/flag to use land as object ground sprite
...
This handles variable ground densities, snow/desert, etc.
2021-12-05 11:54:13 +00:00
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.
2021-12-04 20:56:05 +01:00
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.
2021-12-04 18:32:06 +01:00
Jonathan G Rennison
906fde15c7
Move NewGRF extension feature/property lists to separate file
2021-12-03 21:01:56 +00:00
Jonathan G Rennison
aaf5cd1091
Debug: Fix dumping of randomised sprite groups
2021-12-03 18:55:00 +00:00
Jonathan G Rennison
76fcfd3efd
Debug: Add sprite dump support to NewGRF objects
2021-12-03 18:13:58 +00:00
Jonathan G Rennison
5d56d12bf3
Debug: Show object class/type IDs in object debug window
2021-12-03 17:04:48 +00:00
Jonathan G Rennison
4e25fa199c
Add a "default" mode to TT autofill rounding setting, set as default
...
Use game ticks per minute or day ticks
2021-12-03 12:10:30 +00:00
Jonathan G Rennison
bc75c3af6f
Debug: Show ObjectSpec flags and more fields in debug window
2021-12-03 03:23:54 +00:00
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
2021-11-30 23:13:21 +00:00
Jonathan G Rennison
a8f879251b
Debug: Allow inspecting non-GRF houses
2021-11-30 23:13:21 +00:00
Jonathan G Rennison
7c1a332f84
Merge pull request #340 from telk5093/jgrpp
...
Update: Korean translation
2021-11-30 18:43:23 +00:00
Jonathan G Rennison
0642af2e99
Explictly suppress unsigned unary minus warning on MSVC in IntFromChars
2021-11-30 18:42:40 +00:00
TELK
6046852310
Update: Korean translation up to 8258289
2021-11-30 20:29:32 +09:00
Jonathan G Rennison
3ef6b29f4a
Avoid unsigned unary minux warning on MSVC in IntFromChars
2021-11-29 18:15:56 +00:00
Jonathan G Rennison
0cdaa8ef55
Remove use of std::from_chars and <charconv>
...
Replace it with another implementation to avoid compilation issues
on some platforms
2021-11-28 19:56:33 +00:00
Tyler Trahan
802ca4e722
Fix: Don't try to rename OWNER_DEITY signs in-game ( #9716 )
2021-11-28 15:16:42 +01:00
Jonathan G Rennison
cff3000358
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/galician.txt
2021-11-28 12:06:00 +00:00
Jonathan G Rennison
0aeafeaf3a
Allow adding multiple scheduled dispatch departure slots at once
2021-11-28 02:25:42 +00:00
Jonathan G Rennison
6f38769b73
Rename incorrectly named set time/date window strings
2021-11-27 23:52:44 +00:00
Jonathan G Rennison
10f3641d9f
Adjust road vehicle quantum tunneling setting text
...
See: #338
2021-11-27 20:42:19 +00:00
Jonathan G Rennison
70fdb9091b
Merge PR #338 into jgrpp
2021-11-27 20:28:13 +00:00
translators
6953df7b5e
Update: Translations from eints
...
galician: 265 changes by pvillaverde
indonesian: 8 changes by indrabagus
spanish: 7 changes by MontyMontana
2021-11-27 18:47:35 +00:00
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
2021-11-27 15:51:49 +00:00
Jonathan G Rennison
1ff03f8ee9
De-virtualise calls to Vehicle::OnNewDay
2021-11-27 15:17:41 +00:00
Jonathan G Rennison
0794825187
Reduce unnecessary diffs with upstream in lang/english.txt
2021-11-27 13:11:06 +00:00
Jonathan G Rennison
8bc15c10cd
Fix station/waypoint vehicle tooltip showing incorrect ctrl-click text
...
Split ctrl-click text from original tooltip strings
See: #36
2021-11-27 12:59:46 +00:00
Jonathan G Rennison
e6fbf797ff
Split timetable clear/set speed/wait time tooltip strings
...
This is to separate the original strings from added suffixes
2021-11-27 12:46:48 +00:00
translators
e0a91d7325
Update: Translations from eints
...
galician: 17 changes by pvillaverde
2021-11-26 18:48:29 +00:00
Jonathan G Rennison
b02b154218
Also show hours and minutes for schdispatch duration in minutes mode
2021-11-24 02:12:19 +00:00
Jonathan G Rennison
a7094fec3b
Add a STRING8 format code
2021-11-24 02:10:42 +00:00
Jonathan G Rennison
dd5d4c795b
Fix entering schdispatch delay/duration when not in minutes mode
2021-11-24 02:10:22 +00:00
Jonathan G Rennison
2308345803
Improve labels of non-text scheduled dispatch date/time entry window
2021-11-23 23:40:13 +00:00
Jonathan G Rennison
766fbacd57
Debug: Click toggle between long and short vehicle flag dump in window
2021-11-23 19:29:40 +00:00
Jonathan G Rennison
5d6533e258
Debug: Add a multiline long form of DumpVehicleFlags
2021-11-23 19:28:38 +00:00
Jonathan G Rennison
b5521653e0
Debug: Add general mechanism to make lines in debug window clickable
2021-11-23 19:26:42 +00:00
Jonathan G Rennison
2b56ca2b62
Debug: Create struct type for ExtraInfo output parameter
2021-11-23 18:16:51 +00:00
translators
ad7bdeb73a
Update: Translations from eints
...
chinese (simplified): 2 changes by kurax
2021-11-22 18:48:48 +00:00
Jonathan G Rennison
ef1b8f159f
Fix ctrl-click signal cycling setting
2021-11-22 17:10:15 +00:00
reldred
f461f0de08
Introduces a new setting (defaulted off) to allow preventing road vehicles from performing so-called quantum tunelling through other vehicles blocking their path.
2021-11-22 15:45:55 +10:30
Jonathan G Rennison
9ff8643fd9
Split config transparency settings into base and extra fields
...
This is to avoid incorrect settings when loading in trunk,
as the min/max clamping is not bitwise.
In particular having all options set in trunk when transparent vehicles
in tunnels was set.
2021-11-21 22:10:31 +00:00
Michael Lutz
20a30825a0
Fix: Insufficient input validation for CmdIndustryCtrl. ( #9711 )
2021-11-20 23:27:45 +01:00
Jonathan G Rennison
5c0c057dda
Adjust ConHookServerOrNoNetwork error message
2021-11-20 20:11:00 +00:00
translators
793de48e89
Update: Translations from eints
...
vietnamese: 2 changes by KhoiCanDev
2021-11-20 18:49:33 +00:00
Jonathan G Rennison
0691b25e17
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/saveload/afterload.cpp
2021-11-20 13:15:32 +00:00
Jonathan G Rennison
5723c317f7
Fix trains with non-front parts needing repair not being serviced
2021-11-20 12:43:38 +00:00
Jonathan G Rennison
4db14ccd18
Fix 71c39dc
: Incorrect handling of order without non-stop flag
...
See: #337
2021-11-20 12:14:01 +00:00
Jonathan G Rennison
4ccbb11440
Only show level crossing overlay sprites on outsides of multi-track crossings
...
When using both adjacent crossings and safer crossings
2021-11-20 01:42:54 +00:00
Jonathan G Rennison
551560537f
Ensure that adjacent level crossings cannot leave map if there are no void tiles
2021-11-20 01:27:41 +00:00
Jonathan G Rennison
5959e1c0f9
Merge PR #336 into jgrpp
2021-11-19 23:20:05 +00:00
Jonathan G Rennison
af2c51e3d4
Merge branch 'running-costs-exploration' into jgrpp
2021-11-19 23:18:17 +00:00
reldred
5a53b4d846
Additional tweaks to allow rivers to spawn in deserts (causing aditional tropic biome to spawn around them). This piggybacks off of the 'allow lakes in deserts' setting, renaming it to cover both. The actual setting name itself internally hasn't changed.
2021-11-19 12:29:20 +10:30
Jonathan G Rennison
71c39dc8c2
If train next order is for same station when leaving, do not leave
...
Just start loading again without moving instead
2021-11-19 00:53:01 +00:00
dP
ad90e88ebd
Change: Make pf.yapf.rail_firstred_twoway_eol on by default ( #9544 )
2021-11-19 00:08:06 +00:00
dP
54951e39a1
Fix #8797 : Use logical rail length when placing signals ( #9652 )
2021-11-19 00:07:22 +00:00
nchappe
2cb6351af5
Fix: Update last servicing dates when using the date cheat ( #9694 )
2021-11-19 00:04:22 +00:00
Bernard Teo
0533b666b7
Fix #9702 : Display order window for vehicle group on ctrl-click only when using shared orders ( #9704 )
2021-11-19 00:03:52 +00:00
Jonathan G Rennison
f22a5685c3
Divide cost instead of cost_factor in running costs division
...
This is to prevent 0 running costs for cheap vehicles when
cost_factor would be < 1
2021-11-18 23:55:48 +00:00
Jonathan G Rennison
bb8e4eb18a
Adjust stopped/depot detection for running costs division
...
Fix v/this use in Train::GetRunningCost
2021-11-18 23:41:12 +00:00
Jonathan G Rennison
f16657ec96
Fix running costs divider settings saveload
2021-11-18 23:34:39 +00:00
Jonathan G Rennison
33bedf0061
Allow changing running cost divider settings in game
2021-11-18 23:31:21 +00:00
Jonathan G Rennison
fddc9fb975
Increase max value of running cost divider settings
2021-11-18 23:30:40 +00:00
translators
f6886754ff
Update: Translations from eints
...
greek: 2 changes by dionisis84
german: 2 changes by danidoedel
2021-11-18 18:47:13 +00:00
reldred
904ff346c2
Initial commit to allow configuring running costs as a fraction (1/1 default thru 1/4) independently for both vehicles stopped in depots (doesn't work for planes, I'm not smart enuff), or vehicles that are stationary.
2021-11-18 12:47:23 +10:30
Jonathan G Rennison
fc58ed9987
Codechange: Remove CargoSpec::multipliertowngrowth which is unused ( #9701 )
...
This is set by cargo property 19.
This property is only implemented in TTDPatch.
2021-11-16 22:48:21 +00:00
Jonathan G Rennison
782fba3064
Fix windows not being deleted when order changed during deletion
2021-11-16 18:40:42 +00:00
Jonathan G Rennison
25a467730e
Fix signals on approach to tunnel/bridge entrance showing wrong aspect
...
When signal change propagated outward from the tunnel/bridge,
such as in tunnel/bridge signal add/change.
2021-11-16 02:49:44 +00:00
Jonathan G Rennison
6a4d849cba
Connect new plan lines to end of previous line when ctrl pressed
2021-11-16 00:03:04 +00:00
Jonathan G Rennison
f53b295a58
Fix overuse of _current_plan in struct Plan methods
2021-11-16 00:02:08 +00:00
Jonathan G Rennison
95a60d520e
Increase object class ID limit
2021-11-15 23:36:03 +00:00
Charles Pigott
cf16f452da
Fix #9680 : Recalculating aircraft positions before map array updates caused crashes ( #9699 )
2021-11-15 13:39:41 +00:00
Jonathan G Rennison
76ad272f3b
Fix reservation loop with single-vehicle trains and signalled tunnel/bridges
2021-11-14 00:00:22 +00:00
Jonathan G Rennison
b259d04339
Add tunnel/bridge entrance/exit values to entry direction conditional
2021-11-13 22:52:27 +00:00
Jonathan G Rennison
74bfe4e6d2
Allow placing routing restrictions on tunnel/bridge entrance/exit signals
...
No reserve through support
2021-11-13 22:28:14 +00:00
Jonathan G Rennison
1ee59c8333
Fix pending speed restrictions not being applied on signalled tunnel/bridges
...
Distance remaining was not decremented
2021-11-13 21:24:31 +00:00
Jonathan G Rennison
3ea4ac98e7
Fix missing VehicleRailFlags in DumpVehicleFlags
2021-11-13 21:11:11 +00:00
Jonathan G Rennison
8c8c0e250a
Fix exit signal state when unable to leave signalled custom bridge head
...
When the exit direction is different to the bridge direction.
2021-11-13 20:37:18 +00:00
frosch
5f6303f985
Fix: don't complain when the sprite font is missing glyphs. ( #9692 )
...
Silently auto-pick a suitable font.
2021-11-13 21:01:16 +01:00
Jonathan G Rennison
e661a07425
Fix train not stuck action clearing wait counter when in depot/tunnel/bridge
2021-11-13 18:15:57 +00:00
Jonathan G Rennison
48977853a4
Simplify some rail/signalled tunnel/bridge tile checks
2021-11-13 17:26:07 +00:00
Jonathan G Rennison
dad007e16a
Fix spelling of TRPRF_SPEED_RESTRICTION_SET
2021-11-13 02:00:37 +00:00
translators
f8efab4653
Update: Translations from eints
...
japanese: 1 change by akaregi
dutch: 3 changes by Afoklala
2021-11-12 18:46:13 +00:00
Jonathan G Rennison
dca7e7bc58
Merge branch 'master' into jgrpp
2021-11-12 18:07:11 +00:00
Jonathan G Rennison
3308edf792
Try to extend reservation when passing sighting distance of non-end signal
2021-11-12 01:02:29 +00:00
Jonathan G Rennison
2a2b988424
Fix premature reservation end after reversing station found
...
ChooseTrainTrackLookAheadStateFlags/TrainReservationLookAheadFlags mixup
2021-11-12 00:03:09 +00:00
translators
62795a2e6d
Update: Translations from eints
...
russian: 2 changes by Ln-Wolf
2021-11-11 18:48:27 +00:00
Jonathan G Rennison
2b1993ee4d
Fix crash with wrong-way running on multi-aspect signalled tunnel/bridge
...
When using the ignore signals buttons and updating middle signal states
2021-11-11 18:06:35 +00:00
Jonathan G Rennison
5ac6ea8cd1
Suppress unitialised warning in GenerateTownNameString on some platforms
2021-11-11 02:49:06 +00:00
Jonathan G Rennison
34f8098689
Suppress Wdeprecated-copy warning on clang/emscripten
2021-11-11 02:16:27 +00:00
Jonathan G Rennison
c4e3c2cd75
Avoid unknown pragma GCC diagnostic warning on GCC < 9
2021-11-11 00:54:57 +00:00
translators
4bcbcbc58f
Update: Translations from eints
...
tamil: 2 changes by Aswn
2021-11-10 18:52:03 +00:00
Jonathan G Rennison
58d8418f83
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/arabic_egypt.txt
2021-11-10 01:05:30 +00:00
Tyler Trahan
48c1c7f221
Cleanup: Fix typo in overflowsafe_type comment
2021-11-09 20:51:38 +01:00
translators
236f71640c
Update: Translations from eints
...
english (us): 2 changes by 2TallTyler
arabic (egypt): 49 changes by AviationGamerX
korean: 17 changes by telk5093
catalan: 2 changes by J0anJosep
danish: 4 changes by nielsmh
french: 2 changes by glx22
portuguese: 2 changes by azulcosta
2021-11-09 18:50:34 +00:00