Store game down flag in the game table

This avoids the silly opening of downfil all the time.

For what it's worth, it also makes the information visible in xdump,
as new game selector down.
This commit is contained in:
Markus Armbruster 2009-02-07 18:24:03 +01:00
parent f1d89514a5
commit fe9f02ccfb
5 changed files with 36 additions and 2 deletions

View file

@ -35,6 +35,7 @@
#include <errno.h>
#include <unistd.h>
#include "game.h"
#include "tel.h"
#include "commands.h"
#include "optlist.h"
@ -64,6 +65,7 @@ turn(void)
logerror("Could not remove no-login file (%s).\n", downfil);
return RET_FAIL;
}
game_ctrl_play(1);
return RET_OK;
} else {
msgfilepath = motdfil;
@ -122,5 +124,6 @@ turn(void)
pr("\n");
game_ctrl_play(0);
return RET_OK;
}