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
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
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
Jonathan G Rennison
06a2bedfe5
TBTR: Fix template replacement refits having 0 cost
2020-01-16 20:33:45 +00:00
Jonathan G Rennison
424813446f
TBTR: Avoid unnecessary iterations of template replacement pool
2020-01-16 01:16:08 +00:00
Patric Stout
3b177af826
Add: [Doxygen] Add the current version of documentation in header ( #7940 )
...
While at it, renamed the project names to reflect how we currently
refer to them.
2020-01-15 23:07:37 +01:00
xdavidwu
8fe38afd2b
Fix: [SDL2] Correct name of the video driver in debug log
...
SDL_GetVideoDriver(0) returns name of first video driver included in
the library, not the driver currently used.
SDL_GetCurrentVideoDriver() does what we want here.
2020-01-15 20:16:53 +00:00
Pavel Stupnikov
d7a928a08b
Feature: GS method to control engine availability for a specific company ( #7791 )
...
* Feature: GS method to allow company to use an engine before its introduction date
* Feature: GS method to retire an engine early for a specific company
2020-01-15 18:46:26 +01:00
translators
4366f8e46a
Update: Translations from eints
...
finnish: 8 changes by ln
italian: 25 changes by AlphaJack
2020-01-14 19:45:39 +01:00
translators
5a4b27d73a
Update: Translations from eints
...
finnish: 54 changes by ln
2020-01-13 19:45:41 +01:00
Berbe
2fc2058b3b
Feature: Auto-restart loads the original resources again
...
If the game was started loading a savegame or scenario, auto-restart will load a new random map.
This is inconsistent with the case in which a heightmap was loaded, as in that case the heightmap is kept as a basis for a new game.
This proposal solves this heterogeneity be considering the originally loaded resource shall be kept, hence savegames & scenarios shall be reloaded
2020-01-12 23:47:19 +01:00
glx
dbbd0f5ddc
Fix: [OSX] Don't show a crash/assertion message box for a GUI-less video driver.
2020-01-12 22:02:10 +01:00
Jonathan G Rennison
87700bfe0e
Codechange: Use cached town name for town list window filtering
2020-01-12 19:37:43 +00:00
Jonathan G Rennison
d35f35a968
Codechange: Use cached town, station, industry names for list window sorting
...
This is to avoid needing to expensively regenerate name strings on
every comparison when sorting by name in the town/station/industry
list windows.
2020-01-12 19:37:43 +00:00
Jonathan G Rennison
c3223903ed
Codechange: Cache resolved town, station and industry name strings
2020-01-12 19:37:43 +00:00
Jonathan G Rennison
f1734e7815
Change: Only resort industry directory window on production change if necessary
2020-01-12 19:37:43 +00:00