mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-30 17:15:29 -04:00
Remove unused functions
This commit is contained in:
parent
872ba78513
commit
6e868ed312
@ -427,21 +427,6 @@ static void CalcBlockLight(cc_uint8 blockLight, int x, int y, int z, cc_bool sun
|
||||
}
|
||||
}
|
||||
}
|
||||
static cc_bool BlocksSun(int x, int y, int z) {
|
||||
BlockID thisBlock = World_GetBlock(x, y, z);
|
||||
if (Blocks.BlocksLight[thisBlock]) { return true; }
|
||||
return false;
|
||||
}
|
||||
static cc_bool InSun(int x, int y, int z) {
|
||||
int topY = World.Height - 1;
|
||||
while (!BlocksSun(x, topY, z)) {
|
||||
topY--;
|
||||
if (topY == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return y > topY;
|
||||
}
|
||||
static void CalculateChunkLightingSelf(int chunkIndex, int cx, int cy, int cz) {
|
||||
int x, y, z;
|
||||
int chunkStartX, chunkStartY, chunkStartZ; //world coords
|
||||
|
Loading…
x
Reference in New Issue
Block a user