Commit Graph

48795 Commits (81a67b5b24d1dd42e22de793f252a77b1c60fe54)
 

Author SHA1 Message Date
Jonathan G Rennison 81a67b5b24 Remove fake/real indirection in HouseResolverObject 4 years ago
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.
4 years ago
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
4 years ago
Jonathan G Rennison ab1b8ab209 Scheduled dispatch: Add schedule end time to info line 4 years ago
Jonathan G Rennison 9917a1daef Scheduled dispatch: Add hints about dispatch order to timetable window
Adjust condition for dispatch order
4 years ago
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.
4 years ago
Jonathan G Rennison 4c15e3dacc Scheduled dispatch: Fix timetable window times after scheduled dispatch 4 years ago
Jonathan G Rennison 98d76832fc Scheduled dispatch: Do not require timetable to be fully timetabled 4 years ago
Jonathan G Rennison e53e960c50 Scheduled dispatch: Improvements to handling first order wait times 4 years ago
Jonathan G Rennison bffd52b74a Scheduled dispatch: Do not show required vehicles if conditional order present 4 years ago
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.
4 years ago
translators 791eaedb64 Update: Translations from eints
tamil: 13 changes by aswn
5 years ago
PeterN fff05cf117
Fix #7868: Missing override attribute. (#7963) 5 years ago
JMcKiern 2158e26b9e Fix #7950: Incorrect setup of normal screenshot viewport 5 years ago
glx bf4672864d Fix #7960: use the same method as findversion.sh to determine tag 5 years ago
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.
5 years ago
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
5 years ago
Jonathan G Rennison 32284e6449 Linkgraph: Fix demand allocation in partitioned graphs 5 years ago
Jonathan G Rennison 5b83e5ff78 Linkgraph: Handle non-integer multiple total demand in AsymmetricScalerEq 5 years ago
translators f88ac83408 Update: Translations from eints
indonesian: 1 change by fanioz
5 years ago
glx 341941af85 Fix #7952: don't try to access destroyed QueryStrings 5 years ago
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
5 years ago
Jonathan G Rennison e071da35fa Fix 42481344: Fix template replacement index not being updated 5 years ago
glx 9d5dd893cd Codechange: [AzurePipelines] remove commit-checker 5 years ago
glx fb3de33a38 Add: [Actions] commit-checker workflow 5 years ago
JMcKiern 6dfe5c852e Fix #7927: Incorrect resolution shown in "Huge screenshot" query window. (#7949) 5 years ago
Jonathan G Rennison c4ec533d44 Fix train-only conditional orders being listed in non-train dropdown 5 years ago
Jonathan G Rennison c3fce9c09b Fix ff628813: Inverted test for if train refit state matches template 5 years ago
Jonathan G Rennison 7611e1229c Use 0 for per-cargo percent loaded value when capacity is 0 5 years ago
Jonathan G Rennison 09b13dd484 Add conditional orders for cargo load percentage and waiting cargo amount
See: #90
5 years ago
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
5 years ago
Jonathan G Rennison 07f5b86dfc YAPF: Remove pointer indirection for YAPF game settings 5 years ago
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.
5 years ago
Jonathan G Rennison f8a97753b5 TBTR: Fix height/drawing artefacts when resizing replacement window 5 years ago
Jonathan G Rennison ee6d808578 TBTR: Template replacements now also apply to child groups 5 years ago
Jonathan G Rennison ff6288139e TBTR: Send train to depot when replacement due but servicing disabled
This is to match autoreplace
5 years ago
Jonathan G Rennison 06a2bedfe5 TBTR: Fix template replacement refits having 0 cost 5 years ago
Jonathan G Rennison 424813446f TBTR: Avoid unnecessary iterations of template replacement pool 5 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
translators 4366f8e46a Update: Translations from eints
finnish: 8 changes by ln
italian: 25 changes by AlphaJack
5 years ago
translators 5a4b27d73a Update: Translations from eints
finnish: 54 changes by ln
5 years ago
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
5 years ago
glx dbbd0f5ddc Fix: [OSX] Don't show a crash/assertion message box for a GUI-less video driver. 5 years ago
Jonathan G Rennison 87700bfe0e Codechange: Use cached town name for town list window filtering 5 years ago
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.
5 years ago
Jonathan G Rennison c3223903ed Codechange: Cache resolved town, station and industry name strings 5 years ago
Jonathan G Rennison f1734e7815 Change: Only resort industry directory window on production change if necessary 5 years ago
Jonathan G Rennison 22ba048c89 Change: Only resort town directory window on population change if necessary 5 years ago