- fixed the Blood pool's Initialize function.

In the unlikely case of this being map placed it might have gotten the wrong color.
This commit is contained in:
Christoph Oelckers 2022-12-13 11:30:22 +01:00
parent 37067753fc
commit 4f14f795b8

View file

@ -9,7 +9,7 @@ class DukeBloodPool : DukeActor
virtual void SetPalette() virtual void SetPalette()
{ {
let Owner = self.ownerActor; let Owner = self.ownerActor;
if (Owner) if (Owner && !mapSpawned)
{ {
if (Owner.pal == 1) if (Owner.pal == 1)
self.pal = 1; // Blue self.pal = 1; // Blue
@ -30,7 +30,7 @@ class DukeBloodPool : DukeActor
if (!checkLocationForFloorSprite(6.75)) return; if (!checkLocationForFloorSprite(6.75)) return;
SetPalette(); SetPalette();
self.cstat |= CSTAT_SPRITE_ALIGNMENT_FLOOR; self.cstat |= CSTAT_SPRITE_ALIGNMENT_FLOOR;
if (self.OwnerActor) if (!self.mapSpawned)
self.scale = (REPEAT_SCALE, REPEAT_SCALE); self.scale = (REPEAT_SCALE, REPEAT_SCALE);
} }