mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-18 01:01:01 +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
|
} else
|
||||||
if($session['oldrank'] < $oldrank) {
|
if($session['oldrank'] < $oldrank) {
|
||||||
$totalpoints = $oldrank - $session['oldrank'];
|
$totalpoints = $oldrank - $session['oldrank'];
|
||||||
$database->removeclimberrankpop($session['id'], $session['oldrank']);
|
$database->removeclimberrankpop($session['id'], $totalpoints);
|
||||||
$database->updateoldrank($session['id'], $oldrank);
|
$database->updateoldrank($session['id'], $oldrank);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<?php
|
<?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'];
|
$x = $_POST['xp'];
|
||||||
$y = $_POST['yp'];
|
$y = $_POST['yp'];
|
||||||
$bigmid = $generator->getBaseID($x,$y);
|
$bigmid = $generator->getBaseID($x,$y);
|
||||||
@@ -10,7 +16,6 @@ else {
|
|||||||
$bigmid = $village->wid;
|
$bigmid = $village->wid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$xm7 = ($x-7) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-6 : $x-7;
|
$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;
|
$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;
|
$xm2 = ($x-2) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-1 : $x-2;
|
||||||
|
|||||||
Reference in New Issue
Block a user