From 30d1c9b30b5642efcba66bdc7956f4d7e321fc97 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 11 Aug 2022 21:45:03 +0300 Subject: more used friendly --- src/tiles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tiles.c') diff --git a/src/tiles.c b/src/tiles.c index cb135fa..28ec89c 100644 --- a/src/tiles.c +++ b/src/tiles.c @@ -28,7 +28,7 @@ static int rotate(int x, int y, int r, int w) return -1; } -static void rotate_tiles(small_t *t, int i, int r) +static void rotate_tiles(char *t, int i, int r) { tiles[i] = malloc(TILE_WIDTH * TILE_HEIGHT * 3); @@ -38,7 +38,7 @@ static void rotate_tiles(small_t *t, int i, int r) tiles[i][(y * TILE_WIDTH + x)*3 + k] = t[(rotate(x, y, r, TILE_WIDTH))*3 + k]; } -static void rotate_connections(small_t *tc, int i, int n, int r) +static void rotate_connections(char *tc, int i, int n, int r) { tile_connections[n] = 0; for(int y = 0; y < 2; y++) @@ -79,7 +79,7 @@ void load_tiles() { char file_path[32]; sprintf(file_path, "files/tiles/tile_%ld.ppm", i); - small_t *t = load_from_ppm(file_path, &TILE_WIDTH, &TILE_HEIGHT); + char *t = load_from_ppm(file_path, &TILE_WIDTH, &TILE_HEIGHT); switch(tile_sym[i]) { -- cgit v1.2.3