Instantiate a DiamondSquare generator

This commit is contained in:
Eryn Wells 2018-11-10 17:06:14 -05:00
parent 5233a94fec
commit 4a236bf6d6

View file

@ -89,7 +89,7 @@ class Terrain: NSObject {
return nil
}
guard let gen = RandomAlgorithm(device: device, library: library) else {
guard let gen = DiamondSquareGenerator(device: device) else {
print("Couldn't create algorithm")
return nil
}