aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Server/Server.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalevalapokalypsi/Server/Server.scala')
-rw-r--r--src/scalevalapokalypsi/Server/Server.scala6
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)
)
)