From 0b99ce0805b8ee5fede7f64435415f4f845a0c75 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 16 Mar 2015 18:48:38 +0100 Subject: [PATCH] fix previous commit --- app/controllers/Round.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/Round.scala b/app/controllers/Round.scala index 5e8b8de548..f1c387403c 100644 --- a/app/controllers/Round.scala +++ b/app/controllers/Round.scala @@ -73,9 +73,9 @@ object Round extends LilaController with TheftPrevention { ) }, api = apiVersion => { - if (isTheft(pov)) theftResponse - else if (pov.game.playableByAi) { - env.roundMap ! Tell(pov.game.id, AiPlay) + if (isTheft(pov)) fuccess(theftResponse) + else { + if (pov.game.playableByAi) env.roundMap ! Tell(pov.game.id, AiPlay) Env.api.roundApi.player(pov, apiVersion, Nil) map { Ok(_) } } }