Reorder conditionals to please unoptimizing compilers

This was requested by Maraakate. This is likely a noop, since even
early compilers from th 1970th supported simple optimiziations like
this.
This commit is contained in:
Yamagi Burmeister 2016-12-20 15:18:32 +01:00
parent 1c70fd8840
commit ff4c00e5e6

View file

@ -1172,7 +1172,7 @@ ai_checkattack(edict_t *self, float dist)
return false; return false;
} }
if (!visible(self, self->goalentity) && (self->monsterinfo.aiflags & AI_SOUND_TARGET)) if ((self->monsterinfo.aiflags & AI_SOUND_TARGET) && !visible(self, self->goalentity))
{ {
if ((level.time - self->enemy->last_sound_time) > 5.0) if ((level.time - self->enemy->last_sound_time) > 5.0)
{ {