mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-26 14:01:05 +00:00
- SW: SECT_WALL_MOVE must consider tilenum 0 as 'no change'.
This commit is contained in:
parent
d064706f93
commit
c72f5e2242
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue