Mario Editor: change function name
This commit is contained in:
parent
2b405c5d31
commit
57a573783d
@ -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()];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user