mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Better account for the uninitialised signcolor
This commit is contained in:
parent
fff38da832
commit
9f24ef25bf
1 changed files with 3 additions and 1 deletions
|
@ -5077,7 +5077,7 @@ void A_SignPlayer(mobj_t *actor)
|
||||||
INT32 locvar1 = var1;
|
INT32 locvar1 = var1;
|
||||||
skin_t *skin = NULL;
|
skin_t *skin = NULL;
|
||||||
mobj_t *ov;
|
mobj_t *ov;
|
||||||
UINT8 facecolor, signcolor = SKINCOLOR_NONE;
|
UINT8 facecolor, signcolor;
|
||||||
UINT32 signframe = states[actor->info->raisestate].frame;
|
UINT32 signframe = states[actor->info->raisestate].frame;
|
||||||
|
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
|
@ -5130,6 +5130,8 @@ void A_SignPlayer(mobj_t *actor)
|
||||||
signcolor = Color_Opposite[actor->target->player->skincolor - 1][0];
|
signcolor = Color_Opposite[actor->target->player->skincolor - 1][0];
|
||||||
signframe += (15 - Color_Opposite[actor->target->player->skincolor - 1][1]);
|
signframe += (15 - Color_Opposite[actor->target->player->skincolor - 1][1]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
signcolor = SKINCOLOR_NONE;
|
||||||
}
|
}
|
||||||
else if (locvar1 != -3) // set to a defined skin
|
else if (locvar1 != -3) // set to a defined skin
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue