Cleanup, only allow positive seeds
This commit is contained in:
@@ -7,7 +7,7 @@ import System.Random
|
||||
startNewGame :: Universe -> Universe
|
||||
startNewGame u = startSeedGame i u
|
||||
where
|
||||
i = fst $ random (_randGen (_uvWorld u))
|
||||
i = fst $ randomR (0,maxBound) (_randGen (_uvWorld u))
|
||||
|
||||
startSeedGame :: Int -> Universe -> Universe
|
||||
startSeedGame i u = u
|
||||
|
||||
Reference in New Issue
Block a user