Fixing multiplayer movement bug when skipping.

logins
Thomas Hintz 5 years ago
parent 653a43c748
commit acb5c2df45

@ -903,6 +903,12 @@ class Moving extends React.Component {
clearInterval(this.timerId); clearInterval(this.timerId);
this.timerId = false; this.timerId = false;
} }
// if another player skips movement
if (this.state.currentPos !== this.endPos) {
this.props.movePlayer(this.endPos,
this.state.currentPos,
this.color);
}
} }
tick() { tick() {

Loading…
Cancel
Save