Commit ec133d2c authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: pal 23 MASTERSWITCH repeat activation

parent ab07a4d3
......@@ -2453,6 +2453,13 @@ DETONATE:
}
}
if (pSprite->pal == 23)
{
pSprite->yvel = 0;
pSprite->hitag = pSprite->extra;
goto next_sprite;
}
DELETE_SPRITE_AND_CONTINUE(spriteNum);
}
}
......
......@@ -2792,11 +2792,12 @@ int A_Spawn(int spriteNum, int tileNum)
goto SPAWN_END;
case MASTERSWITCH__STATIC:
if (pSprite->picnum == MASTERSWITCH)
pSprite->cstat |= 32768;
pSprite->cstat |= 32768;
pSprite->extra = pSprite->hitag;
pSprite->yvel = 0;
changespritestat(newSprite, STAT_STANDABLE);
goto SPAWN_END;
case LOCATORS__STATIC:
pSprite->cstat |= 32768;
changespritestat(newSprite, STAT_LOCATOR);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment