Commit b7f841aa authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

hanoi, no more highlight the right tower in simplified mode

The right tower is not dropable, should not be highlighted.
parent 4d4ee844
......@@ -244,7 +244,11 @@ function performTowersHighlight(disc, x)
deHighlightTowers()
var isCorrect = false;
for(var i = 0 ; i < items.towerModel.model ; ++ i) {
var nbTower = items.towerModel.model
if(activityMode === "simplified")
nbTower--
for(var i = 0 ; i < nbTower ; ++ i) {
var towerItem = items.towerModel.itemAt(i);
if(checkIfDiscOnTowerImage(disc, towerItem)) {
towerItem.highlight = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment