mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-11 20:51:37 +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
693b7bfb84
commit
c07fe5ac2d
1 changed files with 1 additions and 1 deletions
|
@ -950,7 +950,7 @@ ai_checkattack(edict_t *self)
|
|||
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