mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix sql
This commit is contained in:
@@ -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++) {
|
||||
|
||||
+772
-772
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user