mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 22:48:38 +01:00
Fix return values of CanZASPass
- CanZASPass is supposed to return boolean. Nobody noticed this bug because ATMOS_PASS_YES and ATMOS_PASS_NO happen to be defined as 1 and 0. But thats not a good assumption to make, so lets fix it!
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
return !P.can_hit_target(src, P.permutated, src == P.original, TRUE)
|
||||
return (!mover.density || !density || lying)
|
||||
|
||||
/mob/CanZASPass(turf/T, is_zone)
|
||||
return ATMOS_PASS_YES
|
||||
// There is no need to override this if you're just going to unconditionally return TRUE. Set can_atmos_pass instead.
|
||||
///mob/CanZASPass(turf/T, is_zone)
|
||||
// return TRUE
|
||||
|
||||
/mob/living/SelfMove(turf/n, direct)
|
||||
// If on walk intent, don't willingly step into hazardous tiles.
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
// When anchored, don't let air past us.
|
||||
/obj/machinery/compressor/CanZASPass(turf/T, is_zone)
|
||||
return anchored ? ATMOS_PASS_NO : ATMOS_PASS_YES
|
||||
return !anchored
|
||||
|
||||
/obj/machinery/compressor/proc/locate_machinery()
|
||||
if(turbine)
|
||||
|
||||
Reference in New Issue
Block a user