]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
explicit reference for world coordinates
[blank.git] / src / ui / ui.cpp
index aeaccc55c915e49bf21689f01c1347d82b346da3..037fcb510dc16a55d96f1ca638d08ba48fe47229 100644 (file)
@@ -592,10 +592,10 @@ OutlineModel::Buffer outl_buf;
 }
 
 void Interface::CheckAim() {
-       if (!world.Intersection(aim, glm::mat4(1.0f), aim_world)) {
+       if (!world.Intersection(aim, glm::mat4(1.0f), ctrl.Controlled().ChunkCoords(), aim_world)) {
                aim_world = WorldCollision();
        }
-       if (!world.Intersection(aim, glm::mat4(1.0f), aim_entity)) {
+       if (!world.Intersection(aim, glm::mat4(1.0f), ctrl.Controlled(), aim_entity)) {
                aim_entity = EntityCollision();
        }
        if (aim_world && aim_entity) {