mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 20:31:50 +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
1c70fd8840
commit
ff4c00e5e6
1 changed files with 1 additions and 1 deletions
|
@ -1172,7 +1172,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