mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-27 02:00:41 +00:00
[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:
parent
b9ef6b0793
commit
3e70a0279b
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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 */
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user