selectedWeapon = ce().getNextWeapon(client.mechD.wPan.getSelectedWeaponNum());  if(selectedWeapon == -1) {
int nextWeapon = ce().getNextWeapon(client.mechD.wPan.getSelectedWeaponNum());  if(nextWeapon == -1) {
    private void nextWeapon() {        selectedWeapon = ce().getNextWeapon(client.mechD.wPan.getSelectedWeaponNum());        // check; if there are no ready weapons, you're done.        if(selectedWeapon == -1) {            return;        }        client.mechD.wPan.displayMech(ce());        client.mechD.wPan.selectWeapon(selectedWeapon);        updateTarget();    }