From bcb1374391e60360aa9614301cca2627de559b9e Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 10 Oct 2018 19:14:51 +0000 Subject: [PATCH] Static analyzer says this condition is never true git-svn-id: https://svn.eduke32.com/eduke32@7057 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index c49fdda19..3fcd6d2ed 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -1628,9 +1628,8 @@ static int get_screen_coords(const vec2_t &p1, const vec2_t &p2, sx2 = xdimen-1; - int32_t tempint = (p1.y - p1.x) + (p2.x - p2.y); - if (tempint == 0) - return 0; + int32_t const tempint = (p1.y - p1.x) + (p2.x - p2.y); + sy2 = p1.y + scale(p2.y-p1.y, p1.y-p1.x, tempint); }