mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- fixed incompatibility of FindDistance3D with Shadow Warrior.
Fixes #200 and most likely many other issues as well.
This commit is contained in:
parent
57cdcda253
commit
0a8f7e60b6
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ int FindDistance3D(int x, int y, int z)
|
|||
{
|
||||
x= abs(x); /* absolute values */
|
||||
y= abs(y);
|
||||
z= abs(z);
|
||||
z= abs(z >> 4);
|
||||
|
||||
if (x<y)
|
||||
std::swap(x,y);
|
||||
|
|
|
@ -94,7 +94,7 @@ inline int dist(const spritetype* s1, const spritetype* s2)
|
|||
vx = s1->x - s2->x;
|
||||
vy = s1->y - s2->y;
|
||||
vz = s1->z - s2->z;
|
||||
return(FindDistance3D(vx, vy, vz >> 4));
|
||||
return(FindDistance3D(vx, vy, vz));
|
||||
}
|
||||
|
||||
inline bool isIn(int value, int first)
|
||||
|
|
Loading…
Reference in a new issue