diff --git a/src/core/roguedefs.h b/src/core/roguedefs.h index a750958..2c8b939 100644 --- a/src/core/roguedefs.h +++ b/src/core/roguedefs.h @@ -14,4 +14,8 @@ typedef SDL_Point Tile; typedef SDL_Point Chunk; typedef unsigned Sprite; +static inline bool operator==(SDL_Point const &lhs, SDL_Point const &rhs) { + return lhs.x == rhs.x && lhs.y == rhs.y; +} + #endif // !ROGUEDEFS_H