Commit ad46cdb3 authored by 杨一航's avatar 杨一航

fix

parent e1309f86
...@@ -799,9 +799,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -799,9 +799,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const node = cc.find( const node = cc.find(
`Canvas/road/root/piece${this._status.current}` `Canvas/road/root/piece${this._status.current}`
); );
const idx = this._cardList.length; await this.fixStep();
const rightBlock = this._cardList[idx - 1];
// await this.pieceFindRightBlock(rightBlock, idx);
if (this.isMySide) { if (this.isMySide) {
this.showWin(); this.showWin();
onHomeworkFinish({ isWin: true }); onHomeworkFinish({ isWin: true });
......
...@@ -196,6 +196,8 @@ export class GameServer { ...@@ -196,6 +196,8 @@ export class GameServer {
this.changeSide(); this.changeSide();
} else { } else {
this.gameStatus.state = 2; this.gameStatus.state = 2;
this.gameStatus.step = null;
this.gameStatus.jump = !!jump;
this.networkHelper.sendFrame({ this.networkHelper.sendFrame({
type: "SERVER_playerWin", type: "SERVER_playerWin",
status: this.gameStatus, status: this.gameStatus,
......
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