Changeset - r15545:1f234e3ec76c
[Not reviewed]
master
0 1 0
alberth - 14 years ago 2010-07-25 10:04:13
alberth@openttd.org
(svn r20215) -Fix [FS#3971]: Remove all road pieces rather than aborting at the first ownership error (Krille).
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -860,10 +860,8 @@ CommandCost CmdRemoveLongRoad(TileIndex 
 
				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 (last_error.GetErrorMessage() != STR_ERROR_OWNED_BY) last_error = ret;
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)