Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Cosmetic formatting changes in sv_user.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-x-d committed Jul 24, 2019
1 parent 9aee753 commit 5c9a0fb
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 272 deletions.
10 changes: 5 additions & 5 deletions qcommon/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ int time_after_ref;
============================================================================
*/

static int rd_target;
static char *rd_buffer;
static int rd_buffersize;
static void (*rd_flush)(int target, char *buffer);
static int rd_target;
static char *rd_buffer;
static int rd_buffersize;
static void (*rd_flush)(int target, char *buffer);

void Com_BeginRedirect(int target, char *buffer, int buffersize, void (*flush))
void Com_BeginRedirect(int target, char *buffer, int buffersize, void (*flush)(int ftarget, char *fbuffer))
{
if (!target || !buffer || !buffersize || !flush)
return;
Expand Down
2 changes: 1 addition & 1 deletion qcommon/qcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ void FS_FreeFile(void *buffer);

#define MAXPRINTMSG 8192 // was 4096, fix for nVidia 191.xx crash //mxd. Moved from common.c / sys_console.c

void Com_BeginRedirect(int target, char *buffer, int buffersize, void(*flush));
void Com_BeginRedirect(int target, char *buffer, int buffersize, void(*flush)(int ftarget, char *fbuffer));
void Com_EndRedirect(void);
void Com_DPrintf(char *fmt, ...);
void Com_CPrintf(char *fmt, ...); //mxd
Expand Down
6 changes: 3 additions & 3 deletions server/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ extern char sv_outputbuf[SV_OUTPUTBUF_LENGTH];

void SV_FlushRedirect(int sv_redirected, char *outputbuf);

void SV_DemoCompleted(void);
void SV_SendClientMessages(void);
void SV_DemoCompleted();
void SV_SendClientMessages();

void SV_Multicast(vec3_t origin, multicast_t to);
void SV_StartSound(vec3_t origin, edict_t *entity, int channel, int soundindex, float volume, float attenuation, float timeofs);
Expand All @@ -261,7 +261,7 @@ void SV_BroadcastCommand(char *fmt, ...);
//
// sv_user.c
//
void SV_Nextserver(void);
void SV_Nextserver();
void SV_UserinfoChanged(client_t *cl);
void SV_ExecuteClientMessage(client_t *cl);

Expand Down
4 changes: 2 additions & 2 deletions server/sv_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void SV_SendClientDatagram(client_t *client)
client->message_size[sv.framenum % RATE_MESSAGES] = msg.cursize;
}

void SV_DemoCompleted(void)
void SV_DemoCompleted()
{
if (sv.demofile)
{
Expand Down Expand Up @@ -373,7 +373,7 @@ qboolean SV_RateDrop(client_t *c)
return false;
}

void SV_SendClientMessages(void)
void SV_SendClientMessages()
{
static byte msgbuf[MAX_MSGLEN]; //mxd. +static
int msglen = 0;
Expand Down
Loading

0 comments on commit 5c9a0fb

Please sign in to comment.