Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e6eb9ca

Browse files
that's a surprise tool that will help us later
1 parent d7f07a8 commit e6eb9ca

File tree

1 file changed

+4
-0
lines changed
  • code/modules/power/singularity/particle_accelerator

1 file changed

+4
-0
lines changed

code/modules/power/singularity/particle_accelerator/particle.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
if(QDELETED(src))
6666
return
6767
if(!step(src,dir))
68+
var/next_step = get_step(src, dir)
69+
if(!next_step) // reached the edge of the map
70+
qdel(src)
71+
return
6872
forceMove(get_step(src,dir))
6973
if(movement_range == 0)
7074
qdel(src)

0 commit comments

Comments
 (0)