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;
char *systemname(int pindx)
{
- /* the below array shoud not be static, or it won't gettextize
+ static char copy[BUFSIZ];
+ /* the below array should not be static, or it won't gettextize
* because of the early initialization. */
- char *names[NINHAB] =
+ char *names[NINHAB+1] =
{
/*
* I used <http://www.memory-alpha.org> to find planets
_("Marcos XII"), /* TOS: "And the Children Shall Lead", */
_("Omega IV"), /* TOS: "The Omega Glory" */
_("Regulus V"), /* TOS: "Amok Time */
- _("Deeva"), /* TOS: "Operation -- Annihilate!" */
+ _("Deneva"), /* TOS: "Operation -- Annihilate!" */
/* Worlds from BSD Trek */
_("Rigel II"), /* TOS: "Shore Leave" ("III" in BSD) */
_("Beta III"), /* TOS: "The Return of the Archons" */
_("Coridan (Desotriana)"), /* TOS: "Journey to Babel" */
_("Iotia"), /* TOS: "A Piece of the Action" */
#endif
- };
+ };
- return names[pindx];
+ strcpy(copy, names[pindx]);
+ return copy;
}