diff options
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index d40efd032..85e2c9dbf 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -1,11 +1,11 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers * Copyright (C) 2011-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,6 +54,7 @@ #include "utils/gettext.h" #include "utils/foreach.h" +#include "utils/performance.h" #include "utils/sdlcheckutils.h" #include "utils/stdmove.h" @@ -495,11 +496,9 @@ void Minimap::mouseReleased(MouseEvent &event) if (event.getButton() == MouseButton::LEFT) { - int x = event.getX(); - int y = event.getY(); - screenToMap(x, y); - - localPlayer->navigateTo(x, y); + Position pos(event.getX(), event.getY()); + screenToMap(pos.x, pos.y); + localPlayer->navigateTo(pos); } else if (event.getButton() == MouseButton::RIGHT) { |