[PATCH] Use Con_Printf from console.h for QW server

Seems silly to have the Con_{D,}Printf functions duplicated in different
headers, so just use the definition from console.h. QW server actually
implements the functions in sv_send.c, so this is a little messy, but I still
see it as a small improvement.

Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2007-10-01 22:39:38 +09:30
parent b9ef6b0793
commit 3e70a0279b
10 changed files with 10 additions and 4 deletions

View File

@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "cmd.h"
#include "console.h"
#include "model.h"
#include "progs.h"
#include "qwsvdef.h"

View File

@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// sv_edict.c -- entity dictionary
#include "cmd.h"
#include "console.h"
#include "crc.h"
#include "pr_comp.h"
#include "progs.h"

View File

@ -71,7 +71,4 @@ extern double realtime; // not bounded in any way, changed at
void SV_Error(char *error, ...) __attribute__((noreturn));
void SV_Init(quakeparms_t *parms);
void Con_Printf(char *fmt, ...);
void Con_DPrintf(char *fmt, ...);
#endif /* SERVER_QWSVDEF_H */

View File

@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "cmd.h"
#include "console.h"
#include "qwsvdef.h"
#include "server.h"
#include "sys.h"

View File

@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "console.h"
#include "crc.h"
#include "model.h"
#include "qwsvdef.h"

View File

@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "cmd.h"
#include "console.h"
#include "model.h"
#include "net.h"
#include "pmove.h"

View File

@ -19,8 +19,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_nchan.c, user reliable data stream writes
#include "qwsvdef.h"
#include "console.h"
#include "server.h"
#include "qwsvdef.h"
// check to see if client block will fit, if not, rotate buffers
void

View File

@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// sv_phys.c
#include "bspfile.h"
#include "console.h"
#include "pmove.h"
#include "qwsvdef.h"
#include "server.h"

View File

@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// sv_user.c -- server code for moving users
#include "cmd.h"
#include "console.h"
#include "pmove.h"
#include "qwsvdef.h"
#include "server.h"

View File

@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// world.c -- world query functions
#include "bspfile.h"
#include "console.h"
#include "mathlib.h"
#include "model.h"
#include "qwsvdef.h"