mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +00:00
Begin phase 2 :)
- link net_svc.c to the server - add a NET_SVC_Print_Emit function - make the server use the above instead of svc_print manually It's actually kind of ugly, because of how backbuffers are implimented. Hopefully I'll be able to clean that up later.
This commit is contained in:
parent
7b4e5e69af
commit
56f1d6f49b
5 changed files with 35 additions and 8 deletions
|
@ -76,6 +76,7 @@ static const char rcsid[] =
|
|||
#include "crudefile.h"
|
||||
#include "game.h"
|
||||
#include "net.h"
|
||||
#include "net_svc.h"
|
||||
#include "pmove.h"
|
||||
#include "server.h"
|
||||
#include "sv_progs.h"
|
||||
|
@ -260,11 +261,14 @@ SV_FinalMessage (const char *message)
|
|||
{
|
||||
client_t *cl;
|
||||
int i;
|
||||
net_svc_print_t block;
|
||||
|
||||
block.level = PRINT_HIGH;
|
||||
block.message = message;
|
||||
|
||||
SZ_Clear (net_message->message);
|
||||
MSG_WriteByte (net_message->message, svc_print);
|
||||
MSG_WriteByte (net_message->message, PRINT_HIGH);
|
||||
MSG_WriteString (net_message->message, message);
|
||||
NET_SVC_Print_Emit (&block, net_message->message);
|
||||
MSG_WriteByte (net_message->message, svc_disconnect);
|
||||
|
||||
for (i = 0, cl = svs.clients; i < MAX_CLIENTS; i++, cl++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue