From 57aca0ed07d1d0f71e66518ce444100307b3cd69 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Dec 2021 21:00:00 +0100 Subject: [PATCH] - SW: fixed sector object setup with vator effect. This used some weird initialization logic that was missed when first modifying this code. --- source/games/sw/src/interpso.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/games/sw/src/interpso.cpp b/source/games/sw/src/interpso.cpp index 67cbcdbfd..59e489463 100644 --- a/source/games/sw/src/interpso.cpp +++ b/source/games/sw/src/interpso.cpp @@ -199,8 +199,10 @@ void so_addinterpolation(SECTOR_OBJECTp sop) SWSectIterator it(int(*sectp - sector)); while (auto actor = it.Next()) if (actor->s().statnum == STAT_VATOR && SP_TAG1(&actor->s()) == SECT_VATOR) + { + interp->hasvator = true; break; - interp->hasvator |= (i >= 0); + } } if (!interp->hasvator)