voxeliq icon indicating copy to clipboard operation
voxeliq copied to clipboard

Fix all negative values for chunk & block accessors.

Open bonesoul opened this issue 12 years ago • 2 comments

  • [ ] Fix all negative values for chunk & block accessors.
  • [ ] Check all accessors & remove unneeded ones.
  • [ ] Write unit tests for accessors.

bonesoul avatar Dec 31 '12 11:12 bonesoul

Fixed a few bits with: https://github.com/raistlinthewiz/voxeliq/commit/c0c0d41822d8b4c9ab11b4e7038236c1a8384fd4

bonesoul avatar Dec 31 '12 19:12 bonesoul

bug File Chunk.cs, Method CalculateHeightIndexes() has bug on for LowestEmptyBlockOffset that some time value will be 255 ( would be 0 for correct) That because this line: this.LowestEmptyBlockOffset--;

should be fixed to: if(this.LowestEmptyBlockOffset > 0) this.LowestEmptyBlockOffset--;

because bytes will be calculate to 255 instead of 0

ps. That action will fixed the issue currentChunk was null in RecacheChunks()

shinznatkid avatar May 06 '13 15:05 shinznatkid