From c954ca4d1ec677a34a6d787a23f9d01396f7e585 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 17 Nov 2024 17:06:56 +0200 Subject: Template for singing, WIP. * The line to sing is always the same. * The client recovers weirdly from singing before the next turn and my brain is currently too fried to figure out why --- src/scalevalapokalypsi/Client/ReceivedLineParser.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scalevalapokalypsi/Client/ReceivedLineParser.scala') diff --git a/src/scalevalapokalypsi/Client/ReceivedLineParser.scala b/src/scalevalapokalypsi/Client/ReceivedLineParser.scala index dfcc2d2..9337ce1 100644 --- a/src/scalevalapokalypsi/Client/ReceivedLineParser.scala +++ b/src/scalevalapokalypsi/Client/ReceivedLineParser.scala @@ -6,7 +6,7 @@ import scalevalapokalypsi.constants.* /** A class for checking asynchronously for received lines */ class ReceivedLineParser: - private var serverLineState = ServerLineState.ActionDescription + private var serverLineState = ServerLineState.ActionsAndSong private var bufferedData: Buffer[Byte] = Buffer.empty // TODO: suboptimal DS -- cgit v1.2.3