revert the inline for loop back to its expanded form to be a bit more readable
revert the inline for loop back to its expanded form to be a bit more readable

fixes SPOT-910

profiled this to see if the inline loop was faster, but there was
really no difference. the times varied by a couple thousandths of
a second in either direction

uw-it-aca/spotseeker_server,uw-it-aca/spotseeker_server,uw-it-aca/spotseeker_server