Commit 02eff8c8 authored by Evan Ramos's avatar Evan Ramos

Duke3D: Fix breaking glass

Amends dc46c60e
parent 9a9418bd
......@@ -8225,27 +8225,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)
......@@ -8253,6 +8232,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment