Changeset - r15440:46e2c17b11f1
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-07-09 16:41:51
terkhen@openttd.org
(svn r20099) -Fix [FS#3882]: Give priority to ownership errors while removing roads.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -858,12 +858,15 @@ CommandCost CmdRemoveLongRoad(TileIndex 
 
					RemoveRoad(tile, flags, bits, rt, true, false);
 
				}
 
				cost.AddCost(ret);
 
				had_success = true;
 
			} else {
 
				last_error = ret;
 

	
 
				/* Ownership errors are more important. */
 
				if (last_error.GetErrorMessage() == STR_ERROR_OWNED_BY) break;
 
			}
 
		}
 

	
 
		if (tile == end_tile) break;
 

	
 
		tile += (axis == AXIS_Y) ? TileDiffXY(0, 1) : TileDiffXY(1, 0);
0 comments (0 inline, 0 general)