mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
46aa3d439a
commit
ee105f1883
1 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue