Minor fixes to the indentation of oolite-equipment-control.js.

master
AnotherCommander 2020-08-12 10:00:13 +02:00
parent 35bc9b507d
commit 716f13daf9
1 changed files with 6 additions and 6 deletions

View File

@ -157,12 +157,12 @@ this.equipmentAdded = function(equip)
}
}
var eq_dict = this.$equipmentEnabled;
var eqIncompatible;
for (eqKey in eq_dict) {
eqIncompatible = EquipmentInfo.infoForKey(eqKey).incompatibleEquipment;
if (eqIncompatible && eqIncompatible.indexOf(equip) >= 0) {
player.ship.removeEquipment(eqKey);
}
var eqIncompatible;
for (eqKey in eq_dict) {
eqIncompatible = EquipmentInfo.infoForKey(eqKey).incompatibleEquipment;
if (eqIncompatible && eqIncompatible.indexOf(equip) >= 0) {
player.ship.removeEquipment(eqKey);
}
}
this.$equipmentEnabled[equip] = 1;
};