if (!damaged(DSHUTTL) && (game.state.plnets[game.iplnet].known==shuttle_down || game.iscraft == 1)) {
skip(1);
proutn(_("Spock- \"May I suggest the shuttle craft, Sir?\" "));
- if (ja() != 0) shuttle();
+ if (ja() == true) shuttle();
}
return;
}
/* Coming from planet */
if (game.state.plnets[game.iplnet].known==shuttle_down) {
proutn(_("Spock- \"Wouldn't you rather take the Galileo?\" "));
- if (ja() != 0) {
+ if (ja() == true) {
chew();
return;
}
prout(_("Spock- \"Captain, I fail to see the logic in"));
prout(_(" exploring a planet with no dilithium crystals."));
proutn(_(" Are you sure this is wise?\" "));
- if (ja()==0) {
+ if (ja() == false) {
chew();
return;
}
prout(_(" raw dilithium crystals into the ship's power"));
prout(_(" system may risk a severe explosion."));
proutn(_(" Are you sure this is wise?\" "));
- if (ja()==0) {
+ if (ja() == false) {
chew();
return;
}
(int)(100*game.optime/game.state.remtime));
prout(_("remaining time."));
proutn(_("Are you sure this is wise?\" "));
- if (ja()==0) {
+ if (ja() == false) {
game.optime = 0.0;
return;
}
/* Galileo on ship! */
if (!damaged(DTRANSP)) {
proutn(_("Spock- \"Would you rather use the transporter?\" "));
- if (ja() != 0) {
+ if (ja() == true) {
beam();
return;
}
prout(_("Spock- \"Captain, the 'Experimental Death Ray'"));
prout(_(" is highly unpredictible. Considering the alternatives,"));
proutn(_(" are you sure this is wise?\" "));
- if (ja()==0) return;
+ if (ja() == false) return;
prout(_("Spock- \"Acknowledged.\""));
skip(1);
game.ididit=1;