summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
AgeCommit message (Collapse)Author
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2020-05-13Fix #8137: New clients can't join (desync) after funding an industrydP
2020-05-13Codechange: Refactor FindStationsAroundTiles to avoid code duplicationdP
2020-04-12Fix #8081: Check for waypoints when removing docking tilesglx
2020-02-22Fix f5381798: Station::GetTileArea reduced docks to a single tile (#8014)SamuXarick
2020-02-06Fix d84b67e5: Station rating effects affecting too large areaNiels Martin Hansen
2020-01-12Codechange: Cache resolved town, station and industry name stringsJonathan G Rennison
2020-01-12Feature: Improved logic of sharing industry production between 3 or more ↵dP
stations
2019-12-24Codechange: Use KDTree for AirportGetNearestTown (#7424)SamuXarick
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace order related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace station related FOR_ALL with range-based for loopsglx
2019-12-08Fix: Infrastructure total update when removing tram road stopJonathan G Rennison
The wrong road owner was used when updating the tram infrastructure total. This could result in desyncs, negative infrastructure totals, etc.
2019-12-01Fix #7847: Use ViewportSign coordinates for sign Kdtree coordinates (#7849)Niels Martin Hansen
Ensure the same coordinates are used for station/town/player signs regardless of how the landscape changes below it after the coordinates were first determined. By keeping track of whether each ViewportSign is valid for Kdtree use (and only ever registering the viewport sign when the object is valid) a lot of code can be simplified and become more robust at the same time.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-11-03Fix #7820: Heap use after free when removing oil rigJonathan G Rennison
2019-10-26Fix #7733: Crash when removing a dock next to an industry without a stationCharles Pigott
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-09-06Fix #7626: Allow building drive-through stops over one-way/blocked roads ↵Daniel Lee
owned by towns (instead of crashing).
2019-08-13Fix: RemoveAirport function now returns with 'Aircraft in the way' error ↵Juriy Petrochenkov
message as it should be.
2019-06-30Codechange: Restrict docking points of docks.peter1138
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-05-04Change: Allow building road stops over self-owned one-way/blocked road.peter1138
2019-05-03Fix #7481: Just remove oil rig stations right away, don't clean them firstNiels Martin Hansen
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
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.