- flat sprites are already square, no need to adjust them

This commit is contained in:
Rachael Alexanderson 2024-09-29 10:05:16 -04:00
parent 2c25cc1d9b
commit 85ae8f8194
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -1036,7 +1036,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
r.Scale(sprscale.X, isSpriteShadow ? sprscale.Y * 0.15 * thing->isoscaleY : sprscale.Y * thing->isoscaleY); r.Scale(sprscale.X, isSpriteShadow ? sprscale.Y * 0.15 * thing->isoscaleY : sprscale.Y * thing->isoscaleY);
if ((thing->renderflags & (RF_ROLLSPRITE|RF_FLATSPRITE)) || (thing->renderflags2 & RF2_SQUAREPIXELS)) if ((thing->renderflags & RF_ROLLSPRITE) || (thing->renderflags2 & RF2_SQUAREPIXELS))
{ {
double ps = di->Level->pixelstretch; double ps = di->Level->pixelstretch;
double mult = 1.0 / sqrt(ps); // shrink slightly double mult = 1.0 / sqrt(ps); // shrink slightly