From 57a573783d71cd6f1198f78a7d4f2a51a0fcda4a Mon Sep 17 00:00:00 2001 From: zvon Date: Mon, 31 May 2021 16:10:19 +0200 Subject: [PATCH] Mario Editor: change function name --- mario/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mario/editor.cpp b/mario/editor.cpp index fcb2894..e4821fd 100644 --- a/mario/editor.cpp +++ b/mario/editor.cpp @@ -534,14 +534,14 @@ void mouseUpAction( uint64_t flags, SDLPP::Scene &scene ) { } } -SDLPP::Vec2D< int > getSelectedObjectPosition() { +SDLPP::Vec2D< int > getSelectedObjectIndexes() { // -1 because we're indexing edit boxes from 1 (due to left arrow on map) return global_vars.mouse.edit_box + SDLPP::Vec2D< int >( global_vars.map.cur_page - 1, 0 ); } mapObjectType &getSelectedObject() { - auto pos = getSelectedObjectPosition(); + auto pos = getSelectedObjectIndexes(); return global_vars.objects[pos.getX()][pos.getY()]; }