toaster guidance

This commit is contained in:
Tatsuru 2020-01-11 21:35:19 -03:00
parent 5d33ca42cf
commit 4221f08a7c

View file

@ -12271,17 +12271,6 @@ void P_PlayerThink(player_t *player)
else
player->powers[pw_nocontrol] = 0;
if (player->powers[pw_dye])
{
player->mo->colorized = true;
player->mo->color = player->powers[pw_dye];
}
else
{
player->mo->colorized = false;
player->mo->color = player->skincolor;
}
//pw_super acts as a timer now
if (player->powers[pw_super]
&& (player->mo->state < &states[S_PLAY_SUPER_TRANS1]
@ -12928,6 +12917,17 @@ void P_PlayerAfterThink(player_t *player)
player->mo->flags |= MF_NOGRAVITY;
}
if (player->powers[pw_dye])
{
player->mo->colorized = true;
player->mo->color = player->powers[pw_dye];
}
else
{
player->mo->colorized = false;
player->mo->color = player->skincolor;
}
if (player->followmobj && (player->spectator || player->mo->health <= 0 || player->followmobj->type != player->followitem))
{
P_RemoveMobj(player->followmobj);