Skip to content

Commit

Permalink
[Cleanup] Add parenthesis to make statement easier to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiradur committed Nov 22, 2015
1 parent 0bd3c49 commit ef9e329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main/audio/SoundScriptManager.cpp
Expand Up @@ -369,8 +369,8 @@ SoundScriptInstance* SoundScriptManager::createInstance(Ogre::String templatenam
}

if ( free_trigs[templ->trigger_source] >= MAX_INSTANCES_PER_GROUP
|| free_gains[templ->trigger_source] >= MAX_INSTANCES_PER_GROUP && templ->gain_source != SS_MOD_NONE
|| free_pitches[templ->trigger_source] >= MAX_INSTANCES_PER_GROUP && templ->pitch_source != SS_MOD_NONE )
|| (free_gains[templ->trigger_source] >= MAX_INSTANCES_PER_GROUP && templ->gain_source != SS_MOD_NONE)
|| (free_pitches[templ->trigger_source] >= MAX_INSTANCES_PER_GROUP && templ->pitch_source != SS_MOD_NONE))
{
LOG("SoundScriptManager: Reached MAX_INSTANCES_PER_GROUP limit (" + TOSTRING(MAX_INSTANCES_PER_GROUP) + ")");
return NULL; // reached limit!
Expand Down

0 comments on commit ef9e329

Please sign in to comment.