From 22cf0ea2ad31e278438f938fc6596821ff0d37fa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 28 Sep 2022 17:52:59 +0200 Subject: [PATCH] -deleted approxDist --- source/games/blood/src/common_game.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/source/games/blood/src/common_game.h b/source/games/blood/src/common_game.h index f7a9c4d1e..6c1a26b71 100644 --- a/source/games/blood/src/common_game.h +++ b/source/games/blood/src/common_game.h @@ -633,23 +633,6 @@ inline int dmulscale30r(int a, int b, int c, int d) return (int)(acc >> 30); } -inline int approxDist(int dx, int dy) -{ - dx = abs(dx); - dy = abs(dy); - if (dx > dy) - dy = (3 * dy) >> 3; - else - dx = (3 * dx) >> 3; - return dx + dy; -} - -// this is merely a refactoring aid to allow partial upgrading of certain functions. -inline int approxDist(const DVector2& vect) -{ - return int(vect.Length() * worldtoint); -} - class Rect { public: int x0, y0, x1, y1;