summaryrefslogtreecommitdiffstats
path: root/src/Section.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-28 16:21:50 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-28 16:21:50 +0200
commitb30f16d7c9a832ed09b5cd03d73f343f933ca872 (patch)
treefda125d7857add52b32bc1d77dc74451c7437fa4 /src/Section.hpp
parentMoved model parsing to startup stage and implemented model rotation (diff)
downloadAltCraft-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 'src/Section.hpp')
-rw-r--r--src/Section.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Section.hpp b/src/Section.hpp
index bc8b70b..b85eb43 100644
--- a/src/Section.hpp
+++ b/src/Section.hpp
@@ -8,8 +8,8 @@
class Section {
std::vector<long long> block;
- std::vector<unsigned char> light;
- std::vector<unsigned char> sky;
+ unsigned char light[2048] = {};
+ unsigned char sky[2048] = {};
unsigned char bitsPerBlock = 0;
std::vector<unsigned short> palette;
@@ -20,7 +20,7 @@ class Section {
std::map<Vector, BlockId> overrideList;
public:
- Section(Vector pos, unsigned char bitsPerBlock, std::vector<unsigned short> palette, std::vector<long long> blockData, std::vector<unsigned char> lightData, std::vector<unsigned char> skyData);
+ Section(Vector pos, unsigned char bitsPerBlock, std::vector<unsigned short> palette, std::vector<long long> blockData, const std::vector<unsigned char> &lightData, const std::vector<unsigned char> &skyData);
Section() = default;