summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 77c2c22..cf14fbd 100644
--- a/index.php
+++ b/index.php
@@ -1547,7 +1547,7 @@ else if(myisset("me"))
if($re>$p-$offset)
mysql_query("INSERT INTO Score".
- " VALUES( NULL,NULL,$gameid,'re',NULL,NULL,'$p')");
+ " VALUES( NULL,NULL,$gameid,'re',NULL,NULL,'".(240-$p)."')");
}
/* re called something and won */
@@ -1574,11 +1574,11 @@ else if(myisset("me"))
if($re>$p-$offset)
mysql_query("INSERT INTO Score".
- " VALUES( NULL,NULL,$gameid,'contra',NULL,NULL,'$p')");
+ " VALUES( NULL,NULL,$gameid,'contra',NULL,NULL,'".(240-$p)."')");
}
- /* re called something and won */
- if($call_re!=NULL)
+ /* contra called something and won */
+ if($call_contra!=NULL)
foreach(array(0,30,60,90,120) as $p)
{
if($call_contra<$p+1)