#include "journal.h"
#include "player.h"
#include "prototypes.h"
-#include "server.h"
/*
* Receive a line of input from the current player.
* Flush all queued output before potentially sleeping in
* io_input(), to make sure player sees the prompt.
*/
- while (io_output(player->iop, !play_wrlock_wanted) > 0) ;
+ while (io_output(player->iop,
+ player->may_sleep >= PLAYER_SLEEP_ON_INPUT) > 0)
+ ;
/*
* If io_output_all() blocked and got unblocked by command