From be7dcccb71c01e7350d38746430dc73d5adb1385 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 7 Nov 2019 13:02:33 -0800 Subject: [PATCH] Declarations after Lua calls --- src/p_enemy.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index d215e608d..c1d35f43e 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -5016,15 +5016,16 @@ void A_UnsetSolidSteam(mobj_t *actor) // void A_SignSpin(mobj_t *actor) { -#ifdef HAVE_BLUA - if (LUA_CallAction("A_SignSpin", actor)) - return; -#endif INT32 locvar1 = var1; INT32 locvar2 = var2; INT16 i; angle_t rotateangle = FixedAngle(locvar1 << FRACBITS); +#ifdef HAVE_BLUA + if (LUA_CallAction("A_SignSpin", actor)) + return; +#endif + if (P_IsObjectOnGround(actor) && P_MobjFlip(actor) * actor->momz <= 0) { if (actor->spawnpoint)