diff options
author | davidovski <david@davidovski.xyz> | 2023-07-23 23:45:47 +0200 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-23 23:45:47 +0200 |
commit | 661f470cc8197f643a2ab36c35fb0630f31023aa (patch) | |
tree | 8b0ad0754d0b7e0b000276c6b2cfcc9e4a330cd5 /src/tiledmap.h | |
parent | 0f1d7ba48387faaced30d35e64cf346d368f4a23 (diff) |
optimise chunk loading and redrawing
Diffstat (limited to 'src/tiledmap.h')
-rw-r--r-- | src/tiledmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |