Fixes potential infinite loops with creating mine turfs

This commit is contained in:
ZomgPonies
2013-12-06 19:52:11 -05:00
parent 8c04594b81
commit e93400e22e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -156,7 +156,6 @@
var/mineralChance = 10 //means 10% chance of this plot changing to a mineral deposit
/turf/simulated/mineral/random/New()
..()
if (prob(mineralChance))
var/mName = pickweight(mineralSpawnChanceList) //temp mineral name
@@ -180,6 +179,7 @@
if("Clown")
M = new/turf/simulated/mineral/clown(src)
if(M)
..()
src = M
M.levelupdate()
+1 -1
View File
@@ -148,7 +148,6 @@
var/mineralChance = 10 //means 10% chance of this plot changing to a mineral deposit
/turf/unsimulated/mineral/random/New()
..()
if (prob(mineralChance))
var/mName = pickweight(mineralSpawnChanceList) //temp mineral name
@@ -172,6 +171,7 @@
if("Clown")
M = new/turf/unsimulated/mineral/clown(src)
if(M)
..()
src = M
M.levelupdate()