diff options
| author | the lemons <citrons@mondecitronne.com> | 2023-02-07 18:14:47 -0600 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2023-02-07 18:14:47 -0600 |
| commit | 52fdf6319f79b41dbc8531556c0334d538d2dae3 (patch) | |
| tree | 1e0139b60103f454dd0ff98ecb1d43a9398fbb09 /core.c | |
| parent | c651762762dd9463aacecd703b31d81042a42473 (diff) | |
fix rounding of positions onscreen
Diffstat (limited to 'core.c')
| -rw-r--r-- | core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,8 +37,8 @@ static void add_scale(double amount) { } static void world_pos(double *x, double *y) { - *x = *x / scale + pos_x - 0.5; - *y = *y / scale + pos_y - 0.5; + *x = *x / scale + floor(pos_x); + *y = *y / scale + floor(pos_y); } static void goto_addr(uintptr_t addr) { |
