forked from halo-battle/game
Version 1.7l
This commit is contained in:
parent
ba5e741c99
commit
aea537909a
42 changed files with 718 additions and 131 deletions
|
|
@ -248,7 +248,8 @@ if (!empty($_POST['cds']) && !empty($_POST['nomflotte']) && isset($_POST['amas']
|
|||
$contenu_cristal = $_POST['cristal']; $bdd->escape($contenu_cristal); $plan_cristal = $queryPlanete['cristal'] - $contenu_cristal;
|
||||
$contenu_hydrogene = $_POST['hydrogene']; $bdd->escape($contenu_hydrogene); $plan_hydrogene = $queryPlanete['hydrogene'] - $contenu_hydrogene - $conso;
|
||||
$contenu_max = $sess->values['flcontenu'];
|
||||
if ($contenu_metal + $contenu_cristal + $contenu_hydrogene + $conso > $contenu_max && ($contenu_metal + $contenu_cristal + $contenu_hydrogene != 0 || $mission != 5)) {
|
||||
//if ( && ( || $mission != 5)) {
|
||||
if ($contenu_metal + $contenu_cristal + $contenu_hydrogene + $conso > $contenu_max && $contenu_metal + $contenu_cristal + $contenu_hydrogene != 0) {
|
||||
$template->assign('message','Vous ne pouvez pas embarquer autant de ressources, les cales débordent.');
|
||||
$template->assign('script','<script type="text/javascript">setTimeout(\'document.location.href="?p=flotte";\', 3500);</script>');
|
||||
$template->assign('couleur','red');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue