Skip to content

Commit

Permalink
WIP #12: clear selection when issuing DAMCON orders
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmaxfrank committed Jan 30, 2016
1 parent 4b5ca5c commit a26c9fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/brindyblitz/artemis/engconsole/ui/damcon/Damcon.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ public void mouseClicked(MouseEvent e) {
selected = (InternalTeam) internal;
} else { // if (internal.getClass().equals(InternalNode.class))
if (selected != null) {
// Move DAMCON team and clear selection
this.engineeringConsoleManager.moveDamconTeam(selected.getTeamID(), ((InternalNode) internal).getGridCoords());
selected.setSelected(false);
selected = null;
}
}
}
Expand Down

0 comments on commit a26c9fe

Please sign in to comment.