]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
test entities for world collision
[blank.git] / src / ui / ui.cpp
index 410072da681ed292042949fb88247bd409160068..c71b7c105a0f0c357a359e5cd8ac34779856d166 100644 (file)
@@ -356,7 +356,7 @@ void Interface::Update(int dt) {
 
 void Interface::CheckAim() {
        float dist;
-       if (world.Intersection(aim, glm::mat4(1.0f), &aim_chunk, &aim_block, &dist, &aim_normal)) {
+       if (world.Intersection(aim, glm::mat4(1.0f), aim_chunk, aim_block, dist, aim_normal)) {
                outline.Clear();
                aim_chunk->Type(aim_chunk->BlockAt(aim_block)).FillOutlineModel(outline);
                outline_transform = glm::scale(glm::vec3(1.0002f));