From c07dd996279c4ba487dba87b94ba2acac31c505b Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Fri, 10 Nov 2017 13:27:54 +0100 Subject: [PATCH] fix: this should work but doesn't, so I'm reverting it back --- GameEngine/Automation.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index df7a7edb..39107f9c 100755 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -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"); }