[MIRROR] Fixes a runtime where deployable turrets were spawning projectiles with no source [MDB IGNORE] (#22416)

* Fixes a runtime where deployable turrets were spawning projectiles with no source (#76693)

## About The Pull Request

Title.
## Why It's Good For The Game

Runtimes bad.
## Changelog
🆑
fix: Deployable turrets no longer runtime when firing
/🆑

* Fixes a runtime where deployable turrets were spawning projectiles with no source

---------

Co-authored-by: nikothedude <59709059+nikothedude@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-07-13 01:37:19 +00:00
committed by GitHub
co-authored by nikothedude
parent 9371340945
commit a9ec5785cd
@@ -202,7 +202,7 @@
var/turf/targets_from = get_turf(src)
if(QDELETED(target))
target = target_turf
var/obj/projectile/projectile_to_fire = new projectile_type
var/obj/projectile/projectile_to_fire = new projectile_type(targets_from)
playsound(src, firesound, 75, TRUE)
projectile_to_fire.preparePixelProjectile(target, targets_from)
projectile_to_fire.firer = user