From fbfec1f03795d3fe81433873dd16e1129ff9d168 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 31 Aug 2022 00:42:53 +0200 Subject: [PATCH] - avoid using change.X as a marker value --- source/games/sw/src/draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index c4c3c4af9..7d2f38955 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -1224,7 +1224,7 @@ void PreDrawStackedWater(void) continue; // code so that a copied sprite will not make another copy - if (itActor2->user.change.X == -989898) + if (itActor2->spr.intangle == 0x4711) continue; auto actorNew = ConnectCopySprite(&itActor2->spr); @@ -1233,7 +1233,7 @@ void PreDrawStackedWater(void) // spawn a user actorNew->allocUser(); - actorNew->user.change.X = -989898; + actorNew->spr.intangle = 0x4711; // copy everything reasonable from the user that // analyzesprites() needs to draw the image