mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Warning fixes, refactor
This commit is contained in:
parent
eaf1fa54cd
commit
4f20abe7ea
14 changed files with 67 additions and 55 deletions
|
|
@ -171,7 +171,7 @@ bool WorldFiles::readChunk(int x, int y, char* out){
|
|||
input.read(mainBufferIn, compressedSize);
|
||||
input.close();
|
||||
|
||||
decompressRLE(mainBufferIn, compressedSize, out, CHUNK_VOL);
|
||||
decompressRLE((unsigned char*)mainBufferIn, compressedSize, (unsigned char*)out, CHUNK_VOL);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -274,7 +274,7 @@ unsigned int WorldFiles::writeRegion(char* out, int x, int y, char** region){
|
|||
} else {
|
||||
int2Bytes(offset, out, i*4);
|
||||
|
||||
unsigned int compressedSize = compressRLE(chunk, CHUNK_VOL, compressed);
|
||||
unsigned int compressedSize = compressRLE((unsigned char*)chunk, CHUNK_VOL, (unsigned char*)compressed);
|
||||
|
||||
int2Bytes(compressedSize, out, offset);
|
||||
offset += 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue