<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>FreeRect</title>
    <category>Landscape</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>void</rtype>
      <params>
        <param>
          <type>int</type>
          <name>x</name>
          <desc>Left limit of the rectangle</desc>
        </param>
        <param>
          <type>int</type>
          <name>y</name>
          <desc>Top limit of the rectangle</desc>
        </param>
        <param>
          <type>int</type>
          <name>width</name>
          <desc>Width of the rectangle</desc>
        </param>
        <param>
          <type>int</type>
          <name>height</name>
          <desc>Height of the rectangle</desc>
        </param>
        <param>
          <type>int</type>
          <name>density</name>
          <desc>If specified, material of the specified density is removed.</desc>
        </param>
      </params>
    </syntax>
    <desc>Removes all material within the specified rectangle. Coordinates are always global. Excluding the right and lower limits of the rectangle.</desc>
    <remark>This call may take quite a while for large rectangles.</remark>
    <examples>
      <example>
        <code>FreeRect(0, 0, <funclink>LandscapeWidth</funclink>(), <funclink>LandscapeHeight</funclink>());</code>
        <text>Empties the complete landscape.</text>
      </example>
    </examples>
    <related>
      <funclink>DigFree</funclink>
      <funclink>DigFreeRect</funclink>
      <funclink>Explode</funclink>
    </related>
  </func>
  <author>Sven2</author><date>2001-11</date>
  <author>Clonkonaut</author><date>2008-04</date>
</funcs>
