diff options
Diffstat (limited to '')
-rw-r--r-- | client/src/net/game.ts | 2 | ||||
-rw-r--r-- | client/src/net/multiplayer.ts | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/client/src/net/game.ts b/client/src/net/game.ts index c8e5991..88a36b1 100644 --- a/client/src/net/game.ts +++ b/client/src/net/game.ts @@ -52,7 +52,6 @@ export class Game { * If the frame is ahead of the current latest frame, the game will be run until that frame. */ setInput(frame: number, input: Input) { - console.log('input', frame, input) this.editFrame(frame, (index: number): void => { let past = this.history[index - 1]; if(index === 0) { @@ -66,7 +65,6 @@ export class Game { } setData(frame: number, data: GameState) { - console.log('data', frame, data) this.editFrame(frame, (index: number): void => { this.history[index] = { data, diff --git a/client/src/net/multiplayer.ts b/client/src/net/multiplayer.ts index e9f3057..5dcf86d 100644 --- a/client/src/net/multiplayer.ts +++ b/client/src/net/multiplayer.ts @@ -80,7 +80,7 @@ export function multiplayer( function update(input: PlayerInput, frame: number) { if(input === undefined) { // used to update the game locally if(hasState) { - applyInput({}) + applyInput({frame}) } return; } |