Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
srikavin committed Dec 27, 2019
1 parent fbe4fff commit 774203c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/src/me/srikavin/fbla/game/map/MapLoader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ class MapLoader(private val assetManager: AssetManager, private val world: World
val triangulator = EarClippingTriangulator()
val triangles = triangulator.computeTriangles(vertices)

if (triangles.size % 6 != 0) {
throw RuntimeException("Invalid triangles returned!")
}

for (x in 0 until triangles.size step 3) {
val fixtureDef = FixtureDef()
fixtureDef.shape = PolygonShape().apply {
Expand Down

0 comments on commit 774203c

Please sign in to comment.