mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 16:27:48 +00:00
Fixup de776a4065a0611c5da7e1bef7fdbb53fa071742
This commit is contained in:
parent
b8c6edc53c
commit
e437e205cb
@ -103,7 +103,7 @@ public:
|
||||
/** The center point of the rectangle, accounting for origin. */
|
||||
constexpr point center() const
|
||||
{
|
||||
return {(x + w) / 2, (y + h) / 2};
|
||||
return {x + w / 2, y + h / 2};
|
||||
}
|
||||
|
||||
/** False if both w and h are > 0, true otherwise. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user