Skip to content

Commit ae69df9

Browse files
committed
Uint32Array fix
1 parent e42392e commit ae69df9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

coffee/client/module/World/CellTerrain.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CellTerrain
2323
cellId=@vec3(@computeCellForVoxel(voxelX,voxelY,voxelZ)...)
2424
cell=@cells[cellId]
2525
if not cell
26-
cell=new Uint8Array @cellSize*@cellSize*@cellSize
26+
cell=new Uint32Array @cellSize*@cellSize*@cellSize
2727
@cells[cellId]=cell
2828
return cell
2929
getCellForVoxel:(voxelX,voxelY,voxelZ)->

coffee/client/module/World/sections.worker.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ChunkDecoder
6262
y:0
6363
z:0
6464
}
65-
cell=new Uint8Array 16*16*16
65+
cell=new Uint32Array 16*16*16
6666
for x in [0..15]
6767
for y in [0..15]
6868
for z in [0..15]

coffee/client/module/index.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ init = ()->
165165
gui.add( params, 'chunkdist',0,10,1).name( 'Render distance' ).listen()
166166

167167
$(document).mousedown (e)->
168-
console.log world.cellTerrain.getVoxel world.getRayBlock().posBreak...
168+
console.log world.cellTerrain.getBlock world.getRayBlock().posBreak...
169169
return
170170

171171
#Wprawienie w ruch funkcji animate

src/client/module/World/CellTerrain.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/module/World/sections.worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/module/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)