- SW: SECT_WALL_MOVE must consider tilenum 0 as 'no change'.

This commit is contained in:
Christoph Oelckers 2022-12-29 14:40:18 +01:00
parent d064706f93
commit c72f5e2242

View file

@ -2516,8 +2516,9 @@ void SpriteSetup(void)
case SECT_WALL_MOVE: case SECT_WALL_MOVE:
if (SP_TAG5(actor) >= 0 && !actor->texparam.isValid()) actor->texparam = tileGetTextureID(SP_TAG5(actor)); // this type considers tilenum 0 invalid.
if (SP_TAG6(actor) >= 0 && !actor->texparam.isValid()) actor->texparam2 = tileGetTextureID(SP_TAG6(actor)); if (SP_TAG5(actor) > 0 && !actor->texparam.isValid()) actor->texparam = tileGetTextureID(SP_TAG5(actor));
if (SP_TAG6(actor) > 0 && !actor->texparam.isValid()) actor->texparam2 = tileGetTextureID(SP_TAG6(actor));
change_actor_stat(actor, STAT_WALL_MOVE); change_actor_stat(actor, STAT_WALL_MOVE);
break; break;
case SECT_WALL_MOVE_CANSEE: case SECT_WALL_MOVE_CANSEE: