cleanup
This commit is contained in:
parent
5ddc52405d
commit
35abb02e2f
5 changed files with 121 additions and 106 deletions
5
gen.c
5
gen.c
|
@ -158,14 +158,9 @@ struct chunk fetch_chunk(int x, int y, int z, int ci, int h) {
|
|||
}
|
||||
|
||||
void purge_chunks(int ci) {
|
||||
/*
|
||||
free(chunks);
|
||||
chunks = calloc(CBUF_ALL, sizeof(struct chunk));
|
||||
*/
|
||||
if (chunks == NULL) {
|
||||
chunks = calloc(CHUNK_ALL, sizeof(struct chunk));
|
||||
}
|
||||
// memset(chunks, 0, sizeof(struct chunk) *CHUNK_ALL);
|
||||
}
|
||||
|
||||
void free_chunks() { free(chunks); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue