summaryrefslogtreecommitdiff
path: root/client/src/net
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
commit113c6d105a0b06603388e5e0ded90ed169ae0c50 (patch)
tree70af321cdce86a331141e437f6abae3c1cefd74a /client/src/net
parentts (diff)
downloadtuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.gz
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.bz2
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.zip
map editor
Diffstat (limited to 'client/src/net')
-rw-r--r--client/src/net/game.ts2
-rw-r--r--client/src/net/multiplayer.ts2
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;
}