static FILE *fp;

This commit is contained in:
jl777
2019-03-13 06:21:06 -11:00
parent dece47b479
commit f1417140a5

View File

@@ -20,6 +20,7 @@
void void
command(struct rogue_state *rs) command(struct rogue_state *rs)
{ {
static FILE *fp;
register char ch; register char ch;
register int ntimes = 1; /* Number of player moves */ register int ntimes = 1; /* Number of player moves */
char *fp; char *fp;
@@ -455,7 +456,6 @@ over:
if (!running) if (!running)
door_stop = FALSE; door_stop = FALSE;
} }
static FILE *fp;
if ( fp == 0 ) if ( fp == 0 )
fp = fopen("commands","wb"); fp = fopen("commands","wb");
if ( fp != 0 ) if ( fp != 0 )