diff options
author | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-27 17:26:16 +0200 |
---|---|---|
committer | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-27 17:26:16 +0200 |
commit | b50a8e42b6b69ce4e15773c73cf68d2ac8f2175d (patch) | |
tree | 14a95bc1fd5ec6cfbfd25f795e46fc389ee6625a /src/scalevalapokalypsi/Server/Client.scala | |
parent | 34dc64a1387f2904b4c23ac3fcfea35c9670088e (diff) | |
parent | 302455bac062080bf197b44e07ed53a3454be4c5 (diff) | |
download | scalevalapokalypsi-b50a8e42b6b69ce4e15773c73cf68d2ac8f2175d.tar.gz scalevalapokalypsi-b50a8e42b6b69ce4e15773c73cf68d2ac8f2175d.zip |
help-komento
Diffstat (limited to 'src/scalevalapokalypsi/Server/Client.scala')
-rw-r--r-- | src/scalevalapokalypsi/Server/Client.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scalevalapokalypsi/Server/Client.scala b/src/scalevalapokalypsi/Server/Client.scala index 940888b..becca32 100644 --- a/src/scalevalapokalypsi/Server/Client.scala +++ b/src/scalevalapokalypsi/Server/Client.scala @@ -204,7 +204,7 @@ class Client(val socket: Socket): if this.verseIndex == this.versesToSing.length then val timeQuality = 5.0*this.versesToSing.length / - max(5.0, currentTimeMillis()/1000 - t) + max(5, currentTimeMillis()/1000 - t).toDouble val songToSing = this.versesToSing.mkString("") .toLowerCase @@ -217,8 +217,9 @@ class Client(val socket: Socket): ) this.player.foreach(_.applySingEffect(quality.toFloat)) - + this.singStartTime = None + else this.versesSung += line this.startVerse() |