This commit is contained in:
unknown
2012-07-19 08:01:11 +03:00
parent f9a749f35e
commit 4262815ccd
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -4117,7 +4117,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
} else
if($session['oldrank'] < $oldrank) {
$totalpoints = $oldrank - $session['oldrank'];
$database->removeclimberrankpop($session['id'], $session['oldrank']);
$database->removeclimberrankpop($session['id'], $totalpoints);
$database->updateoldrank($session['id'], $oldrank);
}
}else{
+7 -2
View File
@@ -1,5 +1,11 @@
<?php
if(isset($_POST['xp']) && isset($_POST['yp'])){
if(isset($_GET['z'])) {
$currentcoor = $database->getCoor($_GET['z']);++$requse2;
$y = $currentcoor['y'];
$x = $currentcoor['x'];
$bigmid = $_GET['z'];
}
else if(isset($_POST['xp']) && isset($_POST['yp'])){
$x = $_POST['xp'];
$y = $_POST['yp'];
$bigmid = $generator->getBaseID($x,$y);
@@ -10,7 +16,6 @@ else {
$bigmid = $village->wid;
}
$xm7 = ($x-7) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-6 : $x-7;
$xm3 = ($x-3) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-2 : $x-3;
$xm2 = ($x-2) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-1 : $x-2;