reset glide size for thrown objects once throw ends (#28126)

This commit is contained in:
warriorstar-orion
2025-01-26 20:38:12 +00:00
committed by GitHub
parent a94c51730d
commit 1f26b78b97
+3
View File
@@ -254,6 +254,9 @@ SUBSYSTEM_DEF(throwing)
else
thrownthing.newtonian_move(init_dir)
// Attempt to reset glide size once throw ends
thrownthing.set_glide_size(initial(thrownthing.glide_size))
if(target)
thrownthing.throw_impact(target, src)
if(QDELETED(thrownthing)) //throw_impact can delete things, such as glasses smashing