aboutsummaryrefslogtreecommitdiff
path: root/src/tiles.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-11 21:45:03 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-11 21:45:03 +0300
commit30d1c9b30b5642efcba66bdc7956f4d7e321fc97 (patch)
treeae3cf3aeb4b01f1cb70ae84cc84d453e08da35a5 /src/tiles.c
parent57315da56fa3b036f8e3e2d32a5f90a11ae7c3de (diff)
more used friendly
Diffstat (limited to 'src/tiles.c')
-rw-r--r--src/tiles.c6
1 files changed, 3 insertions, 3 deletions
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])
{