updateSearchlight();
    protected void updateTarget() {        setFireEnabled(false);        // make sure we're showing the current entity in the mech display        if (ce() != null && !ce().equals(clientgui.mechD.getCurrentEntity())) {            clientgui.mechD.displayEntity(ce());        }        // update target panel        final int weaponId = clientgui.mechD.wPan.getSelectedWeaponNum();        if (target != null && weaponId != -1) {            ToHitData toHit;              toHit = WeaponAttackAction.toHit(client.game, cen, target, weaponId, Mech.LOC_NONE, 0);              clientgui.mechD.wPan.wTargetR.setText(target.getDisplayName());            clientgui.mechD.wPan.wRangeR.setText("" + ce().getPosition().distance(target.getPosition())); //$NON-NLS-1$            Mounted m = ce().getEquipment(weaponId);            if (m.isUsedThisRound()) {                clientgui.mechD.wPan.wToHitR.setText(Messages.getString("TargetingPhaseDisplay.alreadyFired")); //$NON-NLS-1$                setFireEnabled(false);            } else if (m.getType().hasFlag(WeaponType.F_AUTO_TARGET)) {                clientgui.mechD.wPan.wToHitR.setText(Messages.getString("TargetingPhaseDisplay.autoFiringWeapon")); //$NON-NLS-1$                setFireEnabled(false);            } else if (toHit.getValue() == ToHitData.IMPOSSIBLE) {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString());                setFireEnabled(false);            } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString());                setFireEnabled(true);            } else {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString() + " (" + Compute.oddsAbove(toHit.getValue()) + "%)"); //$NON-NLS-1$ //$NON-NLS-2$                setFireEnabled(true);            }            clientgui.mechD.wPan.toHitText.setText(toHit.getDesc());            setSkipEnabled(true);        } else {            clientgui.mechD.wPan.wTargetR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.wRangeR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.wToHitR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.toHitText.setText(""); //$NON-NLS-1$        }    }