(svn r12334) -Codechange: Don't change road owner without DC_EXEC. Didn't affect anything in this case but is bad form.
authorpeter1138
Tue, 04 Mar 2008 12:13:15 +0000
changeset 9165 765c4f60311c
parent 9164 04e2cc7a00e6
child 9166 b37d9f4017e5
(svn r12334) -Codechange: Don't change road owner without DC_EXEC. Didn't affect anything in this case but is bad form.
src/rail_cmd.cpp
--- a/src/rail_cmd.cpp	Tue Mar 04 10:41:16 2008 +0000
+++ b/src/rail_cmd.cpp	Tue Mar 04 12:13:15 2008 +0000
@@ -369,7 +369,7 @@
 					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;