From 4262815ccd0f2dd97f6ed52eab000a24ecd39d9d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 19 Jul 2012 08:01:11 +0300 Subject: [PATCH] update --- GameEngine/Automation.php | 2 +- Templates/Map/mapview.tpl | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 590ee930..d33fbed5 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -4117,7 +4117,7 @@ $crannyimg = "removeclimberrankpop($session['id'], $session['oldrank']); + $database->removeclimberrankpop($session['id'], $totalpoints); $database->updateoldrank($session['id'], $oldrank); } }else{ diff --git a/Templates/Map/mapview.tpl b/Templates/Map/mapview.tpl index 97aede41..53307bf9 100644 --- a/Templates/Map/mapview.tpl +++ b/Templates/Map/mapview.tpl @@ -1,5 +1,11 @@ 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;