mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-20 13:48:27 +08:00
Rect.inflate should be const
This commit is contained in:
parent
e345ad66d5
commit
f736cb78f9
@ -75,7 +75,7 @@ namespace Blah
|
|||||||
return Vec2::zero;
|
return Vec2::zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect inflate(float amount) { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); }
|
Rect inflate(float amount) const { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Rect Sectors:
|
Rect Sectors:
|
||||||
|
Loading…
Reference in New Issue
Block a user