update: now cannot be more than one winner

This commit is contained in:
unknown
2013-04-22 21:15:51 +03:00
parent 73778f37e2
commit 4df65a21b5
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -179,7 +179,11 @@ class Technology {
}else{
$cropcalc = 0;
}
if($unit != "u99"){
$popcalc = floor($village->getProd("crop")/$unitarray['pop']);
}else{
$popcalc = $village->getProd("crop");
}
return min($woodcalc,$claycalc,$ironcalc,$cropcalc);
}