mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54:21 +00:00
fix ally pop climbers
This commit is contained in:
@@ -4241,9 +4241,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
foreach($memberlist as $member) {
|
||||
$oldrank += $database->getVSumField($member['id'],"pop");
|
||||
}
|
||||
if($ally['oldrank'] == 0){
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
}
|
||||
if($ally['oldrank'] != $oldrank){
|
||||
if($ally['oldrank'] < $oldrank) {
|
||||
$totalpoints = $oldrank - $ally['oldrank'];
|
||||
$database->addclimberrankpopAlly($ally['id'], $totalpoints);
|
||||
@@ -4256,6 +4254,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(file_exists("GameEngine/Prevention/climbers.txt")) {
|
||||
unlink("GameEngine/Prevention/climbers.txt");
|
||||
}
|
||||
|
||||
@@ -2131,7 +2131,7 @@ class MYSQL_DB {
|
||||
}
|
||||
|
||||
function getARanking() {
|
||||
$q = "SELECT id,name,tag FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC";
|
||||
$q = "SELECT id,name,tag,oldrank FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user