rogue3: make LOGFILE work with SAVEDIR
This commit is contained in:
parent
acb1a4fce9
commit
bbec0d0514
3 changed files with 2 additions and 9 deletions
|
|
@ -119,17 +119,10 @@ open_score(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if 0 /* not necessary */
|
||||
/* Same thing, but for the log file. Maybe combine them eventually. */
|
||||
/* FIXME you don't know what this does */
|
||||
void open_log(void)
|
||||
{
|
||||
#ifdef LOGFILE
|
||||
if (logfi != NULL) {
|
||||
rewind(logfi);
|
||||
return;
|
||||
}
|
||||
|
||||
logfi = fopen(LOGFILE, "a");
|
||||
|
||||
if (logfi == NULL)
|
||||
|
|
@ -142,7 +135,6 @@ void open_log(void)
|
|||
#endif
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* VARARGS2 */
|
||||
void
|
||||
|
|
@ -355,7 +347,6 @@ void writelog(int amount, int flags, int monst)
|
|||
else
|
||||
return;
|
||||
|
||||
logfi = fopen(LOGFILE, "a"); /* permissions? */
|
||||
if (logfi == NULL)
|
||||
return;
|
||||
/* and write it */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue