- avoid using change.X as a marker value

This commit is contained in:
Christoph Oelckers 2022-08-31 00:42:53 +02:00
parent 6334b7d3b8
commit fbfec1f037

View file

@ -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