MergePoly (Kernel)

MergePoly(points polygons polyCount)


SCI1.1 only.

This takes a polygon, and extends it to also cover any polygons from the input list with which it intersects. Any of those polygons so covered from the input list are marked by adding 0x10 to their type field.

  • points (heapPtr) – Buffer of polygon points, with a ($7777, $7777) sentinel point at the end.
  • polygons (k_list) – A list of polygons.
  • polyCount (number) – The number of polygons in the list.


(= newPoints (MergePoly points (obstacles elements?) (obstacles size?)))
(if (newPoints)
        ; Do something with the new points, etc.... Then,
        (Memory memFREE newPoints)