Blood: fix candles

This commit is contained in:
nukeykt 2020-01-03 00:20:11 +09:00 committed by Christoph Oelckers
parent 57e925a1bb
commit cc4f801b1e

View file

@ -2436,7 +2436,7 @@ void viewProcessSprites(int32_t cX, int32_t cY, int32_t cZ, int32_t cA, int32_t
} }
switch (pTSprite->statnum) { switch (pTSprite->statnum) {
case kStatDecoration: { case kStatDecoration: {
switch (pTSprite->hitag) { switch (pTSprite->lotag) {
case kDecorationCandle: case kDecorationCandle:
if (!pTXSprite || pTXSprite->state == 1) { if (!pTXSprite || pTXSprite->state == 1) {
pTSprite->shade = -128; pTSprite->shade = -128;
@ -2460,7 +2460,7 @@ void viewProcessSprites(int32_t cX, int32_t cY, int32_t cZ, int32_t cA, int32_t
} }
break; break;
case kStatItem: { case kStatItem: {
switch (pTSprite->hitag) { switch (pTSprite->lotag) {
case kItemFlagABase: case kItemFlagABase:
if (pTXSprite && pTXSprite->state > 0 && gGameOptions.nGameType == 3) { if (pTXSprite && pTXSprite->state > 0 && gGameOptions.nGameType == 3) {
auto pNTSprite = viewAddEffect(nTSprite, VIEW_EFFECT_17); auto pNTSprite = viewAddEffect(nTSprite, VIEW_EFFECT_17);