diff options
Diffstat (limited to 'src/scalevalapokalypsi/Server/Client.scala')
-rw-r--r-- | src/scalevalapokalypsi/Server/Client.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/scalevalapokalypsi/Server/Client.scala b/src/scalevalapokalypsi/Server/Client.scala index ceeff1f..1af83bf 100644 --- a/src/scalevalapokalypsi/Server/Client.scala +++ b/src/scalevalapokalypsi/Server/Client.scala @@ -169,10 +169,8 @@ class Client(val socket: Socket): this.singStartTime match case Some(t) => val timePassed = currentTimeMillis()/1000 - t - this.player.flatMap(_.applySingEffect( + this.player.foreach(_.applySingEffect( 5 / max(5, timePassed) - )).foreach(s => this.player.foreach((c: Player) => - c.observe(s"Lakkaat laulamasta.\n$s") )) this.singStartTime = None case None => |