From c83fcaed652a01fa272ccea3aae7a66961b23ad8 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 10 Apr 2017 15:31:01 +0200 Subject: [PATCH] T201704101530 --- answer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/answer.php b/answer.php index e4044d1..81bf9fb 100644 --- a/answer.php +++ b/answer.php @@ -80,6 +80,7 @@ if($uid == '') { $answered_questions = $db->query('SELECT "answered_questions" FROM "Games" WHERE "ID" = $1', array($uid))['data'][0]['answered_questions']; $new_points = round($new_points / $answered_questions); + print $new_points; $new_user_high = $old_user_high == 0 ? $new_points : round($old_user_high * 0.95 + $new_points * 0.05); $db->query('UPDATE "Users" SET "highscore" = $1 WHERE "ID" = $2', array($new_user_high, $uid)); }