[MIRROR] Fixed type2parent behaving incorrectly for /mob and /turf (#418)

* Fixed type2parent behaving incorrectly for /mob and /turf (#53035)

* Fixed type2parent behaving incorrectly for /mob and /turf

Co-authored-by: pali <6pali6@gmail.com>
This commit is contained in:
SkyratBot
2020-08-19 20:06:36 -04:00
committed by GitHub
co-authored by pali
parent 2cc15736c3
commit 94960eaefc
+2 -2
View File
@@ -459,9 +459,9 @@ GLOBAL_LIST_INIT(modulo_angle_to_dir, list(NORTH,NORTHEAST,EAST,SOUTHEAST,SOUTH,
switch(child)
if(/datum)
return null
if(/obj || /mob)
if(/obj, /mob)
return /atom/movable
if(/area || /turf)
if(/area, /turf)
return /atom
else
return /datum