summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
AgeCommit message (Collapse)Author
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-29Codechange: let IsUnique.* functions accept std::stringrubidium42
2021-05-27Fix: do not hide parameter by local variable with the same namerubidium42
2021-05-15Change: Use gender-neutral pronounsrubidium42
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2021-05-03Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loopsglx22
2021-05-03Fix #9113: Assertion failure when removing airport with order backup (#9182)Jonathan G Rennison
2021-05-02Codechange: Use std::vector for NewGRF station tile sprite layouts.Peter Nelson
2021-05-02Codechange: Use std::vector for NewGRF station platform layouts.Peter Nelson
This avoids the need to custom memory management and additional members. This also resolves use-after-free if modifying copied layouts, so presumably nobody has ever done that.
2021-04-29Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loopsglx22
2021-03-07Fix #8809: Crash when removing airport when hangar window openJonathan G Rennison
2021-02-05Codechange: Apply coding style (#8640)SamuXarick
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-07Fix 0125892: Warning about unsigned unary minusSamuXarick
2021-01-07Fix #7945: Add cost of clearing the sloped tile when placing a dock (#7947)SamuXarick
2020-12-28Fix #8297: Infrastructure counters for road tunnels, bridges, depots … (#8454)gooball
The previous fix 887e9481ff0e70df6bf93ce15a3899a03f124c50 only worked for roads and failed to consider a multiplier used for the infrastructure totals for tunnels/bridges. Also, depots and bus/truck stops are counted as 2 road pieces on creation but were only counted as 1 road piece on conversion because the function DiagDirToRoadBits() was used, which only ever returns single-piece road segments. Co-authored-by: A. S <admin-git@sotai.tk>
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2020-12-22Feature: Set exclusive access to industry from GS (#8115)Pavel Stupnikov
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)