From 52fdf6319f79b41dbc8531556c0334d538d2dae3 Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 7 Feb 2023 18:14:47 -0600 Subject: fix rounding of positions onscreen --- core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core.c') diff --git a/core.c b/core.c index 04cab5a..7129bbc 100644 --- a/core.c +++ b/core.c @@ -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) { -- cgit v1.2.3