mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-10 21:31:01 +00:00
Fixed some bugs
+If you conquer a village with an artifact inside, the new owner will be changed correctly +Moved plus links under the menu +Renewed the "debug" function in Logging.php +Fixed some errors that could have shown in Ranking.php
This commit is contained in:
@@ -56,8 +56,7 @@ class Automation {
|
||||
{
|
||||
$this->demolitionComplete();
|
||||
}
|
||||
// TODO: check if commenting-out this next line affected anything (it shouldn't) and should improve performance
|
||||
//$this->updateStore();
|
||||
|
||||
$this->delTradeRoute();
|
||||
$this->TradeRoute();
|
||||
if(!file_exists("GameEngine/Prevention/market.txt") or time()-filemtime("GameEngine/Prevention/market.txt")>50) {
|
||||
@@ -2571,7 +2570,7 @@ class Automation {
|
||||
} else if (!$village_destroyed) {
|
||||
// you took over the village
|
||||
$villname = addslashes($database->getVillageField($data['to'],"name"));
|
||||
$artifact = $database->getOwnArtefactInfo($data['to']);
|
||||
$artifact = reset($database->getOwnArtefactInfo($data['to']));
|
||||
|
||||
$info_chief = "".$chief_pic.",Inhabitants of ".$villname." village decided to join your empire.";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user