dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

New Coord2d lib has broken inequality operators.

Open notliad opened this issue 2 months ago • 0 comments

On /library/include/CoordTemplate.h there is == operators when should be !=

Line 43:

bool operator!=(const Coord2d& other) const
        {
            return x != other.x || y == other.y;
        }

and line 150:

        bool operator!=(const Coord3d& other) const
        {
            return x != other.x || y == other.y || z == other.z;
        }

notliad avatar Sep 08 '26 21:09 notliad