Changeset - r10194:7e7dbb50ce31
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-09-27 17:08:03
frosch@openttd.org
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -382,10 +382,8 @@ static CommandCost ReplaceFreeUnit(Vehic
 
			*single_unit = new_v;
 
		}
 

	
 
		if (cost.Succeeded()) {
 
			/* Sell the old vehicle */
 
			cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
 
		}
 
		/* Sell the old vehicle */
 
		cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
 

	
 
		/* If we are not in DC_EXEC undo everything */
 
		if ((flags & DC_EXEC) == 0) {
0 comments (0 inline, 0 general)