X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.cpp;h=10a72b8e89e698f2abf52164df4bc91a6b164c96;hb=1a7bbd64b1fef1f4e2f9303f820d6f3ce76cebf1;hp=0d7e7dbb8fb511c40dbff366394699c99b1753e7;hpb=addf4eb6485a36d40096d87196ed786e6e16ab6d;p=blank.git diff --git a/src/app.cpp b/src/app.cpp index 0d7e7db..10a72b8 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -145,7 +145,7 @@ void Application::Update(int dt) { glm::vec3 next_pos = Chunk::ToCoords(blkid) + normal; if (!Chunk::InBounds(next_pos)) { mod_chunk = &world.Next(*chunk, normal); - next_pos -= normal * Chunk::Extent(); + next_pos -= normal * glm::vec3(Chunk::Extent()); } mod_chunk->BlockAt(next_pos).type = world.BlockTypes()[place_id]; mod_chunk->Invalidate();