Fixes ignoreRest param, AStar

This commit is contained in:
Tastyfish
2016-05-08 23:47:51 -04:00
parent b7d2b6d3f6
commit 6b5aac8aee
7 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ Actual Adjacent procs :
for(var/dir in cardinal)
T = get_step(src,dir)
if(simulated_only && !istype(T))
if(!T || (simulated_only && !istype(T)))
continue
if(!T.density && !LinkBlockedWithAccess(T,caller, ID))
L.Add(T)
+1
View File
@@ -2327,6 +2327,7 @@ area/security/podbay
/area/awaymission
name = "\improper Strange Location"
icon_state = "away"
report_alerts = 0
/area/awaymission/example
name = "\improper Strange Station"
+1 -1
View File
@@ -22,7 +22,7 @@
recharging_mecha = null
return ..()
/turf/simulated/floor/mech_bay_recharge_floor/Entered(var/obj/mecha/mecha)
/turf/simulated/floor/mech_bay_recharge_floor/Entered(var/obj/mecha/mecha, atom/OL, ignoreRest = 0)
. = ..()
if(istype(mecha))
mecha.occupant_message("<b>Initializing power control devices.</b>")
+1 -1
View File
@@ -67,7 +67,7 @@
else
to_chat(user, "<span class='warning'>The plating is going to need some support! Place metal rods first.</span>")
/turf/space/Entered(atom/movable/A as mob|obj)
/turf/space/Entered(atom/movable/A as mob|obj, atom/OL, ignoreRest = 0)
..()
if(destination_z && A && (src in A.locs))
+1 -1
View File
@@ -85,7 +85,7 @@
/turf/space/transit/horizontal
dir = WEST
/turf/space/transit/Entered(atom/movable/AM, atom/OldLoc)
/turf/space/transit/Entered(atom/movable/AM, atom/OldLoc, ignoreRest = 0)
if(!AM)
return
if(istype(AM, /obj/docking_port) || !AM.simulated)
+1 -1
View File
@@ -121,7 +121,7 @@
return 1 //Nothing found to block so return success!
/turf/Entered(atom/movable/M)
/turf/Entered(atom/movable/M, atom/OL, ignoreRest = 0)
if(ismob(M))
var/mob/O = M
if(!O.lastarea)
@@ -19,9 +19,6 @@
* Areas
*/
//Gateroom gets its own APC specifically for the gate
/area/awaymission
report_alerts = 0
/area/awaymission/gateroom
//Library, medbay, storage room