Merge pull request #2 from deathride58/industrial-lift

industrial-lift tweaks
This commit is contained in:
SandPoot
2024-04-23 23:49:27 -03:00
committed by GitHub
2 changed files with 242910 additions and 242876 deletions
+242905 -242875
View File
File diff suppressed because it is too large Load Diff
@@ -94,7 +94,11 @@
/datum/lift_master/proc/Check_lift_move(check_dir)
for(var/lift_platform in lift_platforms)
var/turf/T = get_step_multiz(lift_platform, check_dir)
if(!T)// || !isopenturf(T))
if(!T)
return FALSE
if(check_dir == UP && !istype(T, /turf/open/openspace)) // We don't want to go through the ceiling!
return FALSE
if(check_dir == DOWN && !istype(get_turf(lift_platform), /turf/open/openspace)) // No going through the floor!
return FALSE
return TRUE