Remove extraneous parens from ifs

Reported by clang.
This commit is contained in:
Timotej Lazar 2020-04-23 16:07:25 +02:00
parent c195987770
commit e2af28bdca
4 changed files with 7 additions and 7 deletions

View file

@ -2472,10 +2472,10 @@ void MarineBehaviour(STRATEGYBLOCK *sbPtr)
tracker_noise=1; tracker_noise=1;
} }
if ((marineStatusPointer->Target==NULL) if (marineStatusPointer->Target==NULL
#if ANARCHY #if ANARCHY
|| (marineStatusPointer->lastmodule!=sbPtr->containingModule->m_aimodule) || marineStatusPointer->lastmodule!=sbPtr->containingModule->m_aimodule
|| (marineStatusPointer->Target==Player->ObStrategyBlock) || marineStatusPointer->Target==Player->ObStrategyBlock
#endif #endif
) { ) {

View file

@ -156,7 +156,7 @@ List<SCString*>* WordWrap :: DeprecatedMake
// Whitespace character: // Whitespace character:
if if
( (
(CharsInLine == 0) CharsInLine == 0
) )
{ {
// Ignore leading whitespace in a line: // Ignore leading whitespace in a line:

View file

@ -964,7 +964,7 @@ static void ProcessSystemMessage(char *msgP,unsigned int msgSize)
{ {
/* only useful during startup: during main game, connecting player should /* only useful during startup: during main game, connecting player should
detect game state and exit immediately */ detect game state and exit immediately */
if((AvP.Network==I_Host)) if(AvP.Network==I_Host)
{ {
LPDPMSG_CREATEPLAYERORGROUP createMessage; LPDPMSG_CREATEPLAYERORGROUP createMessage;
createMessage = (LPDPMSG_CREATEPLAYERORGROUP)systemMessage; createMessage = (LPDPMSG_CREATEPLAYERORGROUP)systemMessage;
@ -990,7 +990,7 @@ static void ProcessSystemMessage(char *msgP,unsigned int msgSize)
or s/he has exited abnormally. In either case, only need to act on or s/he has exited abnormally. In either case, only need to act on
this during start-up. During the main game, the ghosts will time-out this during start-up. During the main game, the ghosts will time-out
anyway */ anyway */
if((AvP.Network==I_Host)) if(AvP.Network==I_Host)
{ {
LPDPMSG_DESTROYPLAYERORGROUP destroyMessage; LPDPMSG_DESTROYPLAYERORGROUP destroyMessage;
destroyMessage = (LPDPMSG_DESTROYPLAYERORGROUP)systemMessage; destroyMessage = (LPDPMSG_DESTROYPLAYERORGROUP)systemMessage;

View file

@ -4864,7 +4864,7 @@ void RenderParticle(PARTICLE *particlePtr)
offset[3].vx = -particleSize; offset[3].vx = -particleSize;
offset[3].vy = +particleSize; offset[3].vy = +particleSize;
if ((particlePtr->ParticleID == PARTICLE_MUZZLEFLASH) ) if (particlePtr->ParticleID == PARTICLE_MUZZLEFLASH)
{ {
int theta = FastRandom()&4095; int theta = FastRandom()&4095;
RotateVertex(&offset[0],theta); RotateVertex(&offset[0],theta);