Instantiate a DiamondSquare generator
This commit is contained in:
parent
5233a94fec
commit
4a236bf6d6
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Terrain: NSObject {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let gen = RandomAlgorithm(device: device, library: library) else {
|
guard let gen = DiamondSquareGenerator(device: device) else {
|
||||||
print("Couldn't create algorithm")
|
print("Couldn't create algorithm")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue