add more const on local variables
This commit is contained in:
parent
c7386ddfbf
commit
a4025fa924
1 changed files with 2 additions and 2 deletions
|
@ -121,10 +121,10 @@ inline bool triangle_intersects(const PtkTriangle t, const PtkPos p) {
|
|||
}
|
||||
|
||||
inline bool rect_intersects(const PtkRect r, const PtkPos p) {
|
||||
bool intersects_x = r.top_left.x <= p.x
|
||||
const bool intersects_x = r.top_left.x <= p.x
|
||||
&& r.top_left.x + r.top_left.w >= p.x;
|
||||
|
||||
bool intersects_y = r.top_left.y <= p.y
|
||||
const bool intersects_y = r.top_left.y <= p.y
|
||||
&& r.top_left.y + r.top_left.h >= p.y;
|
||||
|
||||
return intersects_x && intersects_y;
|
||||
|
|
Loading…
Reference in a new issue