From a4a623bbfaa0b8454727e656d07990fe487ffe81 Mon Sep 17 00:00:00 2001 From: iopietro Date: Tue, 22 May 2018 19:58:53 +0200 Subject: [PATCH] General fixes +Fixed a bug that calculated a wrong returning time if the attacker had the tournament square in the village --- GameEngine/Profile.php | 10 +++++----- GameEngine/Units.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GameEngine/Profile.php b/GameEngine/Profile.php index 5b5a0697..8ce71aa9 100755 --- a/GameEngine/Profile.php +++ b/GameEngine/Profile.php @@ -17,7 +17,7 @@ class Profile { if($session->access == BANNED){ header("Location: banned.php"); - exit(); + exit; } if(isset($post['ft'])) { @@ -42,7 +42,7 @@ class Profile { if($session->access == BANNED){ header("Location: banned.php"); - exit(); + exit; } if(isset($get['e'])) { @@ -72,7 +72,7 @@ class Profile { } header("Location: spieler.php?uid=".$session->uid); - exit(); + exit; } private function gpack($post) { @@ -99,11 +99,11 @@ class Profile { $database->UpdateOnline("logout"); $session->Logout(); header("Location: login.php"); - exit(); + exit; }else{ $form->add("vac", VAC_MODE_WRONG_DAYS); header("Location: spieler.php?s=".$session->uid); - exit(); + exit; } } diff --git a/GameEngine/Units.php b/GameEngine/Units.php index e085947a..a61d29ca 100755 --- a/GameEngine/Units.php +++ b/GameEngine/Units.php @@ -773,7 +773,7 @@ class Units { $speeds[] = $GLOBALS['u'.$heroUnit]['speed']; } - return $generator->procDistanceTime($fromCor, $toCor, min($speeds), $mode); + return $generator->procDistanceTime($fromCor, $toCor, min($speeds), $mode, $from); } public function startRaidList($post){