GUI: fix moveSelected going out of bounds

This commit is contained in:
tildearrow 2024-11-06 17:49:31 -05:00
parent 5917831992
commit a25b2c7cc8
2 changed files with 73 additions and 6 deletions

View file

@ -211,7 +211,7 @@ void FurnaceGUI::finishSelection() {
}
void FurnaceGUI::moveCursor(int x, int y, bool select) {
if (y>=editStepCoarse || y<=-editStepCoarse || x<=-5 || x>=5 ) {
if (y>=editStepCoarse || y<=-editStepCoarse || x<=-5 || x>=5) {
makeCursorUndo();
}
if (!select) {