Polymer: Correct an oversight in r3580.

git-svn-id: https://svn.eduke32.com/eduke32@5775 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-06-10 18:23:25 +00:00
parent 3adda0cbd3
commit b1b7f13a41

View file

@ -3857,7 +3857,9 @@ void polymer_updatesprite(int32_t snum)
if (pr_verbosity >= 3) OSD_Printf("PR : Updating sprite %i...\n", snum);
if (tspr->owner < 0 || tspr->picnum < 0) return;
int32_t const curpicnum = tspr->picnum;
if (tspr->owner < 0 || curpicnum < 0) return;
s = prsprites[tspr->owner];
@ -3881,9 +3883,6 @@ void polymer_updatesprite(int32_t snum)
}
}
int32_t curpicnum = tspr->picnum;
DO_TILE_ANIM(curpicnum, tspr->owner+32768);
if (tspr->cstat & 48 && searchit != 2)
{
uint32_t const changed = XXH32((uint8_t *) tspr, offsetof(spritetype, owner), 0xDEADBEEF);
@ -3914,9 +3913,6 @@ void polymer_updatesprite(int32_t snum)
s->hash = 0xDEADBEEF;
}
curpicnum = tspr->picnum;
DO_TILE_ANIM(curpicnum, tspr->owner+32768);
if (((tspr->cstat>>4) & 3) == 0)
xratio = (float)(tspr->xrepeat) * 0.20f; // 32 / 160
else