Merge pull request #11359 from VOREStation/Arokha/fixthrow

Fix SSthrowing bug
This commit is contained in:
Aronai Sieyes
2021-08-07 17:33:17 -04:00
committed by Chompstation Bot
parent 51de772050
commit edba839e1c

View File

@@ -168,17 +168,17 @@ SUBSYSTEM_DEF(throwing)
var/atom/A = thing
if (A == target)
hit = TRUE
thrownthing.throw_impact(A, src)
thrownthing.throw_impact(A, speed)
break
if (!hit)
thrownthing.throw_impact(get_turf(thrownthing), src) // we haven't hit something yet and we still must, let's hit the ground.
thrownthing.throw_impact(get_turf(thrownthing), speed) // we haven't hit something yet and we still must, let's hit the ground.
if(ismob(thrownthing))
var/mob/M = thrownthing
M.inertia_dir = init_dir
if(t_target && !QDELETED(thrownthing))
thrownthing.throw_impact(t_target, src)
thrownthing.throw_impact(t_target, speed)
if (callback)
callback.Invoke()