Fixing multiplayer movement bug when skipping.
This commit is contained in:
@@ -903,6 +903,12 @@ class Moving extends React.Component {
|
||||
clearInterval(this.timerId);
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user