From 79efc8a8e9976bbdd41d4a47b58c71d3be9d4ff7 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 19 Dec 2022 16:42:15 +0100 Subject: zombie chunks --- src/zombies.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zombies.c') diff --git a/src/zombies.c b/src/zombies.c index d44c46d..a5a9f38 100644 --- a/src/zombies.c +++ b/src/zombies.c @@ -143,7 +143,7 @@ void update_zombies_client(platform_window* window) { if (!o.alive) continue; if (o.next2tiles[0].x == -1 || o.next2tiles[0].y == -1) continue; // ran out of stored path. - float height = get_height_of_tile_under_coords(window, zombies[i].position.x, zombies[i].position.y); + float height = get_height_of_tile_under_coords(zombies[i].position.x, zombies[i].position.y); vec2f dir = get_direction_to_tile(o, o.next2tiles[0]); zombies[i].position.x += dir.x*speed; @@ -208,7 +208,7 @@ void update_zombies_server(platform_window* window) { } vec2f dir = get_direction_to_next_tile(o); - float height = get_height_of_tile_under_coords(window, zombies[i].position.x, zombies[i].position.y); + float height = get_height_of_tile_under_coords(zombies[i].position.x, zombies[i].position.y); zombies[i].position.x += dir.x*speed; zombies[i].position.y += dir.y*speed; zombies[i].position.z = height; -- cgit v1.2.3-70-g09d2