Logistical problems

This commit is contained in:
Tatsuru 2020-01-13 19:12:02 -03:00
parent 7b3cc02ddc
commit 0fa638eaf5
2 changed files with 4 additions and 10 deletions

View file

@ -8971,6 +8971,9 @@ void A_Dye(mobj_t *actor)
if (color >= MAXTRANSLATIONS)
return;
if (!color)
target->colorized = false;
// What if it's a player?
if (target->player)
{
@ -8979,11 +8982,7 @@ void A_Dye(mobj_t *actor)
}
target->color = color;
if (!color)
target->colorized = false;
else
target->colorized = true;
target->colorized = true;
}
// Function: A_MoveRelative

View file

@ -12922,11 +12922,6 @@ void P_PlayerAfterThink(player_t *player)
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))
{