Commit Graph

48859 Commits

Author SHA1 Message Date
Niels Martin Hansen
805ecd32be Fix 5880f147: Integer width warnings 2020-02-06 16:09:36 +00:00
Niels Martin Hansen
3fcb240f8e Fix d84b67e5: Station rating effects affecting too large area 2020-02-06 16:39:25 +01:00
Jonathan G Rennison
4d9e07e885 Viewport: Split sprite sort regions when more than 60 sprites present 2020-02-05 22:57:52 +00:00
translators
58c8ff456e Update: Translations from eints
korean: 2 changes by telk5093
2020-02-05 19:45:39 +01:00
Jonathan G Rennison
6e6be7f36f Fix 09b13dd4: Crash when opening order window of competitor vehicle 2020-02-05 17:05:35 +00:00
Bjarni Thor
5880f1479f Feature #7756: Allow server to supply a reason to kicked/banned clients
This commit adds the missing feature of allowing the server owner to
    provide a reason for kicking/banning a client, which the client sees in
    a pop-up window after being kicked. The implementation extends the
    network protocol by adding a new network action called
    NETWORK_ACTION_KICKED that is capable of having an error string, unlike
    the other network error packages.  Additionally, the kick function
    broadcasts a message to all clients about the kicked client and the
    reason for the kick.
2020-02-04 22:17:39 +00:00
glx
b5d56559d2 Fix #7969: limit recursion during alias execution 2020-02-04 18:41:38 +01:00
Jonathan G Rennison
a561f29dc3 Viewporrt map mode: Bridge and tunnel cache optimisations 2020-02-04 00:43:02 +00:00
Jonathan G Rennison
76f68c48f5 Cache whether vehicle is currently drawn: Vehicle::IsDrawn() 2020-02-03 18:58:19 +00:00
Jonathan G Rennison
81a67b5b24 Remove fake/real indirection in HouseResolverObject 2020-02-03 18:31:03 +00:00
translators
ac7cc18ab9 Update: Translations from eints
czech: 22 changes by djst
2020-02-02 19:45:40 +01:00
Jonathan G Rennison
14af8701df Fix #6566: Fix signed integer overflow in viewport draw area chunking
This caused drawing areas larger than 2097151 pixels at 8x zoom to
not be subdivided into smaller chunks as required.
This resulted in pathological performance issues in the sprite sorter.
2020-02-02 15:37:14 +01:00
Jonathan G Rennison
6f6bac5212 Fix signed integer overflow in viewport draw area chunking
This caused drawing areas larger than 2097151 pixels at 8x zoom to
not be subdivided into smaller chunks as required.
This resulted in pathological performance issues in the sprite sorter.
2020-02-02 02:04:06 +00:00
glx
196157b29e Fix #7966: SQInteger is 64-bit, print it as 64-bit 2020-02-01 10:14:51 +00:00
translators
be9ca4689e Update: Translations from eints
korean: 4 changes by telk5093
2020-01-30 19:45:39 +01:00
kiwitreekor
5df01bf95e Add: [NewGRF] Station variable 6A, querying GRFID of nearby station tiles (#7956) 2020-01-29 21:23:23 +01:00
Jonathan G Rennison
81a1094cc8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_cmds.cpp
#	src/date.cpp
#	src/economy.cpp
#	src/misc.cpp
#	src/newgrf_house.cpp
2020-01-29 19:32:06 +00:00
Jonathan G Rennison
ab1b8ab209 Scheduled dispatch: Add schedule end time to info line 2020-01-29 02:19:47 +00:00
Jonathan G Rennison
9917a1daef Scheduled dispatch: Add hints about dispatch order to timetable window
Adjust condition for dispatch order
2020-01-29 00:25:09 +00:00
Jonathan G Rennison
2fee030a26 Change: Algorithm for transfer feeder payments
The original algorithm pays intermediate legs in feeder systems based
on the start and end stations of that particular leg.
This tends to result in large negative payments on the final leg for
journeys with many feeder legs, as the overall feeder payment increases
with the number of legs, and the final leg is penalised for discrepancies
between the previous leg payments and the actual payment for delivery
from the source to the destination.
The feeder share setting is a partial mitigation, however it is difficult
to tune as a suitable value depends on the number of legs and the network
topology, which are often not the same for all vehicles.

The new incremental algorithm pays the cargo payment from the source
station to the end station of the current leg, minus any previous
transfer feeder payments for each leg.
This prevents unbounded increase of feeder payments and therefore avoids
the issue of excessive negative payments on the final leg.
Feeder payments may be negative, e.g. in the case of poorly performing
or highly indirect legs. This is better than penalising the final leg.
This mode reduces the need to tune the feeder shares setting to the
current network.

The feeder share setting applies in the existing way.
2020-01-28 23:37:16 +01:00
Jonathan G Rennison
4c15e3dacc Scheduled dispatch: Fix timetable window times after scheduled dispatch 2020-01-28 19:22:57 +00:00
Jonathan G Rennison
98d76832fc Scheduled dispatch: Do not require timetable to be fully timetabled 2020-01-28 19:21:56 +00:00
Jonathan G Rennison
e53e960c50 Scheduled dispatch: Improvements to handling first order wait times 2020-01-27 20:31:12 +00:00
Jonathan G Rennison
bffd52b74a Scheduled dispatch: Do not show required vehicles if conditional order present 2020-01-27 20:03:50 +00:00
Patric Stout
a38122e6f2 Fix: [AzurePipelines] the changelog-generation-script was mixing UTC and non-UTC
'date -u' returns the time in UTC. 'git log' uses local time. In
result, when a machine is on for example +0100, it would generate
the changelog of 7 days 1 hour, instead of 7 days. This is a silly
oversight.
2020-01-26 21:11:47 +00:00
translators
791eaedb64 Update: Translations from eints
tamil: 13 changes by aswn
2020-01-26 19:45:44 +01:00
PeterN
fff05cf117 Fix #7868: Missing override attribute. (#7963) 2020-01-26 16:19:04 +00:00
JMcKiern
2158e26b9e Fix #7950: Incorrect setup of normal screenshot viewport 2020-01-26 14:48:35 +00:00
glx
bf4672864d Fix #7960: use the same method as findversion.sh to determine tag 2020-01-26 14:47:54 +00:00
Niels Martin Hansen
c8779fb311 Feature: NewGRF callback profiling (#7868)
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
2020-01-26 13:45:51 +01:00
Jonathan G Rennison
4ee8215987 Fix #129: Move route step markers to correct part of sprite ID space
This is to avoid moving sprite IDs shared with trunk/NewGRFs
2020-01-26 00:12:54 +00:00
Jonathan G Rennison
32284e6449 Linkgraph: Fix demand allocation in partitioned graphs 2020-01-25 12:34:20 +00:00
Jonathan G Rennison
5b83e5ff78 Linkgraph: Handle non-integer multiple total demand in AsymmetricScalerEq 2020-01-25 09:14:53 +00:00
translators
f88ac83408 Update: Translations from eints
indonesian: 1 change by fanioz
2020-01-24 19:45:40 +01:00
glx
341941af85 Fix #7952: don't try to access destroyed QueryStrings 2020-01-22 19:53:27 +00:00
Jonathan G Rennison
dd99fd646d Merge branch 'master' into jgrpp
# Conflicts:
#	src/base_station_base.h
#	src/industry.h
#	src/industry_cmd.cpp
#	src/industry_gui.cpp
#	src/lang/korean.txt
#	src/os/macosx/crashlog_osx.cpp
#	src/station_cmd.cpp
#	src/town.h
#	src/town_cmd.cpp
#	src/town_gui.cpp
2020-01-20 18:36:55 +00:00
Jonathan G Rennison
e071da35fa Fix 42481344: Fix template replacement index not being updated 2020-01-19 21:16:09 +00:00
glx
9d5dd893cd Codechange: [AzurePipelines] remove commit-checker 2020-01-19 09:05:20 +00:00
glx
fb3de33a38 Add: [Actions] commit-checker workflow 2020-01-19 09:05:20 +00:00
JMcKiern
6dfe5c852e Fix #7927: Incorrect resolution shown in "Huge screenshot" query window. (#7949) 2020-01-18 23:05:51 +01:00
Jonathan G Rennison
c4ec533d44 Fix train-only conditional orders being listed in non-train dropdown 2020-01-18 22:02:11 +00:00
Jonathan G Rennison
c3fce9c09b Fix ff628813: Inverted test for if train refit state matches template 2020-01-18 21:49:36 +00:00
Jonathan G Rennison
7611e1229c Use 0 for per-cargo percent loaded value when capacity is 0 2020-01-18 20:48:41 +00:00
Jonathan G Rennison
09b13dd484 Add conditional orders for cargo load percentage and waiting cargo amount
See: #90
2020-01-18 20:32:42 +00:00
Jonathan G Rennison
bb363695fc YAPF: Prevent user for configuring signal penalties to negative values
Warn if signal penalty polynomial goes negative, and clamp to non-negative
2020-01-17 19:23:03 +00:00
Jonathan G Rennison
07f5b86dfc YAPF: Remove pointer indirection for YAPF game settings 2020-01-17 19:21:58 +00:00
Jonathan G Rennison
f79ec13852 Timetable automation: Bias wait time adjustments in positive direction
Remove case where wait time is set directly when it is less than half
the current value, this is still used for travel times.
2020-01-17 18:45:45 +00:00
Jonathan G Rennison
f8a97753b5 TBTR: Fix height/drawing artefacts when resizing replacement window 2020-01-17 00:09:01 +00:00
Jonathan G Rennison
ee6d808578 TBTR: Template replacements now also apply to child groups 2020-01-16 21:47:29 +00:00
Jonathan G Rennison
ff6288139e TBTR: Send train to depot when replacement due but servicing disabled
This is to match autoreplace
2020-01-16 21:10:56 +00:00