Vladimir Bykov 11 лет назад
Родитель
Сommit
0336b6fcac
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      apps/web/priv/static/app/js/okey/deck.js

+ 5 - 0
apps/web/priv/static/app/js/okey/deck.js

@@ -84,6 +84,7 @@ function DeckScope(scope) {
                 this.needRestore = false
                 this.cards = this.restoredCards.map(function (row){ return row.concat() })
                 this.normalizeCards()
+                this.dropDiraction()
             }
         },
 
@@ -108,6 +109,10 @@ function DeckScope(scope) {
                     if(card){
                         card.direction = null
                     }
+                    card = this.restoredCards[j][i]
+                    if(card){
+                        card.direction = null
+                    }
                 }
             }
         },