Shooting fuel tanks now is logged properly

objects that get qdeleted are only hit once by bullets
This commit is contained in:
joep van der velden
2021-11-10 10:23:47 +01:00
parent 1c3c2c22ad
commit 39a280effd
2 changed files with 8 additions and 6 deletions
+2
View File
@@ -276,6 +276,8 @@
speed = round(speed)
step_towards(src, locate(new_x, new_y, z))
if(QDELETED(src)) // It hit something during the move
return
if(speed <= 1)
pixel_x = pixel_x_offset
pixel_y = pixel_y_offset