From 230c1b9041c0306259aefe0454fd64dde176bd7c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Sep 2023 19:55:41 +0200 Subject: [PATCH] - fix animatesprite loop aborts on sector effectors --- source/games/duke/src/animatesprites_d.cpp | 2 +- source/games/duke/src/animatesprites_r.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 87ac71ef0..91428e7fe 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -86,7 +86,7 @@ void animatesprites_d(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi } else t->scale = DVector2(0, 0); - break; + continue; } if (t->statnum == STAT_TEMP) continue; diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 8cd18ea1e..f5532395d 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -79,7 +79,7 @@ void animatesprites_r(tspriteArray& tsprites, const DVector2& viewVec, DAngle vi } else t->scale = DVector2(0, 0); - break; + continue; } if (t->statnum == STAT_TEMP) continue;