mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-22 20:01:03 +00:00
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:
parent
b475a527c9
commit
df29a29633
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue