- reverted wall pointer fix for FANSPRITE setup.

Turns out the bug came from the DOS code, but changing this breaks the fans.
This commit is contained in:
Christoph Oelckers 2022-02-18 00:19:21 +01:00
parent 9325f1d536
commit fd6d09273f
2 changed files with 2 additions and 2 deletions

View file

@ -399,7 +399,7 @@ void prelevel_d(int g, TArray<DDukeActor*>& actors)
{
case FANSHADOW:
case FANSPRITE:
wal.cstat |= CSTAT_WALL_BLOCK | CSTAT_WALL_BLOCK_HITSCAN;
//wal.cstat |= CSTAT_WALL_BLOCK | CSTAT_WALL_BLOCK_HITSCAN; Original code assigned this to 'wall', i.e. wall[0]
animwall[numanimwalls].wall = &wal;
numanimwalls++;
break;

View file

@ -730,7 +730,7 @@ void prelevel_r(int g, TArray<DDukeActor*>& actors)
switch (wal->overpicnum)
{
case FANSPRITE:
wal->cstat |= CSTAT_WALL_BLOCK | CSTAT_WALL_BLOCK_HITSCAN;
//wal.cstat |= CSTAT_WALL_BLOCK | CSTAT_WALL_BLOCK_HITSCAN; Original code assigned this to 'wall', i.e. wall[0]
animwall[numanimwalls].wall = wal;
numanimwalls++;
break;