File diff r15761:680dbdd50e09 → r15762:7fbf9fe78040
src/object_cmd.cpp
Show inline comments
 
@@ -50,13 +50,13 @@ void BuildObject(ObjectType type, TileIn
 
{
 
	const ObjectSpec *spec = ObjectSpec::Get(type);
 

	
 
	TileArea ta(tile, GB(spec->size, 0, 4), GB(spec->size, 4, 4));
 
	TILE_AREA_LOOP(t, ta) {
 
		TileIndex offset = t - tile;
 
		MakeObject(t, type, owner, TileY(offset) << 4 | TileX(offset), index);
 
		MakeObject(t, type, owner, TileY(offset) << 4 | TileX(offset), index, WATER_CLASS_INVALID);
 
		MarkTileDirtyByTile(t);
 
	}
 
}
 

	
 
/**
 
 * Increase the animation stage of a whole structure.