mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 11:21:11 +00:00
Cast to statenum_t for 32-bit compatibility
This commit is contained in:
parent
c417ffae4c
commit
248a80cac4
1 changed files with 3 additions and 3 deletions
|
@ -5232,14 +5232,14 @@ void A_SignPlayer(mobj_t *actor)
|
||||||
{
|
{
|
||||||
ov->color = facecolor;
|
ov->color = facecolor;
|
||||||
ov->skin = skin;
|
ov->skin = skin;
|
||||||
if (ov->state-states != actor->info->seestate)
|
if ((statenum_t)(ov->state-states) != actor->info->seestate)
|
||||||
P_SetMobjState(ov, actor->info->seestate); // S_PLAY_SIGN
|
P_SetMobjState(ov, actor->info->seestate); // S_PLAY_SIGN
|
||||||
}
|
}
|
||||||
else // CLEAR! sign
|
else // CLEAR! sign
|
||||||
{
|
{
|
||||||
ov->color = SKINCOLOR_NONE;
|
ov->color = SKINCOLOR_NONE;
|
||||||
ov->skin = NULL; // needs to be NULL in the case of SF_HIRES characters
|
ov->skin = NULL; // needs to be NULL in the case of SF_HIRES characters
|
||||||
if (ov->state-states != actor->info->missilestate)
|
if ((statenum_t)(ov->state-states) != actor->info->missilestate)
|
||||||
P_SetMobjState(ov, actor->info->missilestate); // S_CLEARSIGN
|
P_SetMobjState(ov, actor->info->missilestate); // S_CLEARSIGN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5247,7 +5247,7 @@ void A_SignPlayer(mobj_t *actor)
|
||||||
{
|
{
|
||||||
ov->color = SKINCOLOR_NONE;
|
ov->color = SKINCOLOR_NONE;
|
||||||
ov->skin = NULL;
|
ov->skin = NULL;
|
||||||
if (ov->state-states != actor->info->meleestate)
|
if ((statenum_t)(ov->state-states) != actor->info->meleestate)
|
||||||
P_SetMobjState(ov, actor->info->meleestate); // S_EGGMANSIGN
|
P_SetMobjState(ov, actor->info->meleestate); // S_EGGMANSIGN
|
||||||
if (!signcolor)
|
if (!signcolor)
|
||||||
signcolor = SKINCOLOR_CARBON;
|
signcolor = SKINCOLOR_CARBON;
|
||||||
|
|
Loading…
Reference in a new issue