Proper hightile sprite calculation (fixes HRP explosion size).

git-svn-id: https://svn.eduke32.com/eduke32@1225 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-02-13 13:05:56 +00:00
parent 46aa3d439a
commit ee105f1883

View file

@ -658,8 +658,17 @@ void polymer_drawsprite(int32_t snum)
yratio = (float)(tspr->yrepeat) / 4.0f;
xsize = tilesizx[curpicnum] * xratio;
ysize = tilesizy[curpicnum] * yratio;
if (usehightile && h_xsize[curpicnum])
{
xsize = h_xsize[curpicnum];
ysize = h_ysize[curpicnum];
} else {
xsize = tilesizx[curpicnum];
ysize = tilesizy[curpicnum];
}
xsize *= xratio;
ysize *= yratio;
tilexoff = (int32_t)tspr->xoffset;
tileyoff = (int32_t)tspr->yoffset;