mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 19:35:55 +00:00
chore: format everything
This commit is contained in:
@@ -430,7 +430,7 @@ void SparseDataStorage::addNewPlane(int y) {
|
||||
// try again
|
||||
queueForDelete(dataPointer);
|
||||
// printf("Marking for delete (fail) 0x%x\n",
|
||||
//dataPointer);
|
||||
// dataPointer);
|
||||
}
|
||||
} while (!success);
|
||||
}
|
||||
@@ -461,9 +461,9 @@ void SparseDataStorage::tick() {
|
||||
unsigned char* toFree = nullptr;
|
||||
do {
|
||||
toFree = deleteQueue[freeIndex].Pop();
|
||||
// if( toFree ) printf("Deleting 0x%x\n", toFree);
|
||||
// Determine correct means to free this data - could have been allocated either
|
||||
// with XPhysicalAlloc or malloc
|
||||
// if( toFree ) printf("Deleting 0x%x\n", toFree);
|
||||
// Determine correct means to free this data - could have been allocated
|
||||
// either with XPhysicalAlloc or malloc
|
||||
{
|
||||
free(toFree);
|
||||
}
|
||||
@@ -495,7 +495,7 @@ void SparseDataStorage::updateDataAndCount(int64_t newDataAndCount) {
|
||||
success = true;
|
||||
// Queue old data to be deleted
|
||||
// printf("Marking for delete 0x%x (full
|
||||
//replace)\n", lastDataPointer);
|
||||
// replace)\n", lastDataPointer);
|
||||
queueForDelete(lastDataPointer);
|
||||
}
|
||||
} while (!success);
|
||||
@@ -570,13 +570,13 @@ int SparseDataStorage::compress() {
|
||||
// Failed to write. Don't bother trying again... being very
|
||||
// conservative here.
|
||||
// printf("Marking for delete 0x%x (compress
|
||||
//fail)\n", newIndicesAndData);
|
||||
// fail)\n", newIndicesAndData);
|
||||
queueForDelete(newIndicesAndData);
|
||||
} else {
|
||||
// Success
|
||||
queueForDelete(planeIndices);
|
||||
// printf("Successfully compressed to %d planes, to delete
|
||||
//0x%x\n", planesToAlloc, planeIndices);
|
||||
// 0x%x\n", planesToAlloc, planeIndices);
|
||||
#if defined(DATA_COMPRESSION_STATS)
|
||||
count = planesToAlloc;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user