Mario Editor: change function name

This commit is contained in:
zvon 2021-05-31 16:10:19 +02:00
parent 2b405c5d31
commit 57a573783d

View File

@ -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()];
}