Ikemen-GO icon indicating copy to clipboard operation
Ikemen-GO copied to clipboard

Position and such calculation vary with game resolution

Open potsmugen opened this issue 1 year ago • 0 comments

Describe the bug

Because of local scale operations, widescreen will make many calculations end up as repeating decimals instead of round rumbers.

This is probably the common reason behind a couple other bugs I reported.

To Reproduce

Any number of ways. But for instance:

  1. Set game resolution to widescreen
  2. Select KFM vs KFM
  3. Walk both characters into the same corner
  4. P2dist X will return 32.0 in 4:3 resolution and 31.999983 in 16:9

Expected behavior

Consistent values regardless of game resolution.

Screenshots / Video

4:3 ikemen005

16:9 ikemen004

Engine Version (or source code date)

0.99 but any, really

Operating system

Windows

Extra context or search terms

No response

potsmugen avatar Nov 19 '23 08:11 potsmugen