mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- the (few) numeric flag literals in SW handled.
Virtually all of this was portal hackery.
This commit is contained in:
parent
d24b8d9ec8
commit
76e944053b
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue