oskar / raycing

Raycing the grid
http://oskar.github.io/raycing/
1 stars 1 forks source link

Not possible to move end zone when editing map #37

Closed oskar closed 8 years ago

oskar commented 8 years ago
  1. Create new map
  2. Place an end zone
  3. Erase the end zone
  4. Try to place another end zone some where else, not possible
oskar commented 8 years ago

The same is valid for start zone as well.

Korla commented 8 years ago

Known issue, there is code to detect the empty zone, but Paper doesn't remove the path completely. A limit should be used instead.

A workaround is to extend the zone to desired location, and erase the parts not needed, instead of removing it completely.

Korla commented 8 years ago

Changed empty check from path.isEmpty() to path.area < 50, in case the erasing missed a spot.