Reply 40 of 46, by ripsaw8080
- Rank
- DOSBox Author
The mickey x/y values can become infinitely (within the limits for a float) positive or negative, and that is also true for the coordinate x/y values when using the ps2 callback. The problem occurs when the floats keep increasing or decreasing, but the the casted ints don't increase or decrease past the upper or lower boundaries for a signed int. I guess that casting to unsigned simulates a sign flip that allows the casted ints to continue increasing or decreasing along with their source floats.