From 151ac909a12eb1b6f8ccdc5aac49d40c88d3e3cf Mon Sep 17 00:00:00 2001 From: Elijah R Date: Fri, 2 Feb 2024 09:02:15 -0500 Subject: [PATCH] clear turn on close --- src/ts/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/main.ts b/src/ts/main.ts index e5a2313..1b4c7eb 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -125,6 +125,7 @@ function closeVM() { VM.close(); VM = null; document.title = "CollabVM"; + turn = -1; // Remove the canvas elements.vmDisplay.innerHTML = ""; // Switch to the VM list