Fix a parallax runtime (#3033)

Fixes #3011.
This commit is contained in:
Lohikar
2017-07-15 16:18:58 +03:00
committed by skull132
parent 31e0b1540f
commit 89b2a3d534
+1 -1
View File
@@ -120,7 +120,7 @@
if (!isturf(posobj))
posobj = get_turf(posobj)
if(!(locate(/turf/space) in RANGE_TURFS(C.view, posobj)) && !(locate(/turf/simulated/open) in RANGE_TURFS(C.view, posobj)))
if(!posobj || (!(locate(/turf/space) in RANGE_TURFS(C.view, posobj)) && !(locate(/turf/simulated/open) in RANGE_TURFS(C.view, posobj))))
return
if(!C.previous_turf || (C.previous_turf.z != posobj.z))