mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-21 20:16:11 +00:00
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:
@@ -17,7 +17,7 @@ class Profile {
|
|||||||
|
|
||||||
if($session->access == BANNED){
|
if($session->access == BANNED){
|
||||||
header("Location: banned.php");
|
header("Location: banned.php");
|
||||||
exit();
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($post['ft'])) {
|
if(isset($post['ft'])) {
|
||||||
@@ -42,7 +42,7 @@ class Profile {
|
|||||||
|
|
||||||
if($session->access == BANNED){
|
if($session->access == BANNED){
|
||||||
header("Location: banned.php");
|
header("Location: banned.php");
|
||||||
exit();
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($get['e'])) {
|
if(isset($get['e'])) {
|
||||||
@@ -72,7 +72,7 @@ class Profile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header("Location: spieler.php?uid=".$session->uid);
|
header("Location: spieler.php?uid=".$session->uid);
|
||||||
exit();
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function gpack($post) {
|
private function gpack($post) {
|
||||||
@@ -99,11 +99,11 @@ class Profile {
|
|||||||
$database->UpdateOnline("logout");
|
$database->UpdateOnline("logout");
|
||||||
$session->Logout();
|
$session->Logout();
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
exit();
|
exit;
|
||||||
}else{
|
}else{
|
||||||
$form->add("vac", VAC_MODE_WRONG_DAYS);
|
$form->add("vac", VAC_MODE_WRONG_DAYS);
|
||||||
header("Location: spieler.php?s=".$session->uid);
|
header("Location: spieler.php?s=".$session->uid);
|
||||||
exit();
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -773,7 +773,7 @@ class Units {
|
|||||||
$speeds[] = $GLOBALS['u'.$heroUnit]['speed'];
|
$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){
|
public function startRaidList($post){
|
||||||
|
|||||||
Reference in New Issue
Block a user