X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=b275315a5a8b7b0053d4b4ecbe5c5e4f9b21ba54;hb=f5de855fbd4bf5b0df1cad950cbe9069e41369ca;hp=fb4375599226226d3e80ddcf670935a77d78e3d7;hpb=5c0d6397cfdec3a284a6560c3c6b3acbcd9f9331;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index fb43755..b275315 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -460,7 +460,7 @@ bool Chunk::Intersection( const glm::vec3 entity_coords(Mentity[3] - Mchunk[3]); const float ec_radius = entity.Radius() + Radius(); - if (distance_squared(entity_coords, Center()) > ec_radius * ec_radius) { + if (distance2(entity_coords, Center()) > ec_radius * ec_radius) { return false; }