- changed damage screen blending code so that the same version can be used by any renderer.

- added GZDoom's version of blending for Strife's hazard sectors as an option to the paletteflash CVAR.


SVN r3613 (trunk)
This commit is contained in:
Christoph Oelckers 2012-05-01 11:27:54 +00:00
commit 75dc6cb0b2
10 changed files with 234 additions and 125 deletions

View file

@ -2247,14 +2247,23 @@ void P_PlayerThink (player_t *player)
}
else if (!player->centering)
{
fixed_t oldpitch = player->mo->pitch;
player->mo->pitch -= look;
if (look > 0)
{ // look up
player->mo->pitch = MAX(player->mo->pitch, player->MinPitch);
if (player->mo->pitch > oldpitch)
{
player->mo->pitch = player->MinPitch;
}
}
else
{ // look down
player->mo->pitch = MIN(player->mo->pitch, player->MaxPitch);
if (player->mo->pitch < oldpitch)
{
player->mo->pitch = player->MaxPitch;
}
}
}
}