]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/terrain.c
You can now see other players
[dragonblocks_alpha.git] / src / terrain.c
index 5b6d48a8f5c1d9a43ce2f79c3db0e764b9b36edb..2e8eec888072b94177a7299a6061819dd0813711 100644 (file)
@@ -15,7 +15,7 @@ static void delete_chunk(TerrainChunk *chunk, Terrain *terrain)
 
 static void delete_sector(TerrainSector *sector, Terrain *terrain)
 {
-       tree_clr(&sector->chunks, (void *) &delete_chunk, terrain, NULL, 0);
+       tree_clr(&sector->chunks, &delete_chunk, terrain, NULL, 0);
        pthread_rwlock_destroy(&sector->lock);
        free(sector);
 }
@@ -32,7 +32,7 @@ Terrain *terrain_create()
 
 void terrain_delete(Terrain *terrain)
 {
-       tree_clr(&terrain->sectors, (void *) &delete_sector, terrain, NULL, 0);
+       tree_clr(&terrain->sectors, &delete_sector, terrain, NULL, 0);
        pthread_rwlock_destroy(&terrain->lock);
        pthread_rwlock_destroy(&terrain->cache_lock);
        free(terrain);