diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-02-20 22:02:00 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-02-20 22:02:00 +0000 |
commit | bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52 (patch) | |
tree | 003b8a99a17f76592a89b72d9f007ceb6b626b55 /src/gui/widgets/avatarlistbox.cpp | |
parent | 530545589cdaf6d1664438e885d0b4e538684d9b (diff) | |
download | manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.gz manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.bz2 manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.tar.xz manaplus-bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52.zip |
Convert navigateTo to take a Position instead of two integers.
Tile coordinates dance in pairs, so let's pair them up.
also grows exe size by about 3K, hope this will go away when the rest is
converted to Position as well. Note: on my local debug build only. Not on gcc10 CI.
Squashed with:
* Should it be mNavigateDest or mNavigateTo? Hmm, the jury is still out
there ...
****
mana/plus!116
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 66c1b12c1..6c18643ba 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -629,7 +629,7 @@ void AvatarListBox::mousePressed(MouseEvent &event) else #endif // TMWA_SUPPORT { - localPlayer->navigateTo(ava->getX(), ava->getY()); + localPlayer->navigateTo({ava->getX(), ava->getY()}); } } else if (eventButton == MouseButton::RIGHT) |