diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-19 16:42:15 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-19 16:42:15 +0100 |
| commit | 79efc8a8e9976bbdd41d4a47b58c71d3be9d4ff7 (patch) | |
| tree | 5a46a8406ec3404859e0f3926bc75e08423afaa8 /src/zombies.c | |
| parent | 22936e7a270a9bd0f13acb651b15db2158a8d6e0 (diff) | |
zombie chunks
Diffstat (limited to 'src/zombies.c')
| -rw-r--r-- | src/zombies.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
