mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #11359 from VOREStation/Arokha/fixthrow
Fix SSthrowing bug
This commit is contained in:
committed by
Chompstation Bot
parent
51de772050
commit
edba839e1c
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user