X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=037fcb510dc16a55d96f1ca638d08ba48fe47229;hb=e872614d387c4bfc3afb04bcc7cba3d9b8f3954b;hp=aeaccc55c915e49bf21689f01c1347d82b346da3;hpb=df8e86cac65da6daedcab3e4ab1751de2f7e123a;p=blank.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index aeaccc5..037fcb5 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -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) {