Explorar o código

skip hit check without movement

Kajetan Johannes Hammerle %!s(int64=3) %!d(string=hai) anos
pai
achega
0a2cb88d68
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      client/World.cpp

+ 2 - 0
client/World.cpp

@@ -170,6 +170,8 @@ Vector3 World::limitMove(const Box& box, Vector3 move) {
             } else if(move[i] != 0.0f) {
                 realMove[i] += move[i];
                 move[i] = 0.0f;
+            } else {
+                continue;
             }
             Box moved = box.offset(realMove);
             for(const Box& box : boxes) {