mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- 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:
parent
37067753fc
commit
4f14f795b8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue