summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
AgeCommit message (Collapse)Author
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2021-01-08Fix #7656: destroying a tunnel/bridge now first removes the tracks for cost ↵Patric Stout
calculation This means that for rail tunnel/bridges, the rail is first sold, and the tunnel/bridge is destroyed after. This means destroying tunnels/ bridges now often makes you money, instead of costing. Similar, with road/tram tracks. Destroying a road+tram tunnel/bridge now costs the same amount of money as first removing the tram tracks and than destroying the road tunnel/bridge. Especially as tram tracks generate money when removing, this is a noticeable difference.
2021-01-08Fix: replacing a bridge didn't charge for clearing last tilePatric Stout
It only considered the end-tile (or start-tile) for the bridge, instead of both. This is obvious in the rest of the code which constantly does "+ 2"; this being the only place that does a "+ 1".
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Doc: Remove some SmallVector references from documentation.J0anJosep
2020-12-15Codechange: Make use of the improved C++17 emplace_back function.Michael Lutz
2020-06-28Fix #8131: small bridges also have pillars drawnilayaraja97
2020-02-10Fix #7958: Use NewGRF provided catenary sprites when either front or back is ↵Niels Martin Hansen
overridden
2020-02-10Codechange: Refactor road bridge catenary drawingNiels Martin Hansen
2020-01-05Fix #6667: Also recalculate bridge costs for 'spectated' AI companiesCharles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-01-05Fix 6a3d411: Silence truncation warningNiels Martin Hansen
2018-10-31Codechange: Merge some duplicated functionsCharles Pigott
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-07-26Change: Extend rail types to 64 (6 bit storage)Peter Nelson
2018-07-22Fix: Use after free in CmdBuildTunnel (#6856)Jonathan G Rennison
Use after free could occur when when excavating far end removed multiple NewGRF objects
2016-12-09(svn r27686) -Change: List railtype of rail tiles explicitly in the tile ↵frosch
info window.
2016-11-05(svn r27676) -Codechange: Rename catenary functions, so that they refer ↵frosch
unambiguously to either RoadCatenary or RailCatenary.
2015-06-21(svn r27313) -Fix [FS#6317]: Adding tram to town-owned bridges assigned an ↵frosch
incorrect owner to the tram and did not count infrastructure counts properly. (marcole)
2015-03-28(svn r27209) -Add: Draw path reservation on the whole bridge, not only on ↵frosch
the bridge heads.
2015-03-28(svn r27208) -Fix: Draw correct overlay sprites for path reservations on ↵frosch
bridges and tunnels.
2015-02-22(svn r27157) -Fix: Mark bridge middle tiles dirty when ↵frosch
building/removing/changing bridges.
2014-09-21(svn r26882) -Feature: allow limiting the height of bridges (ic111)rubidium
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-01-26(svn r26277) -Add [FS#5849]: Display speed limit also for road bridges in ↵frosch
the TileInfo window.
2013-11-25(svn r26111) -Fix: theoretical case where sprite table could be overread for ↵rubidium
aqueducts that start at flat land
2013-11-23(svn r26072) -Cleanup: mark some unreachable default cases by NOT_REACHED()rubidium
2013-05-07(svn r25231) -Fix (r25227): Also update infrastructure counts. (adf88)frosch
2013-05-06(svn r25227) -Fix [FS#5541]: Give bridges owned by noone (from bankrupt ↵frosch
companies) to the first company which replaces the bridge. Everyone could have removed/rebuild the bridge anyway.
2013-04-03(svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed ↵frosch
to clear bridges with trams.
2013-01-13(svn r24912) -Fix [FS#5389]: Upgrading bridges could steal road types. (adf88)frosch
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2013-01-08(svn r24895) -Fix [FS#5436]: Allow downgrade of road bridges in the scenario ↵planetmaker
editor
2012-07-18(svn r24413) -Add [FS#5221-ish]: Allow overbuilding bridges with the same ↵frosch
type when adding a roadtype.
2012-04-25(svn r24179) -Codechange: move some variables of Town to TownCacherubidium
2012-02-15(svn r23952) -Feature: [NewGRF] Customisable tunnel portals for rail types ↵michi_cc
(sprites by Snail).
2012-01-28(svn r23864) -Fix: Railtype overlays were drawn 'only transparent' on ↵frosch
invisible bridges.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23629) -Add: allow ScriptRoad::BuildRoad, ScriptBridge::BuildBridge ↵truebrain
(for roads) and ScriptTunnel:BuildTunnel (for roads) to work for GameScript
2011-12-17(svn r23586) -Fix: Draw PBS reservation also for bridges with railtype overlays.frosch
2011-12-17(svn r23584) -Fix: Draw PBS reservations also for tunnels with railtype ↵frosch
overlays.
2011-12-03(svn r23413) -Add: Company infrastructure counts for canals.michi_cc
2011-12-03(svn r23412) -Add: Company infrastructure counts for road.michi_cc