Skip to content

Commit

Permalink
fix bugfix not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed May 16, 2024
1 parent 1a38f38 commit e70cec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ import * as LANG from "./lang.js";
CROSSHAIR.style.display = "block";
moveMap(dx, dy);
const modeAtCenter = getModeAtScreenCenter();
if(modeAtCenter && selected !== modeAtCenter) {
if(modeAtCenter && selected !== modeAtCenter.name) {
selectMode(modeAtCenter.name);
}
}
Expand Down

0 comments on commit e70cec1

Please sign in to comment.