[MIRROR] Custom dockers must be greater than 10 tiles from map edge (#5922)

* Custom dockers must be greater than 10 tiles from map edge (#36306)

* Custom dockers must be greater than 10 tiles from map edge
This commit is contained in:
CitadelStationBot
2018-03-12 07:30:29 -05:00
committed by Poojawa
parent c3edb62df9
commit 71b3349c2d
+1 -1
View File
@@ -206,7 +206,7 @@
/obj/machinery/computer/camera_advanced/shuttle_docker/proc/checkLandingTurf(turf/T, list/overlappers)
// Too close to the map edge is never allowed
if(!T || T.x == 1 || T.y == 1 || T.x == world.maxx || T.y == world.maxy)
if(!T || T.x <= 10 || T.y <= 10 || T.x >= world.maxx - 10 || T.y >= world.maxy - 10)
return SHUTTLE_DOCKER_BLOCKED
// If it's one of our shuttle areas assume it's ok to be there
if(shuttle_port.shuttle_areas[T.loc])