--- deliantra/server/common/object.C 2010/04/18 14:01:33 1.330 +++ deliantra/server/common/object.C 2010/04/18 14:04:50 1.331 @@ -2232,6 +2232,11 @@ // are not equal sized, but are a better approximation // then the old algorithm, and then using a mapping // table to map it into a direction value. + // basically, it maps these comparisons to each bit + // bit #3: x < 0 + // bit #2: y < 0 + // bit #1: x > y + // bit #0: x > 2y static const uint8 dir[16] = { 4, 5, 4, 3,