diff --git a/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp b/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp index 16103dc4..dcd90f30 100755 --- a/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp +++ b/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp @@ -1899,24 +1899,20 @@ bool ShipObject::installComponentFromData(int chassisSlot, ShipComponentData con ShipChassis const * const shipChassis = ShipChassis::findShipChassisByCrc (getChassisType ()); if (shipChassis == NULL) { -#ifdef _DEBUG WARNING (true, ("Ship [%s] chassis [%d] is invalid for installing component [%s]", getNetworkId().getValueString().c_str(), static_cast(getChassisType ()), shipComponentData.getDescriptor().getName().getString())); -#endif return false; } if (isSlotInstalled (chassisSlot)) { -#ifdef _DEBUG WARNING (true, ("Ship [%s] chassis [%s] slot [%s] is already filled, cannot install [%s]", getNetworkId().getValueString().c_str(), shipChassis->getName().getString(), ShipChassisSlotType::getNameFromType(static_cast(chassisSlot)).c_str(), shipComponentData.getDescriptor().getName().getString())); -#endif return false; } @@ -1928,19 +1924,16 @@ bool ShipObject::installComponentFromData(int chassisSlot, ShipComponentData con ShipChassisSlot const * const slot = shipChassis->getSlot (static_cast(effectiveCompatibilitySlot)); if (slot == NULL) { -#ifdef _DEBUG WARNING (true, ("Ship [%s] chassis [%s] does not support slot [%s] for installing component [%s]", getNetworkId().getValueString().c_str(), shipChassis->getName().getString(), ShipChassisSlotType::getNameFromType(static_cast(chassisSlot)).c_str(), shipComponentData.getDescriptor().getName().getString())); return false; -#endif } if (!slot->canAcceptComponent(shipComponentData.getDescriptor())) { -#ifdef _DEBUG WARNING (true, ("Component [%s], compat [%s] cannot be installed in ship [%s] chassis [%s], slot [%s], compats [%s].", shipComponentData.getDescriptor().getName().getString(), shipComponentData.getDescriptor().getCompatibility().getString(), @@ -1948,7 +1941,6 @@ bool ShipObject::installComponentFromData(int chassisSlot, ShipComponentData con shipChassis->getName().getString(), ShipChassisSlotType::getNameFromType(static_cast(chassisSlot)).c_str(), slot->getCompatibilityString().c_str())); -#endif return false; }