|
|
@@ -62,7 +62,7 @@ cc.Class({
|
|
|
this.isChi = false;
|
|
|
GameDef.g_GameEngine.m_GameClientView.m_CardView.ChangeCardBack(this.node, GameDef.g_GameEngine.m_CardBack);
|
|
|
this.cbCardCont = WeaveInfo.cbCardCount;
|
|
|
- cc.error("SetWeaveInfo ", WeaveInfo, index, this.wOperateCode, this.cbWeaveCardData);
|
|
|
+ // cc.error("SetWeaveInfo ", WeaveInfo, index, this.wOperateCode, this.cbWeaveCardData);
|
|
|
this.wOperateCode = WeaveInfo.wWeaveKind;
|
|
|
if (this.bLoad == false) this.onLoad();
|
|
|
this.m_bgChi.active = false;
|
|
|
@@ -170,7 +170,7 @@ cc.Class({
|
|
|
let isPengGang = this.wOperateCode == GameDef.WIK_GANG && 1 == WeaveInfo.cbCardCount;
|
|
|
if (typeof (WeaveInfo) != 'number') {
|
|
|
for (var i = 0; i < 4; i++) {
|
|
|
- WeaveInfo.cbCardData[i] = WeaveInfo.cbCardCount > i ? WeaveInfo.cbCardData[i] : 0;
|
|
|
+ WeaveInfo.cbCardData[i] = (WeaveInfo.cbCardCount > i) ? WeaveInfo.cbCardData[i] : 0;
|
|
|
this.cbWeaveCardData[i] = WeaveInfo.cbCardData[i];
|
|
|
if (isPengGang) {
|
|
|
WeaveInfo.cbCardData[i] = WeaveInfo.cbCardData[0];
|