mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user