Mario editor: fix tool selection
This commit is contained in:
parent
e084ed6f86
commit
900382bfce
@ -172,9 +172,9 @@ void pollEvents( SDLPP::Scene &scene ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(current_tool_box.getX() != -1) {
|
if(current_tool_box.getX() != -1) {
|
||||||
auto index = current_tool_index + current_tool_box.getY() * 4 + current_tool_box.getX();
|
auto index = current_tool_box.getY() * 4 + current_tool_box.getX();
|
||||||
if(index < tools.size()) {
|
if(index < tools.size()) {
|
||||||
current_block = (current_tool_index * 8 - 1) + index;
|
current_block = current_tool_index * 8 + index;
|
||||||
updateTool();
|
updateTool();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user