projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New debug-mode support.
[super-star-trek.git]
/
src
/
io.c
diff --git
a/src/io.c
b/src/io.c
index b513f26af4efe625d0cddb238ba06491de6057b7..7b4855f6c88048b78890a477733ae6757018bf96 100644
(file)
--- a/
src/io.c
+++ b/
src/io.c
@@
-27,6
+27,8
@@
static void outro(void)
(void)endwin();
putchar('\n');
}
(void)endwin();
putchar('\n');
}
+ if (logfp)
+ fclose(logfp);
}
void iostart(void)
}
void iostart(void)
@@
-203,6
+205,8
@@
void cgetline(char *line, int max)
} else {
fgets(line, max, stdin);
}
} else {
fgets(line, max, stdin);
}
+ if (logfp)
+ fputs(line, logfp);
line[strlen(line)-1] = '\0';
}
line[strlen(line)-1] = '\0';
}
@@
-303,7
+307,7
@@
void highvideo (void)
}
}
}
}
-void commandhook(char *cmd,
int
before) {
+void commandhook(char *cmd,
bool
before) {
}
/*
}
/*
@@
-430,7
+434,7
@@
void makechart(void)
void setpassword(void)
{
if (!(game.options & OPTION_CURSES)) {
void setpassword(void)
{
if (!(game.options & OPTION_CURSES)) {
-
while (TRUE
) {
+
for (;;
) {
scan();
strcpy(game.passwd, citem);
chew();
scan();
strcpy(game.passwd, citem);
chew();