Fix for polygons with duplicate points; if the weight is 0 we no longer segfault.
Merge pull request #808 from sorlok/bad_polygons

Fix for bad polygons crashing the game.