mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
Small formatting fixes
svn-id: r45299
This commit is contained in:
parent
8d8b4dc50a
commit
e5d2889244
@ -41,8 +41,8 @@ struct Point {
|
||||
|
||||
Point() : x(0), y(0) {}
|
||||
Point(int16 x1, int16 y1) : x(x1), y(y1) {}
|
||||
bool operator==(const Point & p) const { return x == p.x && y == p.y; };
|
||||
bool operator!=(const Point & p) const { return x != p.x || y != p.y; };
|
||||
bool operator==(const Point &p) const { return x == p.x && y == p.y; };
|
||||
bool operator!=(const Point &p) const { return x != p.x || y != p.y; };
|
||||
|
||||
/**
|
||||
* Return the square of the distance between this point and the point p.
|
||||
@ -50,7 +50,7 @@ struct Point {
|
||||
* @param p the other point
|
||||
* @return the distance between this and p
|
||||
*/
|
||||
uint sqrDist(const Point & p) const {
|
||||
uint sqrDist(const Point &p) const {
|
||||
int diffx = ABS(p.x - x);
|
||||
if (diffx >= 0x1000)
|
||||
return 0xFFFFFF;
|
||||
@ -59,7 +59,7 @@ struct Point {
|
||||
if (diffy >= 0x1000)
|
||||
return 0xFFFFFF;
|
||||
|
||||
return uint(diffx*diffx + diffy*diffy);
|
||||
return uint(diffx * diffx + diffy * diffy);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user