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:22:57 +01:00
parent b475a527c9
commit df29a29633

View file

@ -882,7 +882,7 @@ ai_checkattack(edict_t *self, float dist)
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)
{