Corrige le calcul des niveaux déjà construit pour chaque recherche
This commit is contained in:
parent
7667cf3bae
commit
8bb4fdf398
1 changed files with 2 additions and 2 deletions
|
@ -1624,8 +1624,8 @@ class dTechnologies implements Donnees
|
|||
{
|
||||
$niveau = 0;
|
||||
// Si jamais cette techno a été recherchée au niveau 2 ou 3, aditionne les niveaux des trois technos
|
||||
if (($niv = self::niveau($branche, $id)) > 0 && (self::idToBit($id) & $planete->technologies[$branche])) {
|
||||
if ((self::idToBit($id+1) & $planete->technologies[$branche])) {
|
||||
if (($niv = self::niveau($branche, $id)) > 0 && (self::idToBit($id+1) & $planete->technologies[$branche])) {
|
||||
if ((self::idToBit($id+2) & $planete->technologies[$branche])) {
|
||||
$niveau += $niv;
|
||||
}
|
||||
$niveau += $niv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue