mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
Duke3D: Disable dead code in implementation of undocumented SE 128
Avoids warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare]
This commit is contained in:
parent
49deeb350e
commit
262f2234c6
1 changed files with 19 additions and 15 deletions
|
@ -8177,29 +8177,33 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
|
|||
{
|
||||
walltype *pWall = &wall[pData[2]];
|
||||
|
||||
if (pWall->cstat|32)
|
||||
#if 0
|
||||
// Due to a typo in the original source code, this block never executes.
|
||||
if (!(pWall->cstat & 32))
|
||||
{
|
||||
pWall->cstat &= (255-32);
|
||||
pWall->cstat |= 16;
|
||||
pWall->overpicnum++;
|
||||
if (pWall->nextwall >= 0)
|
||||
wall[pWall->nextwall].overpicnum++;
|
||||
|
||||
if (pData[0] < pData[1]) pData[0]++;
|
||||
else
|
||||
{
|
||||
wall[pWall->nextwall].cstat &= (255-32);
|
||||
wall[pWall->nextwall].cstat |= 16;
|
||||
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;
|
||||
}
|
||||
else break;
|
||||
#endif
|
||||
|
||||
pWall->overpicnum++;
|
||||
pWall->cstat &= (255-32);
|
||||
pWall->cstat |= 16;
|
||||
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);
|
||||
wall[pWall->nextwall].cstat &= (255-32);
|
||||
wall[pWall->nextwall].cstat |= 16;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue