Prevent duplicate metatile pastes in the tileset editor

This commit is contained in:
GriffinR
2022-06-29 14:53:14 -04:00
committed by t
parent cd481892ae
commit 73eabc92ca
3 changed files with 26 additions and 1 deletions

View File

@@ -22,4 +22,15 @@ public:
static int getIndexInTileset(int);
};
inline bool operator==(const Tile &a, const Tile &b) {
return a.tileId == b.tileId &&
a.xflip == b.xflip &&
a.yflip == b.yflip &&
a.palette == b.palette;
}
inline bool operator!=(const Tile &a, const Tile &b) {
return !(operator==(a, b));
}
#endif // TILE_H