diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-28 16:21:50 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-28 16:21:50 +0200 |
commit | b30f16d7c9a832ed09b5cd03d73f343f933ca872 (patch) | |
tree | fda125d7857add52b32bc1d77dc74451c7437fa4 /src/World.cpp | |
parent | Moved model parsing to startup stage and implemented model rotation (diff) | |
download | AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar.gz AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar.bz2 AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar.lz AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar.xz AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.tar.zst AltCraft-b30f16d7c9a832ed09b5cd03d73f343f933ca872.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp index f9eb560..76598e3 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -421,7 +421,7 @@ unsigned char World::GetBlockLight(Vector pos) unsigned char World::GetBlockLight(const Vector &blockPos, const Section *section, const Section *xp, const Section *xn, const Section *yp, const Section *yn, const Section *zp, const Section *zn) { - const Vector directions[] = { + static const Vector directions[] = { Vector(0,0,0), Vector(1,0,0), Vector(-1,0,0), @@ -482,7 +482,7 @@ unsigned char World::GetBlockSkyLight(Vector pos) unsigned char World::GetBlockSkyLight(const Vector &blockPos, const Section *section, const Section *xp, const Section *xn, const Section *yp, const Section *yn, const Section *zp, const Section *zn) { - const Vector directions[] = { + static const Vector directions[] = { Vector(0,0,0), Vector(1,0,0), Vector(-1,0,0), |