- added some Sector Effector symbolic names.

This commit is contained in:
Christoph Oelckers 2022-09-03 17:51:35 +02:00
parent 4df1578064
commit e5219382f2
4 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ void animatesprites_d(tspriteArray& tsprites, int x, int y, int a, int smoothrat
switch (h->spr.picnum)
{
case SECTOREFFECTOR:
if (t->lotag == 27 && ud.recstat == 1)
if (t->lotag == SE_27_DEMO_CAM && ud.recstat == 1)
{
t->picnum = 11 + ((PlayClock >> 3) & 1);
t->cstat |= CSTAT_SPRITE_YCENTER;

View file

@ -131,7 +131,7 @@ void animatesprites_r(tspriteArray& tsprites, int x, int y, int a, int smoothrat
switch (h->spr.picnum)
{
case SECTOREFFECTOR:
if (t->lotag == 27 && ud.recstat == 1)
if (t->lotag == SE_27_DEMO_CAM && ud.recstat == 1)
{
t->picnum = 11 + ((PlayClock >> 3) & 1);
t->cstat |= CSTAT_SPRITE_YCENTER;

View file

@ -977,7 +977,7 @@ bool checkhitceiling_d(sectortype* sectp)
DukeSectIterator it(sectp);
while (auto act = it.Next())
{
if (act->spr.picnum == SECTOREFFECTOR && act->spr.lotag == 12)
if (act->spr.picnum == SECTOREFFECTOR && act->spr.lotag == SE_12_LIGHT_SWITCH)
{
DukeStatIterator it1(STAT_EFFECTOR);
while (auto act2 = it1.Next())

View file

@ -1489,7 +1489,7 @@ bool checkhitceiling_r(sectortype* sectp)
DukeSectIterator it(sectp);
while (auto act1 = it.Next())
{
if (act1->spr.picnum == SECTOREFFECTOR && (act1->spr.lotag == 12 || (isRRRA() && (act1->spr.lotag == 47 || act1->spr.lotag == 48))))
if (act1->spr.picnum == SECTOREFFECTOR && (act1->spr.lotag == SE_12_LIGHT_SWITCH || (isRRRA() && (act1->spr.lotag == 47 || act1->spr.lotag == 48))))
{
DukeStatIterator itr(STAT_EFFECTOR);
while (auto act2 = itr.Next())