diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-21 23:19:00 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-21 23:19:00 +0200 |
commit | 49985d1d11c426968fc298469671326aace96d00 (patch) | |
tree | 1d6eacf11e0791a93c216ecfeca4a5d71602f1ee /src/scalevalapokalypsi/Server/Server.scala | |
parent | 607b43a84d3bc8edffa05c722c7b8c3e6f72e964 (diff) | |
download | scalevalapokalypsi-49985d1d11c426968fc298469671326aace96d00.tar.gz scalevalapokalypsi-49985d1d11c426968fc298469671326aace96d00.zip |
Fixed singing from last commit
Diffstat (limited to 'src/scalevalapokalypsi/Server/Server.scala')
-rw-r--r-- | src/scalevalapokalypsi/Server/Server.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scalevalapokalypsi/Server/Server.scala b/src/scalevalapokalypsi/Server/Server.scala index bfb0893..8debdba 100644 --- a/src/scalevalapokalypsi/Server/Server.scala +++ b/src/scalevalapokalypsi/Server/Server.scala @@ -123,12 +123,14 @@ class Server( val target = c.player.flatMap(_.getSingEffectTarget) target.foreach(t => if c.player.exists(_.isSinging) && !c.clientHasSong then + val verse = t.getVerseAgainst + println(s"got verse against: “$verse”") this.writeToClient( - s"${SING_INDICATOR}${t.getVerseAgainst}\r\n", + s"${SING_INDICATOR}$verse\r\n", // TODO: store the verse and check how close client input is when determining sing quality c ) - c.startSong() + c.startSong(verse) ) ) |