Adds lift to Snaxi, fixes industrial lifts clipping through floors

This commit is contained in:
deathride58
2024-04-23 22:41:25 -04:00
parent ae8d0493db
commit 543daa52ac
2 changed files with 242910 additions and 242876 deletions
@@ -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