mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-31 23:57:13 +00:00
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:
@@ -2572,6 +2572,12 @@ class MYSQL_DB {
|
|||||||
$result = mysql_query($q, $this->connection);
|
$result = mysql_query($q, $this->connection);
|
||||||
return mysql_fetch_assoc($result);
|
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) {
|
function addEnforce($data) {
|
||||||
$q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")";
|
$q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user