summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
AgeCommit message (Collapse)Author
2019-04-13Codechange: Replace duplicated code with TileArea::Expand() (#7467)PeterN
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-08Fix #6222: Advanced sprite layout sometimes showed incorrect railtype ground ↵kiwitreekor
tile
2019-03-30Codechange: Check airport layout would fit within map bounds before ↵PeterN
iterating tiles. (#7429)
2019-03-29Codechange: Distance between town and airport has already just been found, ↵PeterN
so use it. (#7427) Previously the distance was thrown away, only to be expensively recalculated again.
2019-03-27Fix: Incorrect display of industry production around tiles. (#7426)PeterN
Display of industry production around tiles (as shown when placing a station) did not take account of the station catchment changes, so still showed production from an industry even if it was not covered by a tile. This is fixed by making a set of nearby industries that are covered, instead of looping over all possible industries.
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Include() with include()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Erase() with std::vector::erase()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-24Fix #7374: Ensure k-d trees are always updated when station sign movesNiels Martin Hansen
2019-03-13Codechange: Make FindStationsAroundTile() out-parameter stations const to ↵peter1138
prevent incorrect modification.
2019-03-13Fix #7372: FindStationsAroundTiles() with caching returns no result for ↵peter1138
industry tiles. Currently this can only be triggered by NewGRF house tiles querying for cargo acceptance history of nearby stations (var 0x64) with a tile offset, and providing an offset that happens to point to an industry tile. This serves no useful purpose.
2019-03-13Cleanup: Remove questionable syntax in station rating calculationJohannes E. Krause
2019-03-09Codechange: Make a merged k-d tree index of all viewport signsNiels Martin Hansen
2019-03-09Codechange: Make a k-d tree index of stationsNiels Martin Hansen
2019-03-09Fix: Show industry name in Land Area Information window for oil-rig type ↵Peter Nelson
stations instead of just 'Oil Rig'
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-03-09Codechange: Convert StationList from SmallVector to std::set.peter1138
2019-03-08Feature: Industries with neutral stations (e.g. Oil Rig) only supply/accept ↵PeterN
cargo to/from their neutral station. (#7234) This change is a controlled by a game setting, located under Environment -> Industries which allows toggling the behaviour. It defaults to enabled. "Company stations can serve industries with attached neutral stations" When enabled, industries with attached neutral station (such as Oil Rigs) may also be served by company-owned stations built nearby. This is the traditional behaviour. When disabled, these industries may only be served by their neutral station. Any nearby company-owned stations won't be able to serve them, nor will the neutral station serve anything else other than the industry.
2019-02-21Change: Owner of vehicle with exclusive transport rights may now load cargo ↵SamuXarick
from neutral stations (#7256)
2019-02-18Codechange: Move some common code after adding/removing tiles to a station ↵Juanjo
to its own function.
2019-01-19Change: Add path cache for ships.Peter Nelson
2019-01-17Fix: Some code and comment typosnikolas
Found with codespell
2019-01-11Add: when placing non-rectangular airport, consider airport tile table tiles ↵Johannes E. Krause
only (patch by adf88, #6613)
2018-10-31Fix: Only possible to build station next to competitors by using CTRL+clickJoost Hopmans
Fix by checking only for stations owned by the current company when inspecting if there are multiple adjoining stations to the one being built. When building next to 2 or more owned stations we don't know which station should be extended. For other companies' stations that's not a problem since our station won't merge with theirs anyway. Calling to BuildStationPart should never have another company's station as a parameter to attach to unless the client is malicious, so just returning a generic error in that case.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-07-26Change: Extend rail types to 64 (6 bit storage)Peter Nelson
2018-06-06Fix: One-way roads could be over-built by road stops (regardless of road owner.)Peter Nelson
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-03-20(svn r27810) -Change: Factor out reservation-handling code in station_cmd.cpppeter1138
Code dealing with freeing and restoring track reservations is duplicated in CmdBuildRailStation and RemoveFromRailBaseStation; make separate functions for it. (cirdan)
2016-12-09(svn r27686) -Change: List railtype of rail tiles explicitly in the tile ↵frosch
info window.
2016-12-04(svn r27682) -Fix: Don't check if links are alive for manually routed cargofonsinchen
2016-12-04(svn r27681) -Fix: When deleting stale links, iterate through order lists ↵fonsinchen
before iterating through vehicles
2016-11-05(svn r27676) -Codechange: Rename catenary functions, so that they refer ↵frosch
unambiguously to either RoadCatenary or RailCatenary.
2015-06-21(svn r27311) -Fix: Mark infrastructure window dirty in more cases. (marcole)frosch
2015-06-20(svn r27308) -Fix [FS#6283]: Prevent breaking of tram-reversal points by ↵frosch
adding more road pieces. (adf88)
2015-04-26(svn r27256) -Change [FS#6165]: Do not consider cargo that is already being ↵frosch
loaded as waiting cargo wrt. the station rating.
2015-04-26(svn r27251) -Feature [FS#6252]: Make Ctrl+Remove-Roadstop also remove the ↵frosch
road, just like for rail stations. (adf88)
2015-04-25(svn r27246) -Codechange: Deduplicate code between removing part of a rail ↵frosch
station and removing the whole rail station. (adf88)
2015-04-25(svn r27245) -Fix [FS#6251]: Removing a rail waypoint used the ↵frosch
remove-rail-station cost. (adf88)
2015-04-11(svn r27225) -Change [FS#6262]: Be more lenient about road stop removal when ↵planetmaker
at least one stop could be removed (afd88)
2015-03-07(svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects.frosch
2014-09-21(svn r26891) -Codechange: Add methods to retrieve flows from a FlowStatMapfonsinchen
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
2014-06-14(svn r26646) -Fix [FS#6041]: Save locations instead of distances in link ↵fonsinchen
graphs to reduce size.
2014-05-11(svn r26582) -Feature-ish: quickly decay cargo after about 21 months of not ↵rubidium
having picked any of the cargo, and prevent houses and industries providing more cargo