ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.29 by root, Mon Jan 15 01:39:42 2007 UTC vs.
Revision 1.30 by root, Mon Jan 15 01:50:33 2007 UTC

58#if 0 58#if 0
59 return dx_ > dy_ 59 return dx_ > dy_
60 ? (dx_ * 61685 + dy_ * 26870) >> 16 60 ? (dx_ * 61685 + dy_ * 26870) >> 16
61 : (dy_ * 61685 + dx_ * 26870) >> 16; 61 : (dy_ * 61685 + dx_ * 26870) >> 16;
62#else 62#else
63 return dx + dy - min (dx, dy) * 5 / 8; 63 return dx_ + dy_ - min (dx_, dy_) * 5 / 8;
64#endif 64#endif
65} 65}
66 66
67/* 67/*
68 * absdir(int): Returns a number between 1 and 8, which represent 68 * absdir(int): Returns a number between 1 and 8, which represent

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines