From e7b70b4bd7bbe99fedf41a74ec7d51fe2ba083b0 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 28 Mar 2017 17:18:39 +0200 Subject: [PATCH] [Maps] Correct if both vectors are null --- src/Components/Modules/Maps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/Maps.cpp b/src/Components/Modules/Maps.cpp index fc7f9585..d94003f0 100644 --- a/src/Components/Modules/Maps.cpp +++ b/src/Components/Modules/Maps.cpp @@ -589,7 +589,7 @@ namespace Components //if(path != forward) // This would work if floats were accurate (both vectors are normalized) // As the method above doesn't work, just compare signs and skip to the next model if they don't equal - if ((path[0] < 0) == (forward[0] > 0) && (path[1] < 0) == (forward[1] > 0)) continue; + if ((path[0] < 0) == (forward[0] >= 0) && (path[1] < 0) == (forward[1] >= 0)) continue; } gameWorld->dpvs.smodelVisData[0][i] = 1;