Skip to content

Commit

Permalink
Fix major bug which resulted in lockstep netcode polling input twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshvarun committed May 12, 2023
1 parent eab8ad9 commit 8cdd26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netplayjs-client/src/netcode/lockstep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class LockstepNetcode<
// Queue the local input for a game tick.
get(this.inputs, localPlayer).push({
frame: this.frame,
input: this.pollInput(),
input: localInput,
});

// Broadcast the input.
Expand Down

0 comments on commit 8cdd26e

Please sign in to comment.