mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fixed #491
+Fixed a bug that created MH's and Admin's villages with wrong resource fields, during the installation
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
if($status == 0) {
|
||||
$database->setFieldTaken($wid);
|
||||
$database->addVillage($wid, $uid, $_POST['aname'], 1);
|
||||
$database->addResourceFields($wid, $database->getVillageType($wid));
|
||||
$database->addResourceFields($wid, $database->getVillageType($wid, false));
|
||||
$addUnitsWrefs[] = $wid;
|
||||
$addTechWrefs[] = $wid;
|
||||
$addABTechWrefs[] = $wid;
|
||||
@@ -84,8 +84,8 @@
|
||||
$status = $database->getVillageState($wid);
|
||||
if($status == 0) {
|
||||
$database->setFieldTaken($wid);
|
||||
$database->addVillage($wid, $uid, 'Multihunter', '0');
|
||||
$database->addResourceFields($wid, $database->getVillageType($wid));
|
||||
$database->addVillage($wid, $uid, 'Multihunter', 0);
|
||||
$database->addResourceFields($wid, $database->getVillageType($wid, false));
|
||||
$database->addUnits($wid);
|
||||
$database->addTech($wid);
|
||||
$database->addABTech($wid);
|
||||
|
||||
Reference in New Issue
Block a user