X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fchunk.hpp;fp=src%2Fchunk.hpp;h=fa19776ca60b063ee0a10aca4d2ea35d207a9c5c;hb=e2a346914a3b90ca7feed2e07d83faa06834bb95;hp=32f75056bfaba0494ffe2873fd292680920bb008;hpb=8795094374130820e36ec4fd7e08e13b6b316fba;p=blank.git diff --git a/src/chunk.hpp b/src/chunk.hpp index 32f7505..fa19776 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -91,7 +91,6 @@ public: // check if block at given index is completely enclosed (and therefore invisible) bool Obstructed(int idx) const; - void Allocate(); void Invalidate() { dirty = true; } void SetBlock(int index, const Block &); @@ -146,8 +145,8 @@ private: private: const BlockTypeRegistry *types; Chunk *neighbor[Block::FACE_COUNT]; - std::vector blocks; - std::vector light; + Block blocks[16 * 16 * 16]; + unsigned char light[16 * 16 * 16]; BlockModel model; Pos position; bool dirty;