Static analyzer says this condition is never true

git-svn-id: https://svn.eduke32.com/eduke32@7057 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-10 19:14:51 +00:00
parent 15008d7aec
commit bcb1374391

View file

@ -1628,9 +1628,8 @@ static int get_screen_coords(const vec2_t &p1, const vec2_t &p2,
sx2 = xdimen-1; sx2 = xdimen-1;
int32_t tempint = (p1.y - p1.x) + (p2.x - p2.y); int32_t const tempint = (p1.y - p1.x) + (p2.x - p2.y);
if (tempint == 0)
return 0;
sy2 = p1.y + scale(p2.y-p1.y, p1.y-p1.x, tempint); sy2 = p1.y + scale(p2.y-p1.y, p1.y-p1.x, tempint);
} }