From 97e89e2be2f730c2400bc6cef73ee1d17195ea86 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Sun, 31 Jan 2016 16:16:55 -0600 Subject: [PATCH] the "special" npe falcon instance throws useless warns, this should be the last of them silenced --- .../serverGame/src/shared/object/ShipObject_Components.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 b61d64a4..956fe79d 100755 --- a/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp +++ b/engine/server/library/serverGame/src/shared/object/ShipObject_Components.cpp @@ -1934,11 +1934,14 @@ bool ShipObject::installComponentFromData(int chassisSlot, ShipComponentData con if (!slot->canAcceptComponent(shipComponentData.getDescriptor())) { - DEBUG_WARNING (true, ("Component [%s], compat [%s] cannot be installed in ship [%s] chassis [%s], slot [%s], compats [%s].", + //this chassis check, in the warning, is to suppress output related to the npe tutorial falcon instance, as it seems "special" + std::string chassis = shipChassis->getName().getString(); + + DEBUG_WARNING ((chassis != "player_yt1300"), ("Component [%s], compat [%s] cannot be installed in ship [%s] chassis [%s], slot [%s], compats [%s].", shipComponentData.getDescriptor().getName().getString(), shipComponentData.getDescriptor().getCompatibility().getString(), getNetworkId().getValueString().c_str(), - shipChassis->getName().getString(), + chassis, ShipChassisSlotType::getNameFromType(static_cast(chassisSlot)).c_str(), slot->getCompatibilityString().c_str())); return false;