Skip to content

Commit

Permalink
throw_at() will not quickstart a throw if the throw was triggered fro…
Browse files Browse the repository at this point in the history
…m the same stack as SSthrowing/fire() (#56004)

throw_at will not quickstart a throw if the throw was triggered from the same stack as SSthrowing/fire()

Infinite throwing loops are fine, as long as they don't loop at the stack level.
  • Loading branch information
MrStonedOne committed Jan 10, 2021
1 parent 655d5dc commit fe7cbf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/atoms_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@

if(pulledby)
pulledby.stop_pulling()

if (quickstart && (throwing || SSthrowing.state == SS_RUNNING)) //Avoid stack overflow edgecases.
quickstart = FALSE
throwing = TT
if(spin)
SpinAnimation(5, 1)
Expand Down

0 comments on commit fe7cbf8

Please sign in to comment.