diff options
author | peter1138 <peter1138@openttd.org> | 2008-03-04 12:13:15 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-03-04 12:13:15 +0000 |
commit | 475f6ca3e397dcd0780fb3012149480953dfc637 (patch) | |
tree | d6055d0c54ba2486bfdc9ce3772729126820d461 /src | |
parent | 81f4fd8afffdd21f8e591f0e450f7386095b0499 (diff) | |
download | openttd-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
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; |