Merge pull request #397 from Shadowss/patch-75

limit troops , that fix double troops. Limit is 30 million for enforceme...
This commit is contained in:
yi12345
2013-10-14 07:12:50 -07:00
+6
View File
@@ -2572,6 +2572,12 @@ class MYSQL_DB {
$result = mysql_query($q, $this->connection);
return mysql_fetch_assoc($result);
}
function getEnforceControllTroops($vid) {
$q = "SELECT * from " . TB_PREFIX . "enforcement where vref = $vid";
$result = mysql_query($q, $this->connection);
return mysql_fetch_assoc($result);
}
function addEnforce($data) {
$q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")";