浏览代码

Use correct duration for ending the round

Previously, it was set to 1 minute
Thomas Dy 11 年之前
父节点
当前提交
da826ef4ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  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