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
This commit is contained in:
helixhorned 2012-08-07 13:09:00 +00:00
parent af626df86b
commit 8fa80701bb

View file

@ -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)
{