/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* pr.c: Output to players
- *
+ *
* Known contributors to this file:
- * Dave Pare, 1986, 1989
+ * Dave Pare, 1986, 1989
* Steve McClure, 1998-2000
* Ron Koenderink, 2005
- * Markus Armbruster, 2005-2007
+ * Markus Armbruster, 2005-2008
*/
/*
#include "com.h"
#include "empio.h"
#include "file.h"
+#include "journal.h"
#include "misc.h"
#include "nat.h"
#include "player.h"
if (p->curid >= 0) {
io_puts(p->iop, "\n");
+ journal_output(p, p->curid, "\n");
p->curid = -1;
}
va_start(ap, format);
bp += len;
}
}
+ journal_output(pl, id, buf);
}
/*
io_puts(pl->iop, printbuf);
}
}
+ journal_output(pl, id, buf);
}
/*
{
int r;
- /*
- * Each prompt must consume one line of input. recvclient()
- * doesn't do that while player->aborted.
- */
- CANT_HAPPEN(player->aborted);
-
if (CANT_HAPPEN(!prompt))
prompt = "? ";
{
int r;
- /* See prmptrd() */
- CANT_HAPPEN(player->aborted);
-
if (CANT_HAPPEN(!prompt))
prompt = "? ";