mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-29 07:32:02 +00:00
The thing
This commit is contained in:
parent
1acd0f6bac
commit
a1e59adedb
3 changed files with 7 additions and 7 deletions
|
@ -643,13 +643,13 @@ playersprite_t spr2defaults[NUMPLAYERSPRITES] = {
|
|||
|
||||
0, // SPR2_TRNS,
|
||||
|
||||
FF_SPR2SUPER|SPR2_STND, // SPR2_NSTD,
|
||||
FF_SPR2SUPER|SPR2_FALL, // SPR2_NFLT,
|
||||
SPR2_STND, // SPR2_NSTD,
|
||||
SPR2_FALL, // SPR2_NFLT,
|
||||
0, // SPR2_NFLY, (will never be referenced unless skin 0 lacks this)
|
||||
SPR2_NFLY, // SPR2_NDRL,
|
||||
FF_SPR2SUPER|SPR2_STUN, // SPR2_NSTN,
|
||||
SPR2_STUN, // SPR2_NSTN,
|
||||
SPR2_NSTN, // SPR2_NPUL,
|
||||
FF_SPR2SUPER|SPR2_ROLL, // SPR2_NATK,
|
||||
SPR2_ROLL, // SPR2_NATK,
|
||||
|
||||
0, // SPR2_TAL0, (this will look mighty stupid but oh well)
|
||||
SPR2_TAL0, // SPR2_TAL1,
|
||||
|
|
|
@ -397,9 +397,9 @@ boolean P_SetPlayerMobjState(mobj_t *mobj, statenum_t state)
|
|||
UINT16 stateframe = st->frame;
|
||||
|
||||
// Add/Remove FF_SPR2SUPER based on certain conditions
|
||||
if (player->charflags & SF_NOSUPERSPRITES)
|
||||
if (player->charflags & SF_NOSUPERSPRITES || (player->powers[pw_carry] == CR_NIGHTSMODE && (player->charflags & SF_NONIGHTSSUPER)))
|
||||
stateframe = stateframe & ~FF_SPR2SUPER;
|
||||
else if (player->powers[pw_super])
|
||||
else if (player->powers[pw_super] || (player->powers[pw_carry] == CR_NIGHTSMODE && (player->charflags & SF_SUPER)))
|
||||
stateframe = stateframe | FF_SPR2SUPER;
|
||||
|
||||
if (stateframe & FF_SPR2SUPER)
|
||||
|
|
|
@ -12912,7 +12912,7 @@ void P_ForceLocalAngle(player_t *player, angle_t angle)
|
|||
boolean P_PlayerFullbright(player_t *player)
|
||||
{
|
||||
return (player->powers[pw_super]
|
||||
|| ((player->powers[pw_carry] == CR_NIGHTSMODE && (((skin_t *)player->mo->skin)->flags & (SF_SUPER|SF_NONIGHTSSUPER)) == SF_SUPER) // Super colours? Super bright!
|
||||
|| ((player->powers[pw_carry] == CR_NIGHTSMODE && (player->charflags & (SF_SUPER|SF_NONIGHTSSUPER)) == SF_SUPER) // Super colours? Super bright!
|
||||
&& (player->exiting
|
||||
|| !(player->mo->state >= &states[S_PLAY_NIGHTS_TRANS1]
|
||||
&& player->mo->state < &states[S_PLAY_NIGHTS_TRANS6])))); // Note the < instead of <=
|
||||
|
|
Loading…
Reference in a new issue