From d21452df12316a8adc4e85bbb2248b4eacc099b0 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 4 Jul 2016 07:38:54 +0200 Subject: [PATCH] . --- src/arenas/tron/act.php | 2 +- src/arenas/tron/js.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/arenas/tron/act.php b/src/arenas/tron/act.php index 8c60e0b..790f5b3 100644 --- a/src/arenas/tron/act.php +++ b/src/arenas/tron/act.php @@ -85,7 +85,7 @@ switch ($_POST['act']){ case "play": //check for correct game ID - if($_POST['gameId'] !== $_SESSION['gameId']){ + if($_POST['gameId'] !=== $_SESSION['gameId']){ echo '{"status":"error"}'; die; } diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js index 0b2e612..f5ebecd 100644 --- a/src/arenas/tron/js.js +++ b/src/arenas/tron/js.js @@ -69,7 +69,6 @@ function applyInitMessage(req,xd_check){ } addLog(ret['logs']); if(ret['status'] == "OK"){ - alert(ret['gameId']); play(ret['gameId'],xd_check); }