- the (few) numeric flag literals in SW handled.

Virtually all of this was portal hackery.
This commit is contained in:
Christoph Oelckers 2021-12-18 15:23:11 +01:00
parent d24b8d9ec8
commit 76e944053b
2 changed files with 4 additions and 4 deletions

View file

@ -643,9 +643,9 @@ int AutoBreakWall(WALLp wallp, int hit_x, int hit_y, int hit_z, int ang, int typ
bool UserBreakWall(WALLp wp)
{
int match = wp->hitag;
int block_flags = CSTAT_WALL_BLOCK|CSTAT_WALL_BLOCK_HITSCAN;
int type_flags = CSTAT_WALL_TRANSLUCENT|CSTAT_WALL_MASKED|CSTAT_WALL_1WAY;
int flags = block_flags|type_flags;
const auto block_flags = CSTAT_WALL_BLOCK|CSTAT_WALL_BLOCK_HITSCAN;
const auto type_flags = CSTAT_WALL_TRANSLUCENT|CSTAT_WALL_MASKED|CSTAT_WALL_1WAY;
const auto flags = block_flags|type_flags;
bool ret = false;
auto actor = FindBreakSpriteMatch(match);

View file

@ -281,7 +281,7 @@ void JS_InitMirrors(void)
for(auto& wal : walls())
{
if (wal.twoSided() && (wal.overpicnum == MIRROR) && (wal.cstat & 32))
if (wal.twoSided() && (wal.overpicnum == MIRROR) && (wal.cstat & CSTAT_WALL_1WAY))
{
auto sec = wal.nextSector();
if ((sec->floorstat & CSTAT_SECTOR_SKY) == 0)