1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 12:47:10 +00:00

ru:: help while paused

This commit is contained in:
Zeno Rogue
2025-05-03 18:07:30 +02:00
parent 7875de00e4
commit 828160f548
4 changed files with 61 additions and 18 deletions

View File

@@ -108,6 +108,10 @@ bbox extend(bbox a, int l, int r, int u, int d) {
return a;
}
bool contains(bbox a, xy pos) {
return pos.x >= a.minx && pos.x < a.maxx && pos.y >= a.miny && pos.y < a.maxy;
}
bbox extend_all(bbox a, int x) { return extend(a, x, x, x, x); }
bbox get_intersect(bbox a, bbox b) {