]> www.infradead.org Git - users/mchehab/andors-trail.git/commitdiff
Bugfix: redraw combat selection when new selection is "nothing".
authoroskar.wiksten@gmail.com <oskar.wiksten@gmail.com@08aca716-68be-ccc6-4d58-36f5abd142ac>
Fri, 21 Oct 2011 18:47:38 +0000 (18:47 +0000)
committeroskar.wiksten@gmail.com <oskar.wiksten@gmail.com@08aca716-68be-ccc6-4d58-36f5abd142ac>
Fri, 21 Oct 2011 18:47:38 +0000 (18:47 +0000)
git-svn-id: https://andors-trail.googlecode.com/svn/trunk@192 08aca716-68be-ccc6-4d58-36f5abd142ac

AndorsTrail/src/com/gpl/rpg/AndorsTrail/controller/CombatController.java

index ea12fdd824fc1304c94f4eb471a6ea606f513104..4abf801c07ba079c2e4e919342c37dd0a57f2d67 100644 (file)
@@ -97,7 +97,7 @@ public final class CombatController implements VisualEffectCompletedCallback {
                Coord previousSelection = model.uiSelections.selectedPosition;
                if (model.uiSelections.selectedPosition != null) {
                        model.uiSelections.selectedPosition = null;
-                       if (selectedPosition != null && !selectedPosition.equals(previousSelection)) {  
+                       if (selectedPosition == null || !selectedPosition.equals(previousSelection)) {  
                                context.mainActivity.redrawTile(previousSelection, MainView.REDRAW_TILE_SELECTION_REMOVED);
                        }
                }