mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes runtime error when particle accelerators hit the edge of a planetary map (#22968)
* that's a surprise tool that will help us later * f
This commit is contained in:
@@ -65,7 +65,11 @@
|
||||
if(QDELETED(src))
|
||||
return
|
||||
if(!step(src,dir))
|
||||
forceMove(get_step(src,dir))
|
||||
var/next_step = get_step(src, dir)
|
||||
if(!next_step) // reached the edge of the map
|
||||
qdel(src)
|
||||
return
|
||||
forceMove(next_step)
|
||||
if(movement_range == 0)
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user