sashakoshka / m4kc

Minecraft 4k: decompiled, translated to C using SDL for graphics and input, and improved upon
78 stars 8 forks source link

Selected block indicator cuts off at mouse x position #2

Closed sashakoshka closed 3 years ago

sashakoshka commented 3 years ago

When hovering over a block, only the half of the white indicator outline that is to the right of the mouse shows up.

image

sashakoshka commented 3 years ago

Figured out this is due to the difference in the modulo operator between java and c.

sashakoshka commented 3 years ago

Figured out its probably not

sashakoshka commented 3 years ago

This was fixed by passing block selection info at the end of the rendering loop instead of during it.