Changeset - r16968:933763f88261
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2011-01-04 20:33:22
rubidium@openttd.org
(svn r21714) -Codechange: unduplicate a bit of code path
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/landscape.cpp
Show inline comments
 
@@ -629,10 +629,10 @@ CommandCost CmdLandscapeClear(TileIndex 
 
		if ((flags & DC_NO_WATER) && HasTileWaterClass(tile) && IsTileOnWater(tile)) {
 
			return_cmd_error(STR_ERROR_CAN_T_BUILD_ON_WATER);
 
		}
 
		if (do_clear && (flags & DC_EXEC)) DoClearSquare(tile);
 
		return cost;
 
	} else {
 
		cost.AddCost(_tile_type_procs[GetTileType(tile)]->clear_tile_proc(tile, flags));
 
	}
 
	cost.AddCost(_tile_type_procs[GetTileType(tile)]->clear_tile_proc(tile, flags));
 

	
 
	if (do_clear && (flags & DC_EXEC)) DoClearSquare(tile);
 
	return cost;
 
}
0 comments (0 inline, 0 general)