fix(Core/Spell): Stop Blink from the falling player to move upward by 1y and stop moving backward when facing a wall (#16657)

* blink-bad-warps

* Change formatting of an if
This commit is contained in:
Synful-Syn
2023-08-25 08:14:27 -04:00
committed by GitHub
parent 2aee8bb1c3
commit 6b583089f3
2 changed files with 16 additions and 13 deletions

View File

@@ -176,13 +176,7 @@ namespace VMAP
// direction with length of 1
G3D::Ray ray = G3D::Ray::fromOriginAndDirection(pos1, (pos2 - pos1) / maxDist);
if (GetIntersectionTime(ray, maxDist, true, ignoreFlags))
{
return false;
}
return true;
return !GetIntersectionTime(ray, maxDist, true, ignoreFlags);
}
//=========================================================
/**