Răsfoiți Sursa

Use correct duration for ending the round

Previously, it was set to 1 minute
Thomas Dy 11 ani în urmă
părinte
comite
da826ef4ca
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/models/Taboo.scala

+ 1 - 1
app/models/Taboo.scala

@@ -210,7 +210,7 @@ class TabooGame(val chatActor: ActorRef) extends Actor {
     case StartRound =>
       round = Some(Round(currentTeam, opposingTeam.members.toSet))
       roundActor = context.actorOf(Props[TabooRound])
-      Akka.system.scheduler.scheduleOnce(1 minute, roundActor, End)
+      Akka.system.scheduler.scheduleOnce(Round.DURATION seconds, roundActor, End)
       chatActor ! Announce(Json.obj(
         "kind" -> "roundStart",
         "round" -> round