From 661f470cc8197f643a2ab36c35fb0630f31023aa Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 23 Jul 2023 23:45:47 +0200 Subject: optimise chunk loading and redrawing --- src/tiledmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tiledmap.h') diff --git a/src/tiledmap.h b/src/tiledmap.h index 972a74d..7b819a2 100644 --- a/src/tiledmap.h +++ b/src/tiledmap.h @@ -6,12 +6,12 @@ typedef unsigned char Tile; typedef Tile * Chunk; -typedef struct CachedChunk { +typedef struct { long filePos; Chunk chunk; } CachedChunk; -typedef struct ChunkedTiledMap { +typedef struct { FILE * file; int chunkWidth; int chunkHeight; -- cgit v1.2.1