From b22a909829af8869903943c85c45833b2bf788e6 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 27 Jan 2016 13:08:23 -0600 Subject: [PATCH] Add nodelay handling to FastProjectile --- src/g_shared/a_fastprojectile.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/g_shared/a_fastprojectile.cpp b/src/g_shared/a_fastprojectile.cpp index ae7f6a58b0..725b858e33 100644 --- a/src/g_shared/a_fastprojectile.cpp +++ b/src/g_shared/a_fastprojectile.cpp @@ -138,6 +138,17 @@ void AFastProjectile::Tick () } } } + if ((flags7 & MF7_HANDLENODELAY) && !(flags2 & MF2_DORMANT)) + { + flags7 &= ~MF7_HANDLENODELAY; + if (state->GetNoDelay()) + { + // For immediately spawned objects with the NoDelay flag set for their + // Spawn state, explicitly call the current state's function. + if (state->CallAction(this, this) && (ObjectFlags & OF_EuthanizeMe)) + return; // freed itself + } + } // Advance the state if (tics != -1) {