mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 21:34:42 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -21,10 +21,10 @@ Rect2i *Rect2i::intersect(const Rect2i *other)
|
||||
int x3 = x2 + other->getWidth();
|
||||
int y3 = y2 + other->getHeight();
|
||||
|
||||
xPos = max(x0, x2);
|
||||
yPos = max(y0, y2);
|
||||
width = max(0, min(x1, x3) - xPos);
|
||||
height = max(0, min(y1, y3) - yPos);
|
||||
xPos = std::max(x0, x2);
|
||||
yPos = std::max(y0, y2);
|
||||
width = std::max(0, std::min(x1, x3) - xPos);
|
||||
height = std::max(0, std::min(y1, y3) - yPos);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user