Prevent bullets from sometimes missing if blocked by another person diagonally (#66276)

This commit is contained in:
RandomGamer123
2022-04-26 12:36:05 -07:00
committed by GitHub
parent 0587b619fe
commit 36a680b93e
@@ -71,9 +71,8 @@
new firing_effect_type(get_turf(src), firing_dir)
var/direct_target
if(targloc == curloc)
if(target) //if the target is right on our location we'll skip the travelling code in the proj's fire()
direct_target = target
if(target && curloc.Adjacent(targloc, target=targloc, mover=src)) //if the target is right on our location or adjacent (including diagonally if reachable) we'll skip the travelling code in the proj's fire()
direct_target = target
if(!direct_target)
var/modifiers = params2list(params)
loaded_projectile.preparePixelProjectile(target, fired_from, modifiers, spread)