General fixes

+Fixed a bug that calculated a wrong returning time if the attacker had
the tournament square in the village
This commit is contained in:
iopietro
2018-05-22 19:58:53 +02:00
parent c340eb267e
commit a4a623bbfa
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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;
}
}
+1 -1
View File
@@ -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){