aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-11-13 10:05:15 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-11-13 10:05:15 +0100
commit4aa8ca8303b5d25b745e8cae71e283455945bdd1 (patch)
tree1869fbe29ee1e63cdd2c28e93225561d391f4a71 /web/pw-server/src/routes
parentb0530be5010494f2db3deded340c16a6dc3cbe56 (diff)
downloadplanetwars.dev-4aa8ca8303b5d25b745e8cae71e283455945bdd1.tar.xz
planetwars.dev-4aa8ca8303b5d25b745e8cae71e283455945bdd1.zip
copy input gamestate from player log
Diffstat (limited to 'web/pw-server/src/routes')
-rw-r--r--web/pw-server/src/routes/editor.svelte2
-rw-r--r--web/pw-server/src/routes/matches/[match_id].svelte2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/pw-server/src/routes/editor.svelte b/web/pw-server/src/routes/editor.svelte
index ee4eef9..ab33a79 100644
--- a/web/pw-server/src/routes/editor.svelte
+++ b/web/pw-server/src/routes/editor.svelte
@@ -157,7 +157,7 @@
</div>
<div class="sidebar-right">
{#if viewMode === ViewMode.MatchVisualizer}
- <OutputPane matchLog={selectedMatchLog} />
+ <OutputPane matchData={selectedMatch} matchLog={selectedMatchLog} />
{:else if viewMode === ViewMode.Editor}
<SubmitPane {editSession} on:matchCreated={onMatchCreated} />
{/if}
diff --git a/web/pw-server/src/routes/matches/[match_id].svelte b/web/pw-server/src/routes/matches/[match_id].svelte
index 1d5e072..e7468bd 100644
--- a/web/pw-server/src/routes/matches/[match_id].svelte
+++ b/web/pw-server/src/routes/matches/[match_id].svelte
@@ -101,7 +101,7 @@
{/if}
</div>
<div class="player-log">
- <PlayerLog {matchLog} playerId={selectedPlayer?.["playerId"]} />
+ <PlayerLog {matchData} {matchLog} playerId={selectedPlayer?.["playerId"]} />
</div>
</div>
{/if}