From b1b7f13a41f1cf9016d71c4e512a0384340b2d90 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 10 Jun 2016 18:23:25 +0000 Subject: [PATCH] Polymer: Correct an oversight in r3580. git-svn-id: https://svn.eduke32.com/eduke32@5775 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index c636aa6b3..01b42b58d 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -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