Skip to content

Commit

Permalink
restore 'is this your turn' check for physical test
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAragua committed May 4, 2021
1 parent 3470bbd commit 437f610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions megamek/src/megamek/client/ui/swing/PhysicalDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,10 @@ public void hexMoused(BoardViewEvent b) {
return;
}

if (!clientgui.getClient().isMyTurn()) {
return;
}

// control pressed means a line of sight check.
if ((b.getModifiers() & InputEvent.CTRL_DOWN_MASK) != 0) {
return;
Expand Down

0 comments on commit 437f610

Please sign in to comment.