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 | e1cc80b01cfba5b10af149f576c4a560ceb244f7 (patch) | |
tree | d6055d0c54ba2486bfdc9ce3772729126820d461 | |
parent | 6e3ae628fc495d3f6ad496948bada1594872206b (diff) | |
download | openttd-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.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; |