Browse Source

skip hit check without movement

Kajetan Johannes Hammerle 2 years ago
parent
commit
0a2cb88d68
1 changed files with 2 additions and 0 deletions
  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) {