Merge pull request #15578 from SandPoot/fix-weird-diagonal
Fixes pathfinding not checking diagonal passability properly.
This commit is contained in:
@@ -285,7 +285,7 @@
|
||||
call_mode()
|
||||
return
|
||||
if(BOT_SUMMON) //Called by PDA
|
||||
bot_summon()
|
||||
summon_step()
|
||||
return
|
||||
return TRUE //Successful completion. Used to prevent child process() continuing if this one is ended early.
|
||||
|
||||
@@ -731,8 +731,6 @@ Pass a positive integer as an argument to override a bot's default speed.
|
||||
mode = BOT_SUMMON
|
||||
speak("Responding.", radio_channel)
|
||||
|
||||
calc_summon_path()
|
||||
|
||||
if("ejectpai")
|
||||
ejectpairemote(user)
|
||||
return
|
||||
@@ -759,9 +757,6 @@ Pass a positive integer as an argument to override a bot's default speed.
|
||||
else
|
||||
to_chat(src, "<span class='warning'>Unidentified control sequence received:[command]</span>")
|
||||
|
||||
/mob/living/simple_animal/bot/proc/bot_summon() // summoned to PDA
|
||||
summon_step()
|
||||
|
||||
// calculates a path to the current destination
|
||||
// given an optional turf to avoid
|
||||
/mob/living/simple_animal/bot/proc/calc_path(turf/avoid)
|
||||
|
||||
Reference in New Issue
Block a user