fix: this should work but doesn't, so I'm reverting it back

This commit is contained in:
Martin Ambrus
2017-11-10 13:27:54 +01:00
parent 49d64de54b
commit c07dd99627
+1 -5
View File
@@ -982,9 +982,8 @@ class Automation {
}
$q1 = "SELECT send, moveid, `to`, wood, clay, iron, crop, `from` FROM ".TB_PREFIX."movement WHERE proc = 0 and sort_type = 2 and endtime < $time";
$dataarray1 = $database->query_return($q1);
$completedIDs = [];
foreach($dataarray1 as $data1) {
$completedIDs[] = $data1['moveid'];
$database->setMovementProc($data1['moveid']);
if($data1['send'] > 1){
if (!isset($villageOwners[$data1['to']])) {
$villageOwners[$data1['to']] = $database->getVillageField($data1['to'],"owner");
@@ -998,9 +997,6 @@ class Automation {
}
}
// updated processed records
$database->setMovementProc(implode(', ', $completedIDs));
if(file_exists("GameEngine/Prevention/market.txt")) {
unlink("GameEngine/Prevention/market.txt");
}