- Added Roujin's bug fix for the battlefield UI where Mouse Clicks will Click "on" the last thing selected, even if you are no longer selecting them.

This commit is contained in:
Chris
2012-02-12 02:32:33 +00:00
parent 2dac395982
commit d60d027a5a

View File

@@ -468,7 +468,12 @@ public class ControlField {
@Override
public void mousePressed(final MouseEvent e) {
final MatchTopLevel t = ((GuiTopLevel) AllZone.getDisplay()).getController().getMatchController().getView();
final Card c = t.getDetailController().getCurrentCard();
// original version:
// final Card c = t.getDetailController().getCurrentCard();
// Roujin's bug fix version dated 2-12-2012
final Card c = ControlField.this.view.getTabletop().getCardFromMouseOverPanel();
final Input input = t.getInputController().getInputControl().getInput();
if (c != null && c.isInZone(Zone.Battlefield)) {