From 8fa80701bbae9267dcb8c5a79ba1601882a0c1e8 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 7 Aug 2012 13:09:00 +0000 Subject: [PATCH] Fix tile CAMERA1+4 being not changed to a CAMERA1 on spawn. git-svn-id: https://svn.eduke32.com/eduke32@2868 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 2234c159d..823197761 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -4063,14 +4063,16 @@ int32_t A_Spawn(int32_t j, int32_t pn) sect = sp->sectnum; //some special cases that can't be handled through the dynamictostatic system. - if (((sp->picnum >= BOLT1)&&(sp->picnum <= BOLT1+3))||((sp->picnum >= SIDEBOLT1)&&(sp->picnum <= SIDEBOLT1+3))) + if ((sp->picnum >= BOLT1 && sp->picnum <= BOLT1+3) || + (sp->picnum >= SIDEBOLT1 && sp->picnum <= SIDEBOLT1+3)) { T1 = sp->xrepeat; T2 = sp->yrepeat; sp->yvel = 0; changespritestat(i, STAT_STANDABLE); } - else if (((sp->picnum >= CAMERA1)&&(sp->picnum <= CAMERA1+3))||(sp->picnum==CAMERAPOLE)||(sp->picnum==GENERICPOLE)) + else if ((sp->picnum >= CAMERA1 && sp->picnum <= CAMERA1+4) || + sp->picnum==CAMERAPOLE || sp->picnum==GENERICPOLE) { if (sp->picnum != GENERICPOLE) {