diff --git a/src/k_kart.c b/src/k_kart.c index fed523fc4..00ef4bd21 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -11667,23 +11667,19 @@ void K_MoveKartPlayer(player_t *player, boolean onground) if (player->hyudorotimer > 0) { - if (leveltime & 1) + player->mo->renderflags |= RF_DONTDRAW | RF_MODULATE; + player->mo->renderflags &= ~K_GetPlayerDontDrawFlag(player); + + if (!(leveltime & 1) && (player->hyudorotimer < (TICRATE/2) || player->hyudorotimer > hyudorotime-(TICRATE/2))) { - player->mo->renderflags |= RF_DONTDRAW; - } - else - { - if (player->hyudorotimer >= (TICRATE/2) && player->hyudorotimer <= hyudorotime-(TICRATE/2)) - player->mo->renderflags &= ~K_GetPlayerDontDrawFlag(player); - else - player->mo->renderflags &= ~RF_DONTDRAW; + player->mo->renderflags &= ~(RF_DONTDRAW | RF_BLENDMASK); } player->flashing = player->hyudorotimer; // We'll do this for now, let's people know about the invisible people through subtle hints } else if (player->hyudorotimer == 0) { - player->mo->renderflags &= ~RF_DONTDRAW; + player->mo->renderflags &= ~RF_BLENDMASK; } if (player->trickpanel == 1)