Skip to content

Commit

Permalink
Exit _GROUPS_CHECK_ANY loop after first success.
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Less authored Feb 27, 2018
1 parent 5e1dc70 commit 8c15067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YSI_Players/y_groups/setup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Optional plugins:
// The variable is now based on both input variables to avoid shadow
// warnings when used within another check (as in "Group_FullPlayerUpdate").
#define _GROUPS_CHECK_ANY(%0,%1) \
for (new %1__g%0 = bits<_MAX_GROUPS_G>; %1__g%0--; ) if (%0[%1__g%0] & %1[%1__g%0])
for (new %1__g%0 = bits<_MAX_GROUPS_G>; %1__g%0--; ) if ((%0[%1__g%0] & %1[%1__g%0]) && !((%1__g%0 = 0)))
#endif

stock
Expand Down

0 comments on commit 8c15067

Please sign in to comment.