This commit is contained in:
Shadow
2015-06-23 09:37:23 +03:00
parent aba071fc6a
commit f57b138871
4 changed files with 2389 additions and 2386 deletions
+4 -1
View File
@@ -143,7 +143,8 @@ class Technology {
public function getUnitList() {
global $database,$village;
//FIX BY MisterX
// FIX BY MisterX
/*
$controlloTruppeInRinforzo = $database->getEnforceControllTroops($village->wid);
for($i=1;$i<=50;$i++) {
if($controlloTruppeInRinforzo['u'.$i] >= "30000000")
@@ -155,6 +156,8 @@ class Technology {
if($controlloTruppe['u'.$i] >= "10000000")
mysql_query("UPDATE ".TB_PREFIX."units set u".$i." = '0' where vref = $village->wid");
}
*/
// END FIX
$unitarray = func_num_args() == 1? $database->getUnit(func_get_arg(0)) : $village->unitall;
$listArray = array();
for($i=1;$i<count($this->unarray);$i++) {