mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-25 12:37:13 +00:00
fix finish woodcutter (when there is more field in loop)
This commit is contained in:
@@ -221,7 +221,7 @@ class MYSQL_DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setDeleting($uid, $mode) {
|
function setDeleting($uid, $mode) {
|
||||||
$time = time() + 72 * 3600;
|
$time = time() + 48 * 3600;
|
||||||
if(!$mode) {
|
if(!$mode) {
|
||||||
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
||||||
} else {
|
} else {
|
||||||
@@ -1849,6 +1849,14 @@ class MYSQL_DB {
|
|||||||
$dbarray = mysql_fetch_array($result);
|
$dbarray = mysql_fetch_array($result);
|
||||||
$q = "UPDATE ".TB_PREFIX."bdata SET timestamp = $time WHERE id = '".$dbarray['id']."'";
|
$q = "UPDATE ".TB_PREFIX."bdata SET timestamp = $time WHERE id = '".$dbarray['id']."'";
|
||||||
$this->query($q);
|
$this->query($q);
|
||||||
|
$q2 = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and loopcon = 1 and field <= 18 order by master,timestamp ASC";
|
||||||
|
if(mysql_num_rows($q2) > 0){
|
||||||
|
$result2 = mysql_query($q2);
|
||||||
|
$dbarray2 = mysql_fetch_array($result2);
|
||||||
|
$wc_time = $dbarray['timestamp'];
|
||||||
|
$q2 = "UPDATE ".TB_PREFIX."bdata SET timestamp = timestamp - $wc_time WHERE id = '".$dbarray2['id']."'";
|
||||||
|
$this->query($q2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMasterJobs($wid) {
|
function getMasterJobs($wid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user