1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-25 22:52:49 +00:00

ru:: operator == in xy

This commit is contained in:
Zeno Rogue 2025-05-23 09:32:29 +02:00
parent 8140577a6e
commit 37b450b29f

View File

@ -161,6 +161,7 @@ struct xy {
xy& operator *= (ld s) { x *= s; y *= s; return self; }
xy& operator *= (xy b) { x *= b.x; y *= b.y; return self; }
xy& operator /= (ld s) { x /= s; y /= s; return self; }
bool operator == (xy b) { return x == b.x && y == b.y; }
};
enum class stat { str, con, wis, dex };