Optimizing code with modulo operator

Optimizing similar use of a check that was pointed out by Mega1mpact in
codeCompare.sqf.  No changes to the code functionality, just cleaner
code.