forked from halo-battle/game
Correctifs sur la page de préparation d'envoie des flotte
This commit is contained in:
parent
52e4266218
commit
c56099e3b0
8 changed files with 125 additions and 58 deletions
|
|
@ -734,7 +734,7 @@ class dSpatial implements Donnees
|
|||
}
|
||||
|
||||
|
||||
public static function tailleCales($id)
|
||||
public static function tailleCales($id, surface $planete)
|
||||
{
|
||||
if ($planete->race == "humain") {
|
||||
switch ($id) {
|
||||
|
|
@ -781,7 +781,7 @@ class dSpatial implements Donnees
|
|||
$vitesse = 15000;
|
||||
break;
|
||||
default:
|
||||
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
|
||||
$vitesse = 0;
|
||||
}
|
||||
} else {
|
||||
switch ($id) {
|
||||
|
|
@ -837,7 +837,7 @@ class dSpatial implements Donnees
|
|||
$vitesse = 20000000;
|
||||
break;
|
||||
default:
|
||||
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
|
||||
$vitesse = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -846,7 +846,7 @@ class dSpatial implements Donnees
|
|||
}
|
||||
|
||||
|
||||
public static function vitesseP($id)
|
||||
public static function vitesseP($id, surface $planete)
|
||||
{
|
||||
if ($planete->race == "humain") {
|
||||
switch ($id) {
|
||||
|
|
@ -957,7 +957,7 @@ class dSpatial implements Donnees
|
|||
return $vitesse;
|
||||
}
|
||||
|
||||
public static function vitesseS($id)
|
||||
public static function vitesseS($id, surface $planete)
|
||||
{
|
||||
if ($planete->race == "humain") {
|
||||
switch ($id) {
|
||||
|
|
@ -1068,7 +1068,7 @@ class dSpatial implements Donnees
|
|||
return $vitesse;
|
||||
}
|
||||
|
||||
public static function vitesseG($id)
|
||||
public static function vitesseG($id, surface $planete)
|
||||
{
|
||||
if ($planete->race == "humain") {
|
||||
switch ($id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue