From a6eb1c6b8685c0d0f919c515ffdf86b082e44dc6 Mon Sep 17 00:00:00 2001 From: yi12345 Date: Sun, 4 Aug 2013 16:52:30 +0300 Subject: [PATCH] update --- GameEngine/Automation.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index b879f380..be8d2719 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -614,10 +614,8 @@ class Automation { $q = "UPDATE ".TB_PREFIX."fdata set f".$indi['field']." = ".$indi['level'].", f".$indi['field']."t = ".$indi['type']." where vref = ".$indi['wid']; if($database->query($q)) { $level = $database->getFieldLevel($indi['wid'],$indi['field']); - $pop = $this->getPop($indi['type'],($level-1)); - $database->modifyPop($indi['wid'],$pop[0],0); + $this->recountPop($indi['wid']); $this->procClimbers($database->getVillageField($indi['wid'],'owner')); - $database->addCP($indi['wid'],$pop[1]); if($indi['type'] == 10) { $max=$database->getVillageField($indi['wid'],"maxstore");