mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Removes an unneded istype in A* pathfinding (#66450)
* Removes an unneded istype in pathfinding procs
This commit is contained in:
@@ -350,7 +350,7 @@
|
||||
|
||||
/obj/structure/girder/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
. = !density
|
||||
if(istype(caller))
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSGRILLE)
|
||||
|
||||
/obj/structure/girder/deconstruct(disassembled = TRUE)
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
|
||||
/obj/structure/grille/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
. = !density
|
||||
if(istype(caller))
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSGRILLE)
|
||||
|
||||
/obj/structure/grille/wirecutter_act(mob/living/user, obj/item/tool)
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
/obj/structure/table/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
. = !density
|
||||
if(istype(caller))
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSTABLE)
|
||||
|
||||
/obj/structure/table/proc/tableplace(mob/living/user, mob/living/pushed_mob)
|
||||
|
||||
Reference in New Issue
Block a user