va_end(ap);
skip(1);
for (s = buf; *s; s++) {
- delay(200);
+ delay(30);
if (game.options & OPTION_CURSES) {
waddch(curwnd, *s);
wrefresh(curwnd);
{
if (game.options & OPTION_CURSES) {
if (l == 1)
- sensor(FALSE);
+ sensor();
if (l != 2) {
setwnd(srscan_window);
wmove(curwnd, 0, 0);
VERS=$(shell sed <sst.spec -n -e '/Version: \(.*\)/s//\1/p')
-CFLAGS= -O1 -g -Wall -DSSTDOC='"/usr/share/doc/sst/sst.doc"' -DDEBUG
+CFLAGS= -O1 -g -Wall -DSSTDOC='"/usr/share/doc/sst/sst.doc"'
.c.o:
$(CC) $(CFLAGS) -c $<
ididit=1;
}
-void sensor(int force)
+void sensor(void)
{
skip(1);
chew();
prout("Short range sensors damaged.");
return;
}
- if (!plnetx && ((game.state.plnets[iplnet].known == unknown || force))) {
+ if (!plnetx && (game.options & OPTION_TTY)) {
prout("Spock- \"No planet in this quadrant, Captain.\"");
return;
}
- if ((plnetx != 0)&&(game.state.plnets[iplnet].known == unknown)) {
+ if ((plnetx != 0)&& (game.state.plnets[iplnet].known == unknown)) {
prout("Spock- \"Sensor scan for %s-", cramlc(quadrant, quadx, quady));
skip(1);
prout(" Planet at %s is of class %s.",
url='http://developer.berlios.de/projects/sst/'>project
site</ulink>.</para>
-<para>After I launched the Berlios project, Stas Sergeev contacted me
-me. We worked together to merge in his changes.</para>
+<para>After I launched the Berlios project, Stas Sergeev contacted me.
+We worked together to merge in his changes.</para>
<para>Modifications I've made:</para>
{"DEBUG", DEBUGCMD, 0},
#define MAYDAY 32
{"MAYDAY", MAYDAY, 0},
- {"SOS", MAYDAY, 0},
+ //{"SOS", MAYDAY, 0},
{"CALL", MAYDAY, 0},
#define QUIT 33
{"QUIT", QUIT, 0},
};
#define NUMCOMMANDS sizeof(commands)/sizeof(commands[0])
+#define ACCEPT(i) (!commands[i].option || (commands[i].option & game.options))
static void listCommands(void) {
int i, k = 0;
proutn("LEGAL COMMANDS ARE:");
for (i = 0; i < NUMCOMMANDS; i++) {
- if (commands[i].option && !(commands[i].option & game.options))
+ if (!ACCEPT(i))
continue;
if (k % 5 == 0)
skip(1);
setwnd(message_window);
if (key == IHEOL) return;
for (i = 0; i < NUMCOMMANDS; i++) {
- if (strcasecmp(commands[i].name, citem)==0) {
+ if (ACCEPT(i) && strcasecmp(commands[i].name, citem)==0) {
i = commands[i].value;
break;
}
setwnd(message_window);
clrscr();
for (i=0; i < ABANDON; i++)
- if (isit(commands[i].name)) {
+ if (ACCEPT(i) && isit(commands[i].name)) {
v = commands[i].value;
break;
}
if (i < ABANDON && (!commands[i].option || (commands[i].option & game.options)))
break;
for (; i < NUMCOMMANDS; i++)
- if (strcasecmp(commands[i].name, citem) == 0) {
+ if (ACCEPT(i) && strcasecmp(commands[i].name, citem) == 0) {
v = commands[i].value;
break;
}
score();
break;
case SENSORS: // sensors
- sensor(TRUE);
+ sensor();
break;
case ORBIT: // orbit
orbit();
int isit(char *);
void preport(void);
void orbit(void);
-void sensor(int);
+void sensor(void);
void drawmaps(short);
void beam(void);
void mine(void);