mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-01 10:04:21 +00:00
update
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user