- Restored a file that apparently worked fine back at a certain commit (0176c29).

This commit is contained in:
Rachael Alexanderson 2017-03-16 13:54:21 -04:00
parent dbea29e02c
commit 55b95e68db

View file

@ -2039,12 +2039,11 @@ void P_CalcHeight (player_t *player)
return; return;
} }
//[SP] Added (x*player->mo->ViewBob) to allow DECORATE changes to view bobbing speed.
if (still) if (still)
{ {
if (player->health > 0) if (player->health > 0)
{ {
angle = level.time / (120 * TICRATE / 35.) * 360. * player->mo->ViewBob; angle = level.time / (120 * TICRATE / 35.) * 360.;
bob = player->userinfo.GetStillBob() * angle.Sin(); bob = player->userinfo.GetStillBob() * angle.Sin();
} }
else else
@ -2054,7 +2053,7 @@ void P_CalcHeight (player_t *player)
} }
else else
{ {
angle = level.time / (20 * TICRATE / 35.) * 360. * player->mo->ViewBob; angle = level.time / (20 * TICRATE / 35.) * 360.;
bob = player->bob * angle.Sin() * (player->mo->waterlevel > 1 ? 0.25f : 0.5f); bob = player->bob * angle.Sin() * (player->mo->waterlevel > 1 ? 0.25f : 0.5f);
} }