Fixed the performance optimization that wasn't;   That variable was
in place to prevent unnecessary and expensive casts from int to float
and back, but was never being set so it was not in fact stopping anything.