mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
Duke3D: Fix breaking glass
Amends dc46c60e9fb511c0bc955ca39ea48ccfa3b02a24
This commit is contained in:
parent
cf22b4da0a
commit
960d4b6ecc
1 changed files with 13 additions and 21 deletions
|
@ -8177,27 +8177,6 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
|
|||
{
|
||||
walltype *pWall = &wall[pData[2]];
|
||||
|
||||
#if 0
|
||||
// Due to a typo in the original source code, this block never executes.
|
||||
if (!(pWall->cstat & 32))
|
||||
{
|
||||
pWall->overpicnum++;
|
||||
if (pWall->nextwall >= 0)
|
||||
wall[pWall->nextwall].overpicnum++;
|
||||
|
||||
if (pData[0] < pData[1]) pData[0]++;
|
||||
else
|
||||
{
|
||||
pWall->cstat &= (128+32+8+4+2);
|
||||
if (pWall->nextwall >= 0)
|
||||
wall[pWall->nextwall].cstat &= (128+32+8+4+2);
|
||||
DELETE_SPRITE_AND_CONTINUE(spriteNum);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
pWall->cstat &= (255-32);
|
||||
pWall->cstat |= 16;
|
||||
if (pWall->nextwall >= 0)
|
||||
|
@ -8205,6 +8184,19 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
|
|||
wall[pWall->nextwall].cstat &= (255-32);
|
||||
wall[pWall->nextwall].cstat |= 16;
|
||||
}
|
||||
|
||||
pWall->overpicnum++;
|
||||
if (pWall->nextwall >= 0)
|
||||
wall[pWall->nextwall].overpicnum++;
|
||||
|
||||
if (pData[0] < pData[1]) pData[0]++;
|
||||
else
|
||||
{
|
||||
pWall->cstat &= (128+32+8+4+2);
|
||||
if (pWall->nextwall >= 0)
|
||||
wall[pWall->nextwall].cstat &= (128+32+8+4+2);
|
||||
DELETE_SPRITE_AND_CONTINUE(spriteNum);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue