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
commit475f6ca3e397dcd0780fb3012149480953dfc637 (patch)
treed6055d0c54ba2486bfdc9ce3772729126820d461
parent81f4fd8afffdd21f8e591f0e450f7386095b0499 (diff)
downloadopenttd-475f6ca3e397dcd0780fb3012149480953dfc637.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;