- converted g_strife to full floating point use, except the floor height changing stuff in A_LightGoesOut.

This commit is contained in:
Christoph Oelckers 2016-03-22 12:42:27 +01:00
commit a652c061f6
36 changed files with 192 additions and 493 deletions

View file

@ -1879,7 +1879,7 @@ void P_CalcHeight (player_t *player)
// move viewheight
if (player->playerstate == PST_LIVE)
{
player->viewheight += player->deltaviewheight;
player->viewheight += FLOAT2FIXED(player->deltaviewheight);
if (player->viewheight > defaultviewheight)
{
@ -1890,14 +1890,14 @@ void P_CalcHeight (player_t *player)
{
player->viewheight = defaultviewheight>>1;
if (player->deltaviewheight <= 0)
player->deltaviewheight = 1;
player->deltaviewheight = 1 / 65536.;
}
if (player->deltaviewheight)
{
player->deltaviewheight += FRACUNIT/4;
player->deltaviewheight += 0.25;
if (!player->deltaviewheight)
player->deltaviewheight = 1;
player->deltaviewheight = 1/65536.;
}
}