LAB-Programming/Adventure-Man — Issue #7: FIX TerrainGen
Author: 1000000000
Created: 2012-01-23 18:34:18+00:00
State: open

@g-rocket either make your crazy code readable or fix this!

Exception in thread "main" java.lang.IllegalArgumentException: curVar is BAD: 0.65625, (int) 0
badly derived from curLen: {[10, -6][3, -3]} because curLen[1][0] - (curLen[0][0] * 1.1) [3 - (10 * 1.1)] is BAD!!! (FIX IT GAVIN)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:307)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:316)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:316)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:316)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:316)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:327)
at TerrainGen.genWorld(TerrainGen.java:237)
at WorldGen.genWorld(WorldGen.java:20)
at AdventureWorld.genWorld(AdventureWorld.java:42)
at AdventureWorld.(AdventureWorld.java:23)
at AdventureMan.(AdventureMan.java:41)
at AdventureMan.main(AdventureMan.java:105)
Caused by: java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:250)
at TerrainGen.applyInverseSquareRecursively(TerrainGen.java:294)
... 11 more