From df477b322c071d81ea06ad972a36ea9f30cdc34f Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 22 Oct 2012 18:50:03 +0200 Subject: update sendscore.sh to cope with new version. Fix password update and hexsub --- boca-1.5.1/src/hex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boca-1.5.1/src/hex.php') diff --git a/boca-1.5.1/src/hex.php b/boca-1.5.1/src/hex.php index 0d80b1d..4fa4c16 100644 --- a/boca-1.5.1/src/hex.php +++ b/boca-1.5.1/src/hex.php @@ -141,8 +141,8 @@ function bighexsub ($hex1, $hex2) { $r += 16; $sobra = 1; } else $sobra = 0; - - $resultado = dechex($r) . $resultado; + if($x > 0 || dechex($r) != '0') + $resultado = dechex($r) . $resultado; } return $sinal . $resultado; } -- cgit v1.2.3