From c75a6c1e7df4550c499b84e9fb2e3c3d383a8b09 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Tue, 22 Feb 2022 14:23:19 -0600 Subject: [PATCH] Terrain small splashes and splash bases now set their target to the thing that spawned them, allowing for extra customization. --- src/playsim/p_mobj.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index eadaa94ae..cba16a2b9 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -6271,6 +6271,7 @@ foundone: if (smallsplash && splash->SmallSplash) { mo = Spawn(sec->Level, splash->SmallSplash, pos, ALLOW_REPLACE); + mo->target = thing; if (mo) mo->Floorclip += splash->SmallSplashClip; } else @@ -6292,6 +6293,7 @@ foundone: if (splash->SplashBase) { mo = Spawn(sec->Level, splash->SplashBase, pos, ALLOW_REPLACE); + mo->target = thing; } if (thing->player && !splash->NoAlert && alert) {