- adjustments for next update.

This commit is contained in:
Christoph Oelckers 2016-03-24 12:47:08 +01:00
parent eadecaf407
commit f62c988a0e

View file

@ -124,16 +124,16 @@ void FGLRenderer::DrawPSprite (player_t * player,pspdef_t *psp, float sx, float
ftexturemid = 100.f - sy - r.top; ftexturemid = 100.f - sy - r.top;
AWeapon * wi=player->ReadyWeapon; AWeapon * wi=player->ReadyWeapon;
if (wi && wi->YAdjust) if (wi && wi->YAdjust != 0)
{ {
float fYAd = FIXED2FLOAT(wi->YAdjust); float fYAd = wi->YAdjust;
if (screenblocks >= 11) if (screenblocks >= 11)
{ {
ftexturemid -= fYAd; ftexturemid -= fYAd;
} }
else if (!st_scale) else if (!st_scale)
{ {
ftexturemid -= FIXED2FLOAT(StatusBar->GetDisplacement ()) * fYAd; ftexturemid -= StatusBar->GetDisplacement () * fYAd;
} }
} }