fix: quests do not progress

#354
This commit is contained in:
Martin Ambrus
2017-11-20 11:06:54 +01:00
parent b7e9c4edcb
commit 4a7ab1f81a
3 changed files with 102 additions and 102 deletions
+3 -3
View File
@@ -837,8 +837,8 @@ class MYSQLi_DB implements IDbConnection {
// update cached values
if ($ret = mysqli_query($this->dblink,$q)) {
foreach ($field as $index => $fieldName) {
if (isset(self::$fieldsCache[$ref.$switch][$fieldName]))
self::$fieldsCache[$ref.$switch][$fieldName] = $value[$index];
if (isset(self::$fieldsCache[$ref.($switch ? 0 : 1)][$fieldName]))
self::$fieldsCache[$ref.($switch ? 0 : 1)][$fieldName] = $value[$index];
}
}
@@ -3622,7 +3622,7 @@ class MYSQLi_DB implements IDbConnection {
$array2 = $this->getVillage(0, 4);
$vill = $array2['wref'];
if(mysqli_num_rows(mysqli_query($this->dblink,$q)) > 0){
if ($array && count($array)){
foreach($array as $village){
$coor2 = $this->getCoor($village['wref']);
$max = 2 * WORLD_MAX + 1;
+3 -3
View File
@@ -196,7 +196,7 @@ define("Q11_ORDER","Order:</p>Look for the coordinates of ");
define("Q11_ORDER1","and enter them here.");
define("Q11_RESP","Exactly, there ");
define("Q11_RESP1"," Village! As many resources as you reach this village. Well, almost as much ...");
define("Q11_BUTN","completar misi&oacute;n");
define("Q11_BUTN","complete task");
define("Q12","Task 12: Cranny");
define("Q12_DESC","It's getting time to erect a cranny. The world of <?php echo SERVER_NAME; ?> is dangerous.<br \/><br \/>Many players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.");
@@ -1262,7 +1262,7 @@ define("WWVILLAGE","WW village");
$lang['screenshots']['title6']="Statistics";
$lang['screenshots']['desc6']="View your ranking in statistics";
$lang['screenshots']['title7']="Weapons or dough";
$lang['screenshots']['desc7']="You can choose to play as military or economy";
$lang['screenshots']['desc7']="You can choose to play as military or economy";
?>