From 1940940f810050de06d33d561e555c7c0cf11e51 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 25 Oct 2016 05:43:42 +0000 Subject: [PATCH] Revert a formatting change from r5725. git-svn-id: https://svn.eduke32.com/eduke32@5912 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 0501d7dc7..bed6a5e60 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -3686,16 +3686,16 @@ void polymost_scansector(int32_t sectnum) { uspritetype const * const spr = (uspritetype *)&sprite[z]; - if ((((spr->cstat&0x8000) == 0) || (showinvisibility)) && (spr->xrepeat > 0) && (spr->yrepeat > 0)) - { - vec2_t const s = { spr->x-globalposx, spr->y-globalposy }; + if ((spr->cstat & 0x8000 && !showinvisibility) || spr->xrepeat == 0 || spr->yrepeat == 0) + continue; - if ((spr->cstat&48) || (usemodels && tile2model[spr->picnum].modelid>=0) || ((s.x * gcosang) + (s.y * gsinang) > 0)) - { - if ((spr->cstat&(64+48))!=(64+16) || dmulscale6(sintable[(spr->ang+512)&2047],-s.x, sintable[spr->ang&2047],-s.y) > 0) - if (engine_addtsprite(z, sectnum)) - break; - } + vec2_t const s = { spr->x-globalposx, spr->y-globalposy }; + + if ((spr->cstat&48) || (usemodels && tile2model[spr->picnum].modelid>=0) || ((s.x * gcosang) + (s.y * gsinang) > 0)) + { + if ((spr->cstat&(64+48))!=(64+16) || dmulscale6(sintable[(spr->ang+512)&2047],-s.x, sintable[spr->ang&2047],-s.y) > 0) + if (engine_addtsprite(z, sectnum)) + break; } }