summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
AgeCommit message (Collapse)Author
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-03Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loopsglx22
2021-03-11Fix #8647: draw tram catenary using 4 bounding boxes.frosch
The back sprite is now supposed to contain west, north and east pillars. The front sprite is supposed to contain the south pillar and the wires.
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-02-07Fix 0125892: Don't crash when towns upgrade road tiles during expansion (#8651)Matt Kimber
2021-01-07Fix #8068: always allow removal of tram track if that generates money (#8509)Patric Stout
Even if you are completely broke, generating money should always be allowed.
2021-01-05Change: converting town-owned road types now require town rating (#8457)gooball
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 assert_compile macro with static_assertCharles Pigott
2020-07-10Change #8162: Conversion of Town Road, Impr. ErrorTrevorShelton
This changes the error when you attempt to convert a road owned by a town to another road, specifying that it's owned by the town rather than simply being incompatible. As the original poster of the issue pointed out, these seemed to be the only occurences of the incompatible road string, so now it's unused, but they would be left untouched in case of future use or since changing it to a different error would do the work of removing it then. If requested, it likely wouldn't be too difficult to remove the string entirely.
2020-06-27Change: Also make roadside trees match the tree transparency optionCharles Pigott
2020-01-05Fix: Assertion failure when post road-works cleanup removes all road piecesJonathan G Rennison
2019-12-31Fix #7625: Road infrastructure cost is correctly updated on upgrading your ↵Daniel Lee
own roads.
2019-12-21Fix: unused variable warningsglx
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-07-06Fix #7633: Allow zero-cost track conversion to succeedNiels Martin Hansen
2019-05-10Fix #7576: Crash when destroying rail/tram crossing. (#7579)PeterN
2019-05-04Fix c02ef3e456: Incorrect order of road toolbar icons.peter1138
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-01-30Fix #7142: Missing map bounds check when building long roads.Peter Nelson
2019-01-12Codechange: Define INVALID_TOWN as a TownID (#7044)Joan Josep
2018-08-14Fix #6875: Depot building cost does not include foundation build cost (#6883)Jonathan G Rennison
2017-02-12(svn r27746) -Fix [FS#6538]: PR_CLEAR_ROAD refers to cost per roadbit. ↵frosch
Removing secondary roadtypes from bridges was too cheap. (JGR)
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 r27312) -Fix-ish [FS#6317]: Preserve town ownership of bridges when ↵frosch
removing road from a road+tram bridge. (marcole)
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-03-14(svn r27186) -Codechange: Rename AlwaysDrawUnpavedRoads() to better reflect ↵michi_cc
what it does.
2015-02-22(svn r27157) -Fix: Mark bridge middle tiles dirty when ↵frosch
building/removing/changing bridges.
2014-10-04(svn r26955) -Fix [FS#6126]: owner of road depot road types were not ↵rubidium
properly changed upon bankruptcy causing crashes when trying to remove the depot in certain situations
2014-09-22(svn r26906) -Codechange: Scale depot and station picker buttons by GUI zoom ↵peter1138
level.
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
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-10-25(svn r24626) -Fix [FS#5432]: MSVC 2010 warnings.terkhen
2012-09-01(svn r24503) -Change [FS#5228]: When building long roads or tramways, only ↵terkhen
build the roadbits at the beginning and the end if they can connect to something.
2012-07-18(svn r24414) -Fix [FS#5221]: Disallow removing roadtypes from bridges when ↵frosch
not dragging in bridge direction.
2012-04-25(svn r24179) -Codechange: move some variables of Town to TownCacherubidium
2012-01-24(svn r23847) -Fix: when removing road or tram from a tram+road stop, the ↵rubidium
owner of the road stop's cache was updated instead of the owner of the removed infrastructure
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-28(svn r23684) -Cleanup: let the highway take the highwayrubidium
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-19(svn r23593) -Fix (r23411): Infrastructure counts for rail were not properly ↵michi_cc
updated when converting rail or building level crossings.
2011-12-03(svn r23412) -Add: Company infrastructure counts for road.michi_cc
2011-12-03(svn r23411) -Add: Company infrastructure counts for rail.michi_cc
2011-11-08(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitionsyexo