Fix long-standing truncation bug.

Up until now I had been losing precision when calculating nextHitbox.
Now I add the remainder before casting to int, which will potentially
bump up the value by 1. I haven't noticed any impact yet.