summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-04 12:13:15 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-04 12:13:15 +0000
commite1cc80b01cfba5b10af149f576c4a560ceb244f7 (patch)
treed6055d0c54ba2486bfdc9ce3772729126820d461
parent6e3ae628fc495d3f6ad496948bada1594872206b (diff)
downloadopenttd-e1cc80b01cfba5b10af149f576c4a560ceb244f7.tar.xz
(svn r12334) -Codechange: Don't change road owner without DC_EXEC. Didn't affect anything in this case but is bad form.
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index dd2a53976..29b2ba410 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -369,7 +369,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p
default: break;
case ROADTYPES_TRAM:
/* Tram crossings must always have road. */
- SetRoadOwner(tile, ROADTYPE_ROAD, _current_player);
+ if (flags & DC_EXEC) SetRoadOwner(tile, ROADTYPE_ROAD, _current_player);
roadtypes |= ROADTYPES_ROAD;
break;