function header audit.

This commit is contained in:
Bill Currie 2001-02-09 02:53:09 +00:00
parent bb8f25bb64
commit 435c588e37
121 changed files with 1247 additions and 3078 deletions

View file

@ -111,11 +111,9 @@ static byte chktbl[1024 + 4] = {
#if 0 #if 0
/* /*
==================== COM_BlockSequenceCheckByte
COM_BlockSequenceCheckByte
For proxy protecting For proxy protecting
====================
*/ */
byte byte
COM_BlockSequenceCheckByte (byte * base, int length, int sequence, COM_BlockSequenceCheckByte (byte * base, int length, int sequence,
@ -158,11 +156,9 @@ COM_BlockSequenceCheckByte (byte * base, int length, int sequence,
#endif #endif
/* /*
==================== COM_BlockSequenceCRCByte
COM_BlockSequenceCRCByte
For proxy protecting For proxy protecting
====================
*/ */
byte byte
COM_BlockSequenceCRCByte (byte * base, int length, int sequence) COM_BlockSequenceCRCByte (byte * base, int length, int sequence)

View file

@ -43,13 +43,11 @@
#include "teamplay.h" #include "teamplay.h"
/* /*
=================== Cmd_ForwardToServer
Cmd_ForwardToServer
adds the current command line as a clc_stringcmd to the client message. adds the current command line as a clc_stringcmd to the client message.
things like godmode, noclip, etc, are commands directed to the server, things like godmode, noclip, etc, are commands directed to the server,
so when they are typed in at the console, they will need to be forwarded. so when they are typed in at the console, they will need to be forwarded.
===================
*/ */
void void
Cmd_ForwardToServer (void) Cmd_ForwardToServer (void)
@ -112,9 +110,7 @@ Cmd_ForwardToServer_f (void)
} }
/* /*
============ Cmd_Init
Cmd_Init
============
*/ */
void void
cl_Cmd_Init (void) cl_Cmd_Init (void)

View file

@ -50,24 +50,19 @@
void CL_FinishTimeDemo (void); void CL_FinishTimeDemo (void);
/* /*
============================================================================== DEMO CODE
DEMO CODE When a demo is playing back, all NET_SendMessages are skipped, and
NET_GetMessages are read from the demo file.
When a demo is playing back, all NET_SendMessages are skipped, and Whenever cl.time gets past the last received message, another message is
NET_GetMessages are read from the demo file. read from the demo file.
Whenever cl.time gets past the last received message, another message is
read from the demo file.
==============================================================================
*/ */
/* /*
============== CL_StopPlayback
CL_StopPlayback
Called when a demo file runs out, or the user starts a game Called when a demo file runs out, or the user starts a game
==============
*/ */
void void
CL_StopPlayback (void) CL_StopPlayback (void)
@ -89,11 +84,9 @@ CL_StopPlayback (void)
#define dem_set 2 #define dem_set 2
/* /*
==================== CL_WriteDemoCmd
CL_WriteDemoCmd
Writes the current user cmd Writes the current user cmd
====================
*/ */
void void
CL_WriteDemoCmd (usercmd_t *pcmd) CL_WriteDemoCmd (usercmd_t *pcmd)
@ -131,11 +124,9 @@ CL_WriteDemoCmd (usercmd_t *pcmd)
} }
/* /*
==================== CL_WriteDemoMessage
CL_WriteDemoMessage
Dumps the current net message, prefixed by the length and view angles Dumps the current net message, prefixed by the length and view angles
====================
*/ */
void void
CL_WriteDemoMessage (sizebuf_t *msg) CL_WriteDemoMessage (sizebuf_t *msg)
@ -163,11 +154,9 @@ CL_WriteDemoMessage (sizebuf_t *msg)
} }
/* /*
==================== CL_GetDemoMessage
CL_GetDemoMessage
FIXME... FIXME...
====================
*/ */
qboolean qboolean
CL_GetDemoMessage (void) CL_GetDemoMessage (void)
@ -287,11 +276,9 @@ CL_GetDemoMessage (void)
} }
/* /*
==================== CL_GetMessage
CL_GetMessage
Handles recording and playback of demos, on top of NET_ code Handles recording and playback of demos, on top of NET_ code
====================
*/ */
qboolean qboolean
CL_GetMessage (void) CL_GetMessage (void)
@ -309,11 +296,9 @@ CL_GetMessage (void)
/* /*
==================== CL_Stop_f
CL_Stop_f
stop recording a demo stop recording a demo
====================
*/ */
void void
CL_Stop_f (void) CL_Stop_f (void)
@ -338,11 +323,9 @@ CL_Stop_f (void)
/* /*
==================== CL_WriteDemoMessage
CL_WriteDemoMessage
Dumps the current net message, prefixed by the length and view angles Dumps the current net message, prefixed by the length and view angles
====================
*/ */
void void
CL_WriteRecordDemoMessage (sizebuf_t *msg, int seq) CL_WriteRecordDemoMessage (sizebuf_t *msg, int seq)
@ -406,11 +389,9 @@ CL_WriteSetDemoMessage (void)
/* /*
==================== CL_Record_f
CL_Record_f
record <demoname> <server> record <demoname> <server>
====================
*/ */
void void
CL_Record_f (void) CL_Record_f (void)
@ -694,11 +675,9 @@ CL_Record_f (void)
} }
/* /*
==================== CL_ReRecord_f
CL_ReRecord_f
record <demoname> record <demoname>
====================
*/ */
void void
CL_ReRecord_f (void) CL_ReRecord_f (void)
@ -742,11 +721,9 @@ CL_ReRecord_f (void)
/* /*
==================== CL_PlayDemo_f
CL_PlayDemo_f
play [demoname] play [demoname]
====================
*/ */
void void
CL_PlayDemo_f (void) CL_PlayDemo_f (void)
@ -783,10 +760,7 @@ CL_PlayDemo_f (void)
} }
/* /*
==================== CL_FinishTimeDemo
CL_FinishTimeDemo
====================
*/ */
void void
CL_FinishTimeDemo (void) CL_FinishTimeDemo (void)
@ -806,11 +780,9 @@ CL_FinishTimeDemo (void)
} }
/* /*
==================== CL_TimeDemo_f
CL_TimeDemo_f
timedemo [demoname] timedemo [demoname]
====================
*/ */
void void
CL_TimeDemo_f (void) CL_TimeDemo_f (void)

View file

@ -86,10 +86,7 @@ CL_ClearEnts ()
} }
/* /*
=============== CL_AllocDlight
CL_AllocDlight
===============
*/ */
dlight_t * dlight_t *
CL_AllocDlight (int key) CL_AllocDlight (int key)
@ -127,9 +124,7 @@ CL_AllocDlight (int key)
} }
/* /*
=============== CL_NewDlight
CL_NewDlight
===============
*/ */
void void
CL_NewDlight (int key, vec3_t org, int effects) CL_NewDlight (int key, vec3_t org, int effects)
@ -172,10 +167,7 @@ CL_NewDlight (int key, vec3_t org, int effects)
/* /*
=============== CL_DecayLights
CL_DecayLights
===============
*/ */
void void
CL_DecayLights (void) CL_DecayLights (void)
@ -196,11 +188,7 @@ CL_DecayLights (void)
/* /*
========================================================================= PACKET ENTITY PARSING / LINKING
PACKET ENTITY PARSING / LINKING
=========================================================================
*/ */
/* /*
@ -307,9 +295,7 @@ CL_ParseDelta (entity_state_t *from, entity_state_t *to, int bits)
/* /*
================= FlushEntityPacket
FlushEntityPacket
=================
*/ */
void void
FlushEntityPacket (void) FlushEntityPacket (void)
@ -469,10 +455,7 @@ CL_ParsePacketEntities (qboolean delta)
/* /*
=============== CL_LinkPacketEntities
CL_LinkPacketEntities
===============
*/ */
void void
CL_LinkPacketEntities (void) CL_LinkPacketEntities (void)
@ -603,11 +586,7 @@ CL_LinkPacketEntities (void)
/* /*
========================================================================= PROJECTILE PARSING / LINKING
PROJECTILE PARSING / LINKING
=========================================================================
*/ */
typedef struct { typedef struct {
@ -628,11 +607,9 @@ CL_ClearProjectiles (void)
} }
/* /*
===================== CL_ParseProjectiles
CL_ParseProjectiles
Nails are passed as efficient temporary entities Nails are passed as efficient temporary entities
=====================
*/ */
void void
CL_ParseProjectiles (void) CL_ParseProjectiles (void)
@ -662,10 +639,7 @@ CL_ParseProjectiles (void)
} }
/* /*
============= CL_LinkProjectiles
CL_LinkProjectiles
=============
*/ */
void void
CL_LinkProjectiles (void) CL_LinkProjectiles (void)
@ -703,9 +677,7 @@ CL_LinkProjectiles (void)
extern int cl_spikeindex, cl_playerindex, cl_flagindex; extern int cl_spikeindex, cl_playerindex, cl_flagindex;
/* /*
=================== CL_ParsePlayerinfo
CL_ParsePlayerinfo
===================
*/ */
extern int parsecountmod; extern int parsecountmod;
extern double parsecounttime; extern double parsecounttime;
@ -778,11 +750,9 @@ CL_ParsePlayerinfo (void)
/* /*
================ CL_AddFlagModels
CL_AddFlagModels
Called when the CTF flags are set Called when the CTF flags are set
================
*/ */
void void
CL_AddFlagModels (entity_t *ent, int team) CL_AddFlagModels (entity_t *ent, int team)
@ -853,12 +823,10 @@ CL_AddFlagModels (entity_t *ent, int team)
} }
/* /*
============= CL_LinkPlayers
CL_LinkPlayers
Create visible entities in the correct position Create visible entities in the correct position
for all current players for all current players
=============
*/ */
void void
CL_LinkPlayers (void) CL_LinkPlayers (void)
@ -966,11 +934,9 @@ CL_LinkPlayers (void)
//====================================================================== //======================================================================
/* /*
=============== CL_SetSolid
CL_SetSolid
Builds all the pmove physents for the current frame Builds all the pmove physents for the current frame
===============
*/ */
void void
CL_SetSolidEntities (void) CL_SetSolidEntities (void)
@ -1007,14 +973,12 @@ CL_SetSolidEntities (void)
} }
/* /*
=== Calculate the new position of players, without other player clipping
Calculate the new position of players, without other player clipping
We do this to set up real player prediction. We do this to set up real player prediction.
Players are predicted twice, first without clipping other players, Players are predicted twice, first without clipping other players,
then with clipping against them. then with clipping against them.
This sets up the first phase. This sets up the first phase.
===
*/ */
void void
CL_SetUpPlayerPrediction (qboolean dopred) CL_SetUpPlayerPrediction (qboolean dopred)
@ -1073,14 +1037,12 @@ CL_SetUpPlayerPrediction (qboolean dopred)
} }
/* /*
=============== CL_SetSolid
CL_SetSolid
Builds all the pmove physents for the current frame Builds all the pmove physents for the current frame
Note that CL_SetUpPlayerPrediction() must be called first! Note that CL_SetUpPlayerPrediction() must be called first!
pmove must be setup with world and solid entity hulls before calling pmove must be setup with world and solid entity hulls before calling
(via CL_PredictMove) (via CL_PredictMove)
===============
*/ */
void void
CL_SetSolidPlayers (int playernum) CL_SetSolidPlayers (int playernum)
@ -1119,13 +1081,11 @@ CL_SetSolidPlayers (int playernum)
/* /*
=============== CL_EmitEntities
CL_EmitEntities
Builds the visedicts array for cl.time Builds the visedicts array for cl.time
Made up of: clients, packet_entities, nails, and tents Made up of: clients, packet_entities, nails, and tents
===============
*/ */
void void
CL_EmitEntities (void) CL_EmitEntities (void)

View file

@ -54,24 +54,20 @@
cvar_t *cl_nodelta; cvar_t *cl_nodelta;
/* /*
=============================================================================== KEY BUTTONS
KEY BUTTONS Continuous button event tracking is complicated by the fact that two
different input sources (say, mouse button 1 and the control key) can
both press the same button, but the button should only be released when
both of the pressing key have been released.
Continuous button event tracking is complicated by the fact that two different When a key event issues a button command (+forward, +attack, etc), it
input sources (say, mouse button 1 and the control key) can both press the appends its key number as a parameter to the command so it can be
same button, but the button should only be released when both of the matched up with the release.
pressing key have been released.
When a key event issues a button command (+forward, +attack, etc), it appends state bit 0 is the current state of the key
its key number as a parameter to the command so it can be matched up with state bit 1 is edge triggered on the up to down transition
the release. state bit 2 is edge triggered on the down to up transition
state bit 0 is the current state of the key
state bit 1 is edge triggered on the up to down transition
state bit 2 is edge triggered on the down to up transition
===============================================================================
*/ */
@ -365,14 +361,12 @@ IN_Impulse (void)
} }
/* /*
=============== CL_KeyState
CL_KeyState
Returns 0.25 if a key was pressed and released during the frame, Returns 0.25 if a key was pressed and released during the frame,
0.5 if it was pressed and held 0.5 if it was pressed and held
0 if held then released, and 0 if held then released, and
1.0 if held for the entire time 1.0 if held for the entire time
===============
*/ */
float float
CL_KeyState (kbutton_t *key) CL_KeyState (kbutton_t *key)
@ -434,11 +428,9 @@ cvar_t *cl_anglespeedkey;
/* /*
================ CL_AdjustAngles
CL_AdjustAngles
Moves the local angle positions Moves the local angle positions
================
*/ */
void void
CL_AdjustAngles (void) CL_AdjustAngles (void)
@ -488,11 +480,9 @@ CL_AdjustAngles (void)
} }
/* /*
================ CL_BaseMove
CL_BaseMove
Send the intended movement message to the server Send the intended movement message to the server
================
*/ */
void void
CL_BaseMove (usercmd_t *cmd) CL_BaseMove (usercmd_t *cmd)
@ -539,9 +529,7 @@ MakeChar (int i)
} }
/* /*
============== CL_FinishMove
CL_FinishMove
==============
*/ */
void void
CL_FinishMove (usercmd_t *cmd) CL_FinishMove (usercmd_t *cmd)
@ -598,9 +586,7 @@ CL_FinishMove (usercmd_t *cmd)
} }
/* /*
================= CL_SendCmd
CL_SendCmd
=================
*/ */
void void
CL_SendCmd (void) CL_SendCmd (void)
@ -700,9 +686,7 @@ CL_SendCmd (void)
/* /*
============ CL_InitInput
CL_InitInput
============
*/ */
void void
CL_Input_Init (void) CL_Input_Init (void)
@ -755,10 +739,9 @@ CL_Input_Init_Cvars (void)
extern qboolean keydown[256]; extern qboolean keydown[256];
/* /*
============ CL_ClearStates
CL_ClearStates
============ Generate key up event for each key that is down
Generate key up event for each key that is down
*/ */
void void
CL_ClearStates (void) CL_ClearStates (void)

View file

@ -194,12 +194,10 @@ CL_CalcNet (void)
//============================================================================= //=============================================================================
/* /*
=============== CL_CheckOrDownloadFile
CL_CheckOrDownloadFile
Returns true if the file exists, otherwise it attempts Returns true if the file exists, otherwise it attempts
to start a download from the server. to start a download from the server.
===============
*/ */
qboolean qboolean
CL_CheckOrDownloadFile (char *filename) CL_CheckOrDownloadFile (char *filename)
@ -251,9 +249,7 @@ CL_CheckOrDownloadFile (char *filename)
} }
/* /*
================= Model_NextDownload
Model_NextDownload
=================
*/ */
void void
Model_NextDownload (void) Model_NextDownload (void)
@ -316,9 +312,7 @@ Model_NextDownload (void)
} }
/* /*
================= Sound_NextDownload
Sound_NextDownload
=================
*/ */
void void
Sound_NextDownload (void) Sound_NextDownload (void)
@ -360,9 +354,7 @@ Sound_NextDownload (void)
/* /*
====================== CL_RequestNextDownload
CL_RequestNextDownload
======================
*/ */
void void
CL_RequestNextDownload (void) CL_RequestNextDownload (void)
@ -386,11 +378,9 @@ CL_RequestNextDownload (void)
} }
/* /*
===================== CL_ParseDownload
CL_ParseDownload
A download message has been received from the server A download message has been received from the server
=====================
*/ */
void void
CL_ParseDownload (void) CL_ParseDownload (void)
@ -597,11 +587,7 @@ CL_StopUpload (void)
} }
/* /*
===================================================================== SERVER CONNECTING MESSAGES
SERVER CONNECTING MESSAGES
=====================================================================
*/ */
void Draw_ClearCache (void); void Draw_ClearCache (void);
@ -609,9 +595,7 @@ void Draw_ClearCache (void);
void CL_ClearBaselines (void); // LordHavoc: BIG BUG-FIX! void CL_ClearBaselines (void); // LordHavoc: BIG BUG-FIX!
/* /*
================== CL_ParseServerData
CL_ParseServerData
==================
*/ */
void void
CL_ParseServerData (void) CL_ParseServerData (void)
@ -724,9 +708,7 @@ CL_ClearBaselines (void)
} }
/* /*
================== CL_ParseSoundlist
CL_ParseSoundlist
==================
*/ */
void void
CL_ParseSoundlist (void) CL_ParseSoundlist (void)
@ -765,9 +747,7 @@ CL_ParseSoundlist (void)
} }
/* /*
================== CL_ParseModellist
CL_ParseModellist
==================
*/ */
void void
CL_ParseModellist (void) CL_ParseModellist (void)
@ -820,9 +800,7 @@ CL_ParseModellist (void)
} }
/* /*
================== CL_ParseBaseline
CL_ParseBaseline
==================
*/ */
void void
CL_ParseBaseline (entity_state_t *es) CL_ParseBaseline (entity_state_t *es)
@ -849,12 +827,10 @@ CL_ParseBaseline (entity_state_t *es)
/* /*
===================== CL_ParseStatic
CL_ParseStatic
Static entities are non-interactive world objects Static entities are non-interactive world objects
like torches like torches
=====================
*/ */
void void
CL_ParseStatic (void) CL_ParseStatic (void)
@ -881,9 +857,7 @@ CL_ParseStatic (void)
} }
/* /*
=================== CL_ParseStaticSound
CL_ParseStaticSound
===================
*/ */
void void
CL_ParseStaticSound (void) CL_ParseStaticSound (void)
@ -904,17 +878,11 @@ CL_ParseStaticSound (void)
/* /*
===================================================================== ACTION MESSAGES
ACTION MESSAGES
=====================================================================
*/ */
/* /*
================== CL_ParseStartSoundPacket
CL_ParseStartSoundPacket
==================
*/ */
void void
CL_ParseStartSoundPacket (void) CL_ParseStartSoundPacket (void)
@ -955,11 +923,9 @@ CL_ParseStartSoundPacket (void)
/* /*
================== CL_ParseClientdata
CL_ParseClientdata
Server information pertaining to this client only, sent every frame Server information pertaining to this client only, sent every frame
==================
*/ */
void void
CL_ParseClientdata (void) CL_ParseClientdata (void)
@ -995,9 +961,7 @@ CL_ParseClientdata (void)
} }
/* /*
============== CL_UpdateUserinfo
CL_UpdateUserinfo
==============
*/ */
void void
CL_ProcessUserInfo (int slot, player_info_t *player) CL_ProcessUserInfo (int slot, player_info_t *player)
@ -1021,9 +985,7 @@ CL_ProcessUserInfo (int slot, player_info_t *player)
} }
/* /*
============== CL_UpdateUserinfo
CL_UpdateUserinfo
==============
*/ */
void void
CL_UpdateUserinfo (void) CL_UpdateUserinfo (void)
@ -1045,9 +1007,7 @@ CL_UpdateUserinfo (void)
} }
/* /*
============== CL_SetInfo
CL_SetInfo
==============
*/ */
void void
CL_SetInfo (void) CL_SetInfo (void)
@ -1076,9 +1036,7 @@ CL_SetInfo (void)
} }
/* /*
============== CL_ServerInfo
CL_ServerInfo
==============
*/ */
void void
CL_ServerInfo (void) CL_ServerInfo (void)
@ -1097,9 +1055,7 @@ CL_ServerInfo (void)
} }
/* /*
===================== CL_SetStat
CL_SetStat
=====================
*/ */
void void
CL_SetStat (int stat, int value) CL_SetStat (int stat, int value)
@ -1129,9 +1085,7 @@ CL_SetStat (int stat, int value)
} }
/* /*
============== CL_MuzzleFlash
CL_MuzzleFlash
==============
*/ */
void void
CL_MuzzleFlash (void) CL_MuzzleFlash (void)
@ -1163,10 +1117,9 @@ CL_MuzzleFlash (void)
#define SHOWNET(x) if (cl_shownet->int_val == 2) Con_Printf ("%3i:%s\n", msg_readcount-1, x); #define SHOWNET(x) if (cl_shownet->int_val == 2) Con_Printf ("%3i:%s\n", msg_readcount-1, x);
/* /*
===================== CL_ParseServerMessage
CL_ParseServerMessage
=====================
*/ */
int received_framecount; int received_framecount;
void void

View file

@ -46,13 +46,11 @@ cvar_t *cl_pushlatency;
extern frame_t *view_frame; extern frame_t *view_frame;
/* /*
================= CL_NudgePosition
CL_NudgePosition
If pmove.origin is in a solid position, If pmove.origin is in a solid position,
try nudging slightly on all axis to try nudging slightly on all axis to
allow for the cut precision of the net coordinates allow for the cut precision of the net coordinates
=================
*/ */
void void
CL_NudgePosition (void) CL_NudgePosition (void)
@ -78,9 +76,7 @@ CL_NudgePosition (void)
} }
/* /*
============== CL_PredictUsercmd
CL_PredictUsercmd
==============
*/ */
void void
CL_PredictUsercmd (player_state_t * from, player_state_t * to, usercmd_t *u, CL_PredictUsercmd (player_state_t * from, player_state_t * to, usercmd_t *u,
@ -129,9 +125,7 @@ CL_PredictUsercmd (player_state_t * from, player_state_t * to, usercmd_t *u,
/* /*
============== CL_PredictMove
CL_PredictMove
==============
*/ */
void void
CL_PredictMove (void) CL_PredictMove (void)
@ -239,9 +233,7 @@ CL_PredictMove (void)
/* /*
============== CL_Prediction_Init_Cvars
CL_Prediction_Init_Cvars
==============
*/ */
void void
CL_Prediction_Init_Cvars (void) CL_Prediction_Init_Cvars (void)

View file

@ -91,11 +91,7 @@ Sys_DebugLog (char *file, char *fmt, ...)
}; };
/* /*
=============================================================================== FILE IO
FILE IO
===============================================================================
*/ */
int int
@ -118,17 +114,11 @@ Sys_FileTime (char *path)
/* /*
=============================================================================== SYSTEM IO
SYSTEM IO
===============================================================================
*/ */
/* /*
================ Sys_MakeCodeWriteable
Sys_MakeCodeWriteable
================
*/ */
void void
Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length) Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
@ -160,9 +150,7 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
/* /*
================ Sys_Init
Sys_Init
================
*/ */
void void
Sys_Init (void) Sys_Init (void)

View file

@ -224,9 +224,7 @@ main (int c, char **v)
/* /*
================ Sys_MakeCodeWriteable
Sys_MakeCodeWriteable
================
*/ */
void void
Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length) Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)

View file

@ -94,17 +94,11 @@ Sys_DebugLog (char *file, char *fmt, ...)
}; };
/* /*
=============================================================================== FILE IO
FILE IO
===============================================================================
*/ */
/* /*
================ wfilelength
wfilelength
================
*/ */
int int
wfilelength (QFile *f) wfilelength (QFile *f)
@ -144,17 +138,11 @@ Sys_FileTime (char *path)
/* /*
=============================================================================== SYSTEM IO
SYSTEM IO
===============================================================================
*/ */
/* /*
================ Sys_MakeCodeWriteable
Sys_MakeCodeWriteable
================
*/ */
void void
Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length) Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
@ -169,9 +157,7 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
/* /*
================ Sys_Init
Sys_Init
================
*/ */
void void
@ -405,17 +391,11 @@ IN_SendKeyEvents (void)
/* /*
============================================================================== WINDOWS CRAP
WINDOWS CRAP
==============================================================================
*/ */
/* /*
================== WinMain
WinMain
==================
*/ */
void void
SleepUntilInput (int time) SleepUntilInput (int time)
@ -427,9 +407,7 @@ SleepUntilInput (int time)
/* /*
================== WinMain
WinMain
==================
*/ */
HINSTANCE global_hInstance; HINSTANCE global_hInstance;
int global_nCmdShow; int global_nCmdShow;

View file

@ -72,13 +72,11 @@ hashtab_t *cmd_hash;
//============================================================================= //=============================================================================
/* /*
============ Cmd_Wait_f
Cmd_Wait_f
Causes execution of the remainder of the command buffer to be delayed until Causes execution of the remainder of the command buffer to be delayed until
next frame. This allows commands like: next frame. This allows commands like:
bind g "impulse 5 ; +attack ; wait ; -attack ; impulse 2" bind g "impulse 5 ; +attack ; wait ; -attack ; impulse 2"
============
*/ */
void void
Cmd_Wait_f (void) Cmd_Wait_f (void)
@ -87,20 +85,14 @@ Cmd_Wait_f (void)
} }
/* /*
=============================================================================
COMMAND BUFFER COMMAND BUFFER
=============================================================================
*/ */
sizebuf_t cmd_text; sizebuf_t cmd_text;
byte cmd_text_buf[8192]; byte cmd_text_buf[8192];
/* /*
============ Cbuf_Init
Cbuf_Init
============
*/ */
void void
Cbuf_Init (void) Cbuf_Init (void)
@ -110,11 +102,9 @@ Cbuf_Init (void)
} }
/* /*
============ Cbuf_AddText
Cbuf_AddText
Adds command text at the end of the buffer Adds command text at the end of the buffer
============
*/ */
void void
Cbuf_AddText (char *text) Cbuf_AddText (char *text)
@ -132,13 +122,11 @@ Cbuf_AddText (char *text)
/* /*
============ Cbuf_InsertText
Cbuf_InsertText
Adds command text immediately after the current command Adds command text immediately after the current command
Adds a \n to the text Adds a \n to the text
TODO: Can we just read the buffer in the reverse order? TODO: Can we just read the buffer in the reverse order?
============
*/ */
void void
Cbuf_InsertText (char *text) Cbuf_InsertText (char *text)
@ -253,22 +241,16 @@ Cbuf_Execute_Sets (void)
} }
/* /*
==============================================================================
SCRIPT COMMANDS SCRIPT COMMANDS
==============================================================================
*/ */
/* /*
=============== Cmd_StuffCmds_f
Cmd_StuffCmds_f
Adds command line parameters as script statements Adds command line parameters as script statements
Commands lead with a +, and continue until a - or another + Commands lead with a +, and continue until a - or another +
quake +prog jctest.qp +cmd amlev1 quake +prog jctest.qp +cmd amlev1
quake -nosound +cmd amlev1 quake -nosound +cmd amlev1
===============
*/ */
void void
Cmd_StuffCmds_f (void) Cmd_StuffCmds_f (void)
@ -343,9 +325,7 @@ Cmd_Exec_File (char *path)
} }
/* /*
=============== Cmd_Exec_f
Cmd_Exec_f
===============
*/ */
void void
Cmd_Exec_f (void) Cmd_Exec_f (void)
@ -374,11 +354,9 @@ Cmd_Exec_f (void)
/* /*
=============== Cmd_Echo_f
Cmd_Echo_f
Just prints the rest of the line to the console Just prints the rest of the line to the console
===============
*/ */
void void
Cmd_Echo_f (void) Cmd_Echo_f (void)
@ -391,11 +369,9 @@ Cmd_Echo_f (void)
} }
/* /*
=============== Cmd_Alias_f
Cmd_Alias_f
Creates a new command that executes a command string (possibly ; seperated) Creates a new command that executes a command string (possibly ; seperated)
===============
*/ */
char * char *
@ -489,11 +465,7 @@ Cmd_UnAlias_f (void)
} }
/* /*
=============================================================================
COMMAND EXECUTION COMMAND EXECUTION
=============================================================================
*/ */
typedef struct cmd_function_s { typedef struct cmd_function_s {
@ -516,9 +488,7 @@ static char *cmd_args = NULL;
static cmd_function_t *cmd_functions; // possible commands to execute static cmd_function_t *cmd_functions; // possible commands to execute
/* /*
============ Cmd_Argc
Cmd_Argc
============
*/ */
int int
Cmd_Argc (void) Cmd_Argc (void)
@ -527,9 +497,7 @@ Cmd_Argc (void)
} }
/* /*
============ Cmd_Argv
Cmd_Argv
============
*/ */
char * char *
Cmd_Argv (int arg) Cmd_Argv (int arg)
@ -540,11 +508,9 @@ Cmd_Argv (int arg)
} }
/* /*
============ Cmd_Args
Cmd_Args
Returns a single string containing argv(1) to argv(argc()-1) Returns a single string containing argv(1) to argv(argc()-1)
============
*/ */
char * char *
Cmd_Args (void) Cmd_Args (void)
@ -556,11 +522,9 @@ Cmd_Args (void)
/* /*
============ Cmd_TokenizeString
Cmd_TokenizeString
Parses the given string into command line tokens. Parses the given string into command line tokens.
============
*/ */
void void
Cmd_TokenizeString (char *text) Cmd_TokenizeString (char *text)
@ -649,9 +613,7 @@ Cmd_AddCommand (char *cmd_name, xcommand_t function, char *description)
} }
/* /*
============ Cmd_Exists
Cmd_Exists
============
*/ */
qboolean qboolean
Cmd_Exists (char *cmd_name) Cmd_Exists (char *cmd_name)
@ -669,9 +631,7 @@ Cmd_Exists (char *cmd_name)
/* /*
============ Cmd_CompleteCommand
Cmd_CompleteCommand
============
*/ */
char * char *
Cmd_CompleteCommand (char *partial) Cmd_CompleteCommand (char *partial)
@ -705,12 +665,10 @@ Cmd_CompleteCommand (char *partial)
} }
/* /*
============ Cmd_ExpandVariables
Cmd_ExpandVariables
Expand $fov-like expressions Expand $fov-like expressions
FIXME: better handling of buffer overflows? FIXME: better handling of buffer overflows?
============
*/ */
// dest must point to a 1024-byte buffer // dest must point to a 1024-byte buffer
void void
@ -778,12 +736,10 @@ Cmd_ExpandVariables (char *data, char *dest)
} }
/* /*
============ Cmd_ExecuteString
Cmd_ExecuteString
A complete command line has been parsed, so try to execute it A complete command line has been parsed, so try to execute it
FIXME: lookupnoadd the token to speed search? FIXME: lookupnoadd the token to speed search?
============
*/ */
void void
Cmd_ExecuteString (char *text) Cmd_ExecuteString (char *text)
@ -831,12 +787,10 @@ Cmd_ExecuteString (char *text)
/* /*
================ Cmd_CheckParm
Cmd_CheckParm
Returns the position (1 to argc-1) in the command's argument list Returns the position (1 to argc-1) in the command's argument list
where the given parameter apears, or 0 if not present where the given parameter apears, or 0 if not present
================
*/ */
int int
Cmd_CheckParm (char *parm) Cmd_CheckParm (char *parm)
@ -909,9 +863,7 @@ Cmd_Init_Hash (void)
} }
/* /*
============ Cmd_Init
Cmd_Init
============
*/ */
void void
Cmd_Init (void) Cmd_Init (void)
@ -934,11 +886,9 @@ Cmd_Init (void)
char com_token[MAX_COM_TOKEN]; char com_token[MAX_COM_TOKEN];
/* /*
============== COM_Parse
COM_Parse
Parse a token out of a string Parse a token out of a string
==============
*/ */
char * char *
COM_Parse (char *data) COM_Parse (char *data)

View file

@ -51,14 +51,12 @@ void COM_Path_f (void);
/* /*
================ COM_CheckRegistered
COM_CheckRegistered
Looks for the pop.txt file and verifies it. Looks for the pop.txt file and verifies it.
Sets the "registered" cvar. Sets the "registered" cvar.
Immediately exits out if an alternate game was attempted to be started without Immediately exits out if an alternate game was attempted to be started
being registered. without being registered.
================
*/ */
void void
COM_CheckRegistered (void) COM_CheckRegistered (void)
@ -83,9 +81,7 @@ COM_CheckRegistered (void)
/* /*
================ COM_Init
COM_Init
================
*/ */
void void
COM_Init (void) COM_Init (void)

View file

@ -88,9 +88,7 @@ Key_ClearTyping (void)
} }
/* /*
================ Con_ToggleConsole_f
Con_ToggleConsole_f
================
*/ */
void void
Con_ToggleConsole_f (void) Con_ToggleConsole_f (void)
@ -107,9 +105,7 @@ Con_ToggleConsole_f (void)
} }
/* /*
================ Con_ToggleChat_f
Con_ToggleChat_f
================
*/ */
void void
Con_ToggleChat_f (void) Con_ToggleChat_f (void)
@ -126,9 +122,7 @@ Con_ToggleChat_f (void)
} }
/* /*
================ Con_Clear_f
Con_Clear_f
================
*/ */
void void
Con_Clear_f (void) Con_Clear_f (void)
@ -142,9 +136,7 @@ Con_Clear_f (void)
/* /*
================ Con_ClearNotify
Con_ClearNotify
================
*/ */
void void
Con_ClearNotify (void) Con_ClearNotify (void)
@ -157,9 +149,7 @@ Con_ClearNotify (void)
/* /*
================ Con_MessageMode_f
Con_MessageMode_f
================
*/ */
void void
Con_MessageMode_f (void) Con_MessageMode_f (void)
@ -171,9 +161,7 @@ Con_MessageMode_f (void)
} }
/* /*
================ Con_MessageMode2_f
Con_MessageMode2_f
================
*/ */
void void
Con_MessageMode2_f (void) Con_MessageMode2_f (void)
@ -185,10 +173,7 @@ Con_MessageMode2_f (void)
} }
/* /*
================ Con_Resize
Con_Resize
================
*/ */
void void
Con_Resize (console_t *con) Con_Resize (console_t *con)
@ -241,11 +226,9 @@ Con_Resize (console_t *con)
/* /*
================ Con_CheckResize
Con_CheckResize
If the line width has changed, reformat the buffer. If the line width has changed, reformat the buffer.
================
*/ */
void void
Con_CheckResize (void) Con_CheckResize (void)
@ -256,9 +239,7 @@ Con_CheckResize (void)
/* /*
================ Con_Init
Con_Init
================
*/ */
void void
Con_Init (void) Con_Init (void)
@ -290,9 +271,7 @@ Con_Init_Cvars (void)
/* /*
=============== Con_Linefeed
Con_Linefeed
===============
*/ */
void void
Con_Linefeed (void) Con_Linefeed (void)
@ -308,13 +287,11 @@ Con_Linefeed (void)
} }
/* /*
================ Con_Print
Con_Print
Handles cursor positioning, line wrapping, etc Handles cursor positioning, line wrapping, etc
All console printing must go through this in order to be logged to disk All console printing must go through this in order to be logged to disk
If no console is visible, the notify window will pop up. If no console is visible, the notify window will pop up.
================
*/ */
void void
Con_Print (char *txt) Con_Print (char *txt)
@ -380,11 +357,9 @@ Con_Print (char *txt)
/* /*
================ Con_Printf
Con_Printf
Handles cursor positioning, line wrapping, etc Handles cursor positioning, line wrapping, etc
================
*/ */
#define MAXPRINTMSG 4096 #define MAXPRINTMSG 4096
@ -413,11 +388,9 @@ Con_Printf (char *fmt, ...)
} }
/* /*
================ Con_DPrintf
Con_DPrintf
A Con_Printf that only shows up if the "developer" cvar is set A Con_Printf that only shows up if the "developer" cvar is set
================
*/ */
void void
Con_DPrintf (char *fmt, ...) Con_DPrintf (char *fmt, ...)
@ -437,20 +410,14 @@ Con_DPrintf (char *fmt, ...)
} }
/* /*
============================================================================== DRAWING
DRAWING
==============================================================================
*/ */
/* /*
================ Con_DrawInput
Con_DrawInput
The input line scrolls horizontally if typing goes beyond the right edge The input line scrolls horizontally if typing goes beyond the right edge
================
*/ */
void void
Con_DrawInput (void) Con_DrawInput (void)
@ -487,11 +454,9 @@ Con_DrawInput (void)
/* /*
================ Con_DrawNotify
Con_DrawNotify
Draws the last few lines of output transparently over the game top Draws the last few lines of output transparently over the game top
================
*/ */
void void
Con_DrawNotify (void) Con_DrawNotify (void)
@ -555,11 +520,9 @@ Con_DrawNotify (void)
} }
/* /*
================ Con_DrawConsole
Con_DrawConsole
Draws the console with the solid background Draws the console with the solid background
================
*/ */
void void
Con_DrawConsole (int lines) Con_DrawConsole (int lines)

View file

@ -58,9 +58,7 @@ hashtab_t *cvar_hash;
hashtab_t *calias_hash; hashtab_t *calias_hash;
/* /*
============ Cvar_FindVar
Cvar_FindVar
============
*/ */
cvar_t * cvar_t *
Cvar_FindVar (char *var_name) Cvar_FindVar (char *var_name)
@ -106,9 +104,7 @@ Cvar_Alias_Get (char *name, cvar_t *cvar)
} }
/* /*
============ Cvar_VariableValue
Cvar_VariableValue
============
*/ */
float float
Cvar_VariableValue (char *var_name) Cvar_VariableValue (char *var_name)
@ -125,9 +121,7 @@ Cvar_VariableValue (char *var_name)
/* /*
============ Cvar_VariableString
Cvar_VariableString
============
*/ */
char * char *
Cvar_VariableString (char *var_name) Cvar_VariableString (char *var_name)
@ -144,9 +138,7 @@ Cvar_VariableString (char *var_name)
/* /*
============ Cvar_CompleteVariable
Cvar_CompleteVariable
============
*/ */
char * char *
Cvar_CompleteVariable (char *partial) Cvar_CompleteVariable (char *partial)
@ -187,9 +179,7 @@ Cvar_CompleteVariable (char *partial)
void Cvar_Info (cvar_t *var); void Cvar_Info (cvar_t *var);
/* /*
============ Cvar_Set
Cvar_Set
============
*/ */
void void
Cvar_Set (cvar_t *var, char *value) Cvar_Set (cvar_t *var, char *value)
@ -235,9 +225,7 @@ Cvar_SetROM (cvar_t *var, char *value)
} }
/* /*
============ Cvar_SetValue
Cvar_SetValue
============
*/ */
// 1999-09-07 weird cvar zeros fix by Maddes // 1999-09-07 weird cvar zeros fix by Maddes
void void
@ -254,11 +242,9 @@ Cvar_SetValue (cvar_t *var, float value)
} }
/* /*
============ Cvar_Command
Cvar_Command
Handles variable inspection and changing from the console Handles variable inspection and changing from the console
============
*/ */
qboolean qboolean
Cvar_Command (void) Cvar_Command (void)
@ -284,12 +270,10 @@ Cvar_Command (void)
/* /*
============ Cvar_WriteVariables
Cvar_WriteVariables
Writes lines containing "set variable value" for all variables Writes lines containing "set variable value" for all variables
with the archive flag set to true. with the archive flag set to true.
============
*/ */
void void
Cvar_WriteVariables (QFile *f) Cvar_WriteVariables (QFile *f)

View file

@ -43,10 +43,7 @@ int vstartscan;
vec3_t transformed_modelorg; vec3_t transformed_modelorg;
/* /*
============== D_DrawPoly
D_DrawPoly
==============
*/ */
void void
D_DrawPoly (void) D_DrawPoly (void)
@ -56,9 +53,7 @@ D_DrawPoly (void)
/* /*
============= D_MipLevelForScale
D_MipLevelForScale
=============
*/ */
int int
D_MipLevelForScale (float scale) D_MipLevelForScale (float scale)
@ -82,9 +77,7 @@ D_MipLevelForScale (float scale)
/* /*
============== D_DrawSolidSurface
D_DrawSolidSurface
==============
*/ */
// FIXME: clean this up // FIXME: clean this up
@ -122,9 +115,7 @@ D_DrawSolidSurface (surf_t *surf, int color)
/* /*
============== D_CalcGradients
D_CalcGradients
==============
*/ */
void void
D_CalcGradients (msurface_t *pface) D_CalcGradients (msurface_t *pface)
@ -174,9 +165,7 @@ D_CalcGradients (msurface_t *pface)
/* /*
============== D_DrawSurfaces
D_DrawSurfaces
==============
*/ */
void void
D_DrawSurfaces (void) D_DrawSurfaces (void)

View file

@ -34,9 +34,7 @@
/* /*
================ D_FillRect
D_FillRect
================
*/ */
void void
D_FillRect (vrect_t *rect, int color) D_FillRect (vrect_t *rect, int color)

View file

@ -52,9 +52,7 @@ void (*d_drawspans) (espan_t *pspan);
/* /*
=============== D_Init
D_Init
===============
*/ */
void void
D_Init (void) D_Init (void)
@ -77,9 +75,7 @@ D_Init_Cvars (void)
} }
/* /*
=============== D_CopyRects
D_CopyRects
===============
*/ */
void void
D_CopyRects (vrect_t *prects, int transparent) D_CopyRects (vrect_t *prects, int transparent)
@ -97,9 +93,7 @@ D_CopyRects (vrect_t *prects, int transparent)
/* /*
=============== D_EnableBackBufferAccess
D_EnableBackBufferAccess
===============
*/ */
void void
D_EnableBackBufferAccess (void) D_EnableBackBufferAccess (void)
@ -110,9 +104,7 @@ D_EnableBackBufferAccess (void)
/* /*
=============== D_TurnZOn
D_TurnZOn
===============
*/ */
void void
D_TurnZOn (void) D_TurnZOn (void)
@ -122,9 +114,7 @@ D_TurnZOn (void)
/* /*
=============== D_DisableBackBufferAccess
D_DisableBackBufferAccess
===============
*/ */
void void
D_DisableBackBufferAccess (void) D_DisableBackBufferAccess (void)
@ -134,9 +124,7 @@ D_DisableBackBufferAccess (void)
/* /*
=============== D_SetupFrame
D_SetupFrame
===============
*/ */
void void
D_SetupFrame (void) D_SetupFrame (void)
@ -175,9 +163,7 @@ D_SetupFrame (void)
/* /*
=============== D_UpdateRects
D_UpdateRects
===============
*/ */
void void
D_UpdateRects (vrect_t *prect) D_UpdateRects (vrect_t *prect)

View file

@ -41,9 +41,7 @@ int d_scantable[MAXHEIGHT];
short *zspantable[MAXHEIGHT]; short *zspantable[MAXHEIGHT];
/* /*
================ D_Patch
D_Patch
================
*/ */
void void
D_Patch (void) D_Patch (void)
@ -63,9 +61,7 @@ D_Patch (void)
/* /*
================ D_ViewChanged
D_ViewChanged
================
*/ */
void void
D_ViewChanged (void) D_ViewChanged (void)

View file

@ -33,9 +33,7 @@
#include "d_local.h" #include "d_local.h"
/* /*
============== D_EndParticles
D_EndParticles
==============
*/ */
void void
D_EndParticles (void) D_EndParticles (void)
@ -45,9 +43,7 @@ D_EndParticles (void)
/* /*
============== D_StartParticles
D_StartParticles
==============
*/ */
void void
D_StartParticles (void) D_StartParticles (void)
@ -59,9 +55,7 @@ D_StartParticles (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============== D_DrawParticle
D_DrawParticle
==============
*/ */
void void
D_DrawParticle (particle_t *pparticle) D_DrawParticle (particle_t *pparticle)

View file

@ -129,9 +129,7 @@ void D_PolysetScanLeftEdge (int height);
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ D_PolysetDraw
D_PolysetDraw
================
*/ */
void void
D_PolysetDraw (void) D_PolysetDraw (void)
@ -153,9 +151,7 @@ D_PolysetDraw (void)
/* /*
================ D_PolysetDrawFinalVerts
D_PolysetDrawFinalVerts
================
*/ */
void void
D_PolysetDrawFinalVerts (finalvert_t *fv, int numverts) D_PolysetDrawFinalVerts (finalvert_t *fv, int numverts)
@ -184,9 +180,7 @@ D_PolysetDrawFinalVerts (finalvert_t *fv, int numverts)
/* /*
================ D_DrawSubdiv
D_DrawSubdiv
================
*/ */
void void
D_DrawSubdiv (void) D_DrawSubdiv (void)
@ -241,9 +235,7 @@ D_DrawSubdiv (void)
/* /*
================ D_DrawNonSubdiv
D_DrawNonSubdiv
================
*/ */
void void
D_DrawNonSubdiv (void) D_DrawNonSubdiv (void)
@ -307,9 +299,7 @@ D_DrawNonSubdiv (void)
/* /*
================ D_PolysetRecursiveTriangle
D_PolysetRecursiveTriangle
================
*/ */
void void
D_PolysetRecursiveTriangle (int *lp1, int *lp2, int *lp3) D_PolysetRecursiveTriangle (int *lp1, int *lp2, int *lp3)
@ -391,9 +381,7 @@ D_PolysetRecursiveTriangle (int *lp1, int *lp2, int *lp3)
/* /*
================ D_PolysetUpdateTables
D_PolysetUpdateTables
================
*/ */
void void
D_PolysetUpdateTables (void) D_PolysetUpdateTables (void)
@ -415,9 +403,7 @@ D_PolysetUpdateTables (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
=================== D_PolysetScanLeftEdge
D_PolysetScanLeftEdge
====================
*/ */
void void
D_PolysetScanLeftEdge (int height) D_PolysetScanLeftEdge (int height)
@ -479,9 +465,7 @@ D_PolysetScanLeftEdge (int height)
/* /*
=================== D_PolysetSetUpForLineScan
D_PolysetSetUpForLineScan
====================
*/ */
void void
D_PolysetSetUpForLineScan (fixed8_t startvertu, fixed8_t startvertv, D_PolysetSetUpForLineScan (fixed8_t startvertu, fixed8_t startvertv,
@ -517,9 +501,7 @@ D_PolysetSetUpForLineScan (fixed8_t startvertu, fixed8_t startvertv,
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ D_PolysetCalcGradients
D_PolysetCalcGradients
================
*/ */
void void
D_PolysetCalcGradients (int skinwidth) D_PolysetCalcGradients (int skinwidth)
@ -601,9 +583,7 @@ InitGel (byte * palette)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ D_PolysetDrawSpans8
D_PolysetDrawSpans8
================
*/ */
void void
D_PolysetDrawSpans8 (spanpackage_t * pspanpackage) D_PolysetDrawSpans8 (spanpackage_t * pspanpackage)
@ -665,9 +645,7 @@ D_PolysetDrawSpans8 (spanpackage_t * pspanpackage)
/* /*
================ D_PolysetFillSpans8
D_PolysetFillSpans8
================
*/ */
void void
D_PolysetFillSpans8 (spanpackage_t * pspanpackage) D_PolysetFillSpans8 (spanpackage_t * pspanpackage)
@ -700,9 +678,7 @@ D_PolysetFillSpans8 (spanpackage_t * pspanpackage)
} }
/* /*
================ D_RasterizeAliasPolySmooth
D_RasterizeAliasPolySmooth
================
*/ */
void void
D_RasterizeAliasPolySmooth (void) D_RasterizeAliasPolySmooth (void)
@ -913,9 +889,7 @@ D_RasterizeAliasPolySmooth (void)
/* /*
================ D_PolysetSetEdgeTable
D_PolysetSetEdgeTable
================
*/ */
void void
D_PolysetSetEdgeTable (void) D_PolysetSetEdgeTable (void)

View file

@ -42,12 +42,10 @@ void D_DrawTurbulent8Span (void);
/* /*
============= D_WarpScreen
D_WarpScreen
// this performs a slight compression of the screen at the same time as this performs a slight compression of the screen at the same time as
// the sine warp, to keep the edges from wrapping the sine warp, to keep the edges from wrapping
=============
*/ */
void void
D_WarpScreen (void) D_WarpScreen (void)
@ -97,9 +95,7 @@ D_WarpScreen (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============= D_DrawTurbulent8Span
D_DrawTurbulent8Span
=============
*/ */
void void
D_DrawTurbulent8Span (void) D_DrawTurbulent8Span (void)
@ -122,9 +118,7 @@ D_DrawTurbulent8Span (void)
#endif // !USE_INTEL_ASM #endif // !USE_INTEL_ASM
/* /*
============= Turbulent8
Turbulent8
=============
*/ */
void void
Turbulent8 (espan_t *pspan) Turbulent8 (espan_t *pspan)
@ -259,9 +253,7 @@ Turbulent8 (espan_t *pspan)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============= D_DrawSpans8
D_DrawSpans8
=============
*/ */
void void
D_DrawSpans8 (espan_t *pspan) D_DrawSpans8 (espan_t *pspan)
@ -398,9 +390,7 @@ D_DrawSpans8 (espan_t *pspan)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============= D_DrawZSpans
D_DrawZSpans
=============
*/ */
void void
D_DrawZSpans (espan_t *pspan) D_DrawZSpans (espan_t *pspan)

View file

@ -38,9 +38,7 @@
/* /*
================= D_Sky_uv_To_st
D_Sky_uv_To_st
=================
*/ */
void void
D_Sky_uv_To_st (int u, int v, fixed16_t *s, fixed16_t *t) D_Sky_uv_To_st (int u, int v, fixed16_t *s, fixed16_t *t)
@ -70,9 +68,7 @@ D_Sky_uv_To_st (int u, int v, fixed16_t *s, fixed16_t *t)
/* /*
================= D_DrawSkyScans8
D_DrawSkyScans8
=================
*/ */
void void
D_DrawSkyScans8 (espan_t *pspan) D_DrawSkyScans8 (espan_t *pspan)

View file

@ -39,9 +39,7 @@ static sspan_t *sprite_spans;
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
===================== D_SpriteDrawSpans
D_SpriteDrawSpans
=====================
*/ */
void void
D_SpriteDrawSpans (sspan_t *pspan) D_SpriteDrawSpans (sspan_t *pspan)
@ -200,9 +198,7 @@ D_SpriteDrawSpans (sspan_t *pspan)
/* /*
===================== D_SpriteScanLeftEdge
D_SpriteScanLeftEdge
=====================
*/ */
void void
D_SpriteScanLeftEdge (void) D_SpriteScanLeftEdge (void)
@ -260,9 +256,7 @@ D_SpriteScanLeftEdge (void)
/* /*
===================== D_SpriteScanRightEdge
D_SpriteScanRightEdge
=====================
*/ */
void void
D_SpriteScanRightEdge (void) D_SpriteScanRightEdge (void)
@ -340,9 +334,7 @@ D_SpriteScanRightEdge (void)
/* /*
===================== D_SpriteCalculateGradients
D_SpriteCalculateGradients
=====================
*/ */
void void
D_SpriteCalculateGradients (void) D_SpriteCalculateGradients (void)
@ -387,9 +379,7 @@ D_SpriteCalculateGradients (void)
/* /*
===================== D_DrawSprite
D_DrawSprite
=====================
*/ */
void void
D_DrawSprite (void) D_DrawSprite (void)

View file

@ -96,10 +96,7 @@ D_ClearCacheGuard (void)
/* /*
================ D_InitCaches
D_InitCaches
================
*/ */
void void
D_InitCaches (void *buffer, int size) D_InitCaches (void *buffer, int size)
@ -120,9 +117,7 @@ D_InitCaches (void *buffer, int size)
/* /*
================== D_FlushCaches
D_FlushCaches
==================
*/ */
void void
D_FlushCaches (void) D_FlushCaches (void)
@ -144,9 +139,7 @@ D_FlushCaches (void)
} }
/* /*
================= D_SCAlloc
D_SCAlloc
=================
*/ */
surfcache_t * surfcache_t *
D_SCAlloc (int width, int size) D_SCAlloc (int width, int size)
@ -229,9 +222,7 @@ D_SCAlloc (int width, int size)
/* /*
================= D_SCDump
D_SCDump
=================
*/ */
void void
D_SCDump (void) D_SCDump (void)
@ -279,9 +270,7 @@ D_log2 (int num)
//============================================================================= //=============================================================================
/* /*
================ D_CacheSurface
D_CacheSurface
================
*/ */
surfcache_t * surfcache_t *
D_CacheSurface (msurface_t *surface, int miplevel) D_CacheSurface (msurface_t *surface, int miplevel)

View file

@ -34,9 +34,7 @@
/* /*
===================== D_DrawZPoint
D_DrawZPoint
=====================
*/ */
void void
D_DrawZPoint (void) D_DrawZPoint (void)

View file

@ -90,9 +90,7 @@ Draw_ClearCache (void)
} }
/* /*
================ Draw_CachePic
Draw_CachePic
================
*/ */
qpic_t * qpic_t *
Draw_CachePic (char *path) Draw_CachePic (char *path)
@ -185,9 +183,7 @@ Draw_TextBox (int x, int y, int width, int lines)
} }
/* /*
=============== Draw_Init
Draw_Init
===============
*/ */
void void
Draw_Init (void) Draw_Init (void)
@ -212,13 +208,11 @@ Draw_Init_Cvars (void)
/* /*
================ Draw_Character8
Draw_Character8
Draws one 8*8 graphics character with 0 being transparent. Draws one 8*8 graphics character with 0 being transparent.
It can be clipped to the top of the screen to allow the console to be It can be clipped to the top of the screen to allow the console to be
smoothly scrolled off. smoothly scrolled off.
================
*/ */
void void
Draw_Character8 (int x, int y, int num) Draw_Character8 (int x, int y, int num)
@ -304,9 +298,7 @@ Draw_Character8 (int x, int y, int num)
} }
/* /*
================ Draw_String8
Draw_String8
================
*/ */
void void
Draw_String8 (int x, int y, char *str) Draw_String8 (int x, int y, char *str)
@ -319,9 +311,7 @@ Draw_String8 (int x, int y, char *str)
} }
/* /*
================ Draw_AltString8
Draw_AltString8
================
*/ */
void void
Draw_AltString8 (int x, int y, char *str) Draw_AltString8 (int x, int y, char *str)
@ -377,9 +367,7 @@ Draw_Crosshair (void)
} }
/* /*
============= Draw_Pic
Draw_Pic
=============
*/ */
void void
Draw_Pic (int x, int y, qpic_t *pic) Draw_Pic (int x, int y, qpic_t *pic)
@ -452,9 +440,7 @@ Draw_Pic (int x, int y, qpic_t *pic)
/* /*
============= Draw_SubPic
Draw_SubPic
=============
*/ */
void void
Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width, Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
@ -495,9 +481,7 @@ Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
} }
/* /*
============= Draw_TransPicTranslate
Draw_TransPicTranslate
=============
*/ */
void void
Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte * translation) Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte * translation)
@ -570,10 +554,7 @@ Draw_TransPicTranslate (int x, int y, qpic_t *pic, byte * translation)
/* /*
================ Draw_ConsoleBackground
Draw_ConsoleBackground
================
*/ */
void void
Draw_ConsoleBackground (int lines) Draw_ConsoleBackground (int lines)
@ -641,9 +622,7 @@ Draw_ConsoleBackground (int lines)
/* /*
============== R_DrawRect8
R_DrawRect8
==============
*/ */
void void
R_DrawRect8 (vrect_t *prect, int rowbytes, byte * psrc, int transparent) R_DrawRect8 (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
@ -683,9 +662,7 @@ R_DrawRect8 (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
/* /*
============== R_DrawRect16
R_DrawRect16
==============
*/ */
void void
R_DrawRect16 (vrect_t *prect, int rowbytes, byte * psrc, int transparent) R_DrawRect16 (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
@ -733,12 +710,10 @@ R_DrawRect16 (vrect_t *prect, int rowbytes, byte * psrc, int transparent)
/* /*
============= Draw_TileClear
Draw_TileClear
This repeats a 64*64 tile graphic to fill the screen around a sized down This repeats a 64*64 tile graphic to fill the screen around a sized down
refresh window. refresh window.
=============
*/ */
void void
Draw_TileClear (int x, int y, int w, int h) Draw_TileClear (int x, int y, int w, int h)
@ -804,11 +779,9 @@ Draw_TileClear (int x, int y, int w, int h)
/* /*
============= Draw_Fill
Draw_Fill
Fills a box of pixels with a single color Fills a box of pixels with a single color
=============
*/ */
void void
Draw_Fill (int x, int y, int w, int h, int c) Draw_Fill (int x, int y, int w, int h, int c)
@ -841,10 +814,7 @@ Draw_Fill (int x, int y, int w, int h, int c)
//============================================================================= //=============================================================================
/* /*
================ Draw_FadeScreen
Draw_FadeScreen
================
*/ */
void void
Draw_FadeScreen (void) Draw_FadeScreen (void)
@ -876,12 +846,10 @@ Draw_FadeScreen (void)
//============================================================================= //=============================================================================
/* /*
================ Draw_BeginDisc
Draw_BeginDisc
Draws the little blue disc in the corner of the screen. Draws the little blue disc in the corner of the screen.
Call before beginning any disc IO. Call before beginning any disc IO.
================
*/ */
void void
Draw_BeginDisc (void) Draw_BeginDisc (void)
@ -892,12 +860,10 @@ Draw_BeginDisc (void)
/* /*
================ Draw_EndDisc
Draw_EndDisc
Erases the disc icon. Erases the disc icon.
Call after completing any disc IO Call after completing any disc IO
================
*/ */
void void
Draw_EndDisc (void) Draw_EndDisc (void)

View file

@ -125,9 +125,7 @@ particle_new_random (ptype_t type, int texnum, vec3_t org, int org_fuzz,
} }
/* /*
=============== R_InitParticles
R_InitParticles
===============
*/ */
void void
R_InitParticles (void) R_InitParticles (void)
@ -154,9 +152,7 @@ R_InitParticles (void)
/* /*
=============== R_ClearParticles
R_ClearParticles
===============
*/ */
void void
R_ClearParticles (void) R_ClearParticles (void)
@ -213,10 +209,7 @@ R_ReadPointFile_f (void)
} }
/* /*
=============== R_ParticleExplosion
R_ParticleExplosion
===============
*/ */
void void
R_ParticleExplosion (vec3_t org) R_ParticleExplosion (vec3_t org)
@ -230,10 +223,7 @@ R_ParticleExplosion (vec3_t org)
} }
/* /*
=============== R_BlobExplosion
R_BlobExplosion
===============
*/ */
void void
R_BlobExplosion (vec3_t org) R_BlobExplosion (vec3_t org)
@ -298,10 +288,7 @@ R_BloodPuff (vec3_t org, int count)
} }
/* /*
=============== R_RunPuffEffect
R_RunPuffEffect
===============
*/ */
void void
R_RunPuffEffect (vec3_t org, byte type, byte count) R_RunPuffEffect (vec3_t org, byte type, byte count)
@ -323,10 +310,7 @@ R_RunPuffEffect (vec3_t org, byte type, byte count)
} }
/* /*
=============== R_RunParticleEffect
R_RunParticleEffect
===============
*/ */
void void
R_RunParticleEffect (vec3_t org, int color, int count) R_RunParticleEffect (vec3_t org, int color, int count)
@ -374,10 +358,7 @@ R_RunSpikeEffect (vec3_t org, byte type)
} }
/* /*
=============== R_LavaSplash
R_LavaSplash
===============
*/ */
void void
R_LavaSplash (vec3_t org) R_LavaSplash (vec3_t org)
@ -410,10 +391,7 @@ R_LavaSplash (vec3_t org)
} }
/* /*
=============== R_TeleportSplash
R_TeleportSplash
===============
*/ */
void void
R_TeleportSplash (vec3_t org) R_TeleportSplash (vec3_t org)
@ -548,9 +526,7 @@ R_RocketTrail (int type, entity_t *ent)
/* /*
=============== R_DrawParticles
R_DrawParticles
===============
*/ */
void void
R_DrawParticles (void) R_DrawParticles (void)

View file

@ -44,11 +44,7 @@
#include "quakefs.h" #include "quakefs.h"
/* /*
================================================================= ALIAS MODEL DISPLAY LIST GENERATION
ALIAS MODEL DISPLAY LIST GENERATION
=================================================================
*/ */
model_t *aliasmodel; model_t *aliasmodel;
@ -73,9 +69,7 @@ int striptris[128];
int stripcount; int stripcount;
/* /*
================ StripLength
StripLength
================
*/ */
int int
StripLength (int starttri, int startv) StripLength (int starttri, int startv)
@ -142,9 +136,7 @@ done:
} }
/* /*
=========== FanLength
FanLength
===========
*/ */
int int
FanLength (int starttri, int startv) FanLength (int starttri, int startv)
@ -210,12 +202,10 @@ FanLength (int starttri, int startv)
/* /*
================ BuildTris
BuildTris
Generate a list of trifans or strips Generate a list of trifans or strips
for the model, which holds for all frames for the model, which holds for all frames
================
*/ */
void void
BuildTris (void) BuildTris (void)
@ -297,9 +287,7 @@ BuildTris (void)
/* /*
================ GL_MakeAliasModelDisplayLists
GL_MakeAliasModelDisplayLists
================
*/ */
void void
GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s) GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s)

View file

@ -49,11 +49,7 @@
extern model_t *loadmodel; extern model_t *loadmodel;
/* /*
============================================================================== ALIAS MODELS
ALIAS MODELS
==============================================================================
*/ */
extern aliashdr_t *pheader; extern aliashdr_t *pheader;
@ -69,11 +65,9 @@ extern int posenum;
//========================================================= //=========================================================
/* /*
================= Mod_FloodFillSkin
Mod_FloodFillSkin
Fill background pixels so mipmapping doesn't have haloes - Ed Fill background pixels so mipmapping doesn't have haloes - Ed
=================
*/ */
typedef struct { typedef struct {
@ -187,9 +181,7 @@ Mod_LoadSkin (byte * skin, int skinsize, int snum, int gnum, qboolean group)
} }
/* /*
=============== Mod_LoadAllSkins
Mod_LoadAllSkins
===============
*/ */
void * void *
Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex) Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
@ -245,9 +237,7 @@ Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
} }
/* /*
================= Mod_LoadAliasFrame
Mod_LoadAliasFrame
=================
*/ */
void * void *
Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame) Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame)
@ -278,9 +268,7 @@ Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame)
} }
/* /*
================= Mod_LoadAliasGroup
Mod_LoadAliasGroup
=================
*/ */
void * void *
Mod_LoadAliasGroup (void *pin, maliasframedesc_t *frame) Mod_LoadAliasGroup (void *pin, maliasframedesc_t *frame)

View file

@ -68,9 +68,7 @@ Mod_ProcessTexture (miptex_t *mt, texture_t *tx)
} }
/* /*
================= Mod_LoadLighting
Mod_LoadLighting
=================
*/ */
void void
Mod_LoadLighting (lump_t *l) Mod_LoadLighting (lump_t *l)

View file

@ -47,9 +47,7 @@ extern model_t *loadmodel;
extern char loadname[]; extern char loadname[];
/* /*
================= Mod_LoadSpriteFrame
Mod_LoadSpriteFrame
=================
*/ */
void * void *
Mod_LoadSpriteFrame (void *pin, mspriteframe_t **ppframe, int framenum) Mod_LoadSpriteFrame (void *pin, mspriteframe_t **ppframe, int framenum)

View file

@ -110,9 +110,7 @@ Draw_CharToNetGraph (int x, int y, int num)
/* /*
============== R_NetGraph
R_NetGraph
==============
*/ */
void void
R_NetGraph (void) R_NetGraph (void)

View file

@ -46,9 +46,7 @@ extern qboolean lighthalf;
/* /*
================== R_AnimateLight
R_AnimateLight
==================
*/ */
void void
R_AnimateLight (void) R_AnimateLight (void)
@ -72,11 +70,7 @@ R_AnimateLight (void)
} }
/* /*
============================================================================= DYNAMIC LIGHTS BLEND RENDERING
DYNAMIC LIGHTS BLEND RENDERING
=============================================================================
*/ */
void void
@ -160,9 +154,7 @@ R_RenderDlight (dlight_t *light)
} }
/* /*
============= R_RenderDlights
R_RenderDlights
=============
*/ */
void void
R_RenderDlights (void) R_RenderDlights (void)
@ -197,17 +189,11 @@ R_RenderDlights (void)
/* /*
============================================================================= DYNAMIC LIGHTS
DYNAMIC LIGHTS
=============================================================================
*/ */
/* /*
============= R_MarkLights
R_MarkLights
=============
*/ */
// LordHavoc: heavily modified, to eliminate unnecessary texture uploads, // LordHavoc: heavily modified, to eliminate unnecessary texture uploads,
// and support bmodel lighting better // and support bmodel lighting better
@ -295,9 +281,7 @@ R_MarkLights (vec3_t lightorigin, dlight_t *light, int bit, mnode_t *node)
/* /*
============= R_PushDlights
R_PushDlights
=============
*/ */
void void
R_PushDlights (vec3_t entorigin) R_PushDlights (vec3_t entorigin)
@ -323,11 +307,7 @@ R_PushDlights (vec3_t entorigin)
/* /*
============================================================================= LIGHT SAMPLING
LIGHT SAMPLING
=============================================================================
*/ */
mplane_t *lightplane; mplane_t *lightplane;

View file

@ -188,11 +188,9 @@ GL_CheckBrightness (unsigned char *pal)
} }
/* /*
================= R_CullBox
R_CullBox
Returns true if the box is completely outside the frustom Returns true if the box is completely outside the frustom
=================
*/ */
/* /*
qboolean R_CullBox (vec3_t mins, vec3_t maxs) qboolean R_CullBox (vec3_t mins, vec3_t maxs)
@ -219,17 +217,11 @@ R_RotateForEntity (entity_t *e)
} }
/* /*
============================================================= SPRITE MODELS
SPRITE MODELS
=============================================================
*/ */
/* /*
================ R_GetSpriteFrame
R_GetSpriteFrame
================
*/ */
static mspriteframe_t * static mspriteframe_t *
R_GetSpriteFrame (entity_t *currententity) R_GetSpriteFrame (entity_t *currententity)
@ -276,10 +268,7 @@ R_GetSpriteFrame (entity_t *currententity)
/* /*
================= R_DrawSpriteModel
R_DrawSpriteModel
=================
*/ */
static void static void
R_DrawSpriteModel (entity_t *e) R_DrawSpriteModel (entity_t *e)
@ -335,11 +324,7 @@ R_DrawSpriteModel (entity_t *e)
} }
/* /*
============================================================= ALIAS MODELS
ALIAS MODELS
=============================================================
*/ */
@ -712,10 +697,7 @@ R_SetupAliasBlendedFrame (int frame, aliashdr_t *paliashdr, entity_t *e, qboolea
/* /*
================= R_DrawAliasModel
R_DrawAliasModel
=================
*/ */
static void static void
R_DrawAliasModel (entity_t *e) R_DrawAliasModel (entity_t *e)
@ -990,9 +972,7 @@ R_DrawEntitiesOnList (void)
} }
/* /*
============= R_DrawViewModel
R_DrawViewModel
=============
*/ */
static void static void
R_DrawViewModel (void) R_DrawViewModel (void)
@ -1069,9 +1049,7 @@ R_SetFrustum (void)
/* /*
=============== R_SetupFrame
R_SetupFrame
===============
*/ */
static void static void
R_SetupFrame (void) R_SetupFrame (void)
@ -1118,9 +1096,7 @@ MYgluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar)
/* /*
============= R_SetupGL
R_SetupGL
=============
*/ */
static void static void
R_SetupGL (void) R_SetupGL (void)
@ -1187,9 +1163,7 @@ R_SetupGL (void)
/* /*
============= R_Clear
R_Clear
=============
*/ */
static void static void
R_Clear (void) R_Clear (void)
@ -1206,11 +1180,9 @@ R_Clear (void)
} }
/* /*
================ R_RenderView
R_RenderView
r_refdef must be set before the first call r_refdef must be set before the first call
================
*/ */
void void
R_RenderView (void) R_RenderView (void)

View file

@ -60,9 +60,7 @@ extern cvar_t *gl_lerp_anim;
qboolean allowskybox; // allow skyboxes? --KB qboolean allowskybox; // allow skyboxes? --KB
/* /*
================== R_Textures_Init
R_Textures_Init
==================
*/ */
void void
R_Textures_Init (void) R_Textures_Init (void)
@ -96,11 +94,9 @@ R_Textures_Init (void)
} }
/* /*
=============== R_Envmap_f
R_Envmap_f
Grab six views for environment mapping tests Grab six views for environment mapping tests
===============
*/ */
void void
R_Envmap_f (void) R_Envmap_f (void)
@ -178,9 +174,7 @@ R_LoadSky_f (void)
/* /*
=============== R_Init
R_Init
===============
*/ */
void void
R_Init (void) R_Init (void)
@ -244,9 +238,7 @@ R_Init_Cvars (void)
} }
/* /*
=============== R_NewMap
R_NewMap
===============
*/ */
void void
R_NewMap (void) R_NewMap (void)
@ -287,11 +279,9 @@ R_NewMap (void)
/* /*
==================== R_TimeRefresh_f
R_TimeRefresh_f
For program optimization For program optimization
====================
*/ */
// LordHavoc: improved appearance and accuracy of timerefresh // LordHavoc: improved appearance and accuracy of timerefresh
void void

View file

@ -125,11 +125,9 @@ int dlightdivtable[8192];
int dlightdivtableinitialized = 0; int dlightdivtableinitialized = 0;
/* /*
=============== R_AddDynamicLights
R_AddDynamicLights
NOTE! LordHavoc was here, and it shows... (Mercury) NOTE! LordHavoc was here, and it shows... (Mercury)
===============
*/ */
void void
R_AddDynamicLights (msurface_t *surf) R_AddDynamicLights (msurface_t *surf)
@ -333,11 +331,9 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
} }
/* /*
=============== R_TextureAnimation
R_TextureAnimation
Returns the proper texture for a given time and base texture Returns the proper texture for a given time and base texture
===============
*/ */
texture_t * texture_t *
R_TextureAnimation (texture_t *base) R_TextureAnimation (texture_t *base)
@ -369,11 +365,7 @@ R_TextureAnimation (texture_t *base)
/* /*
=============================================================
BRUSH MODELS BRUSH MODELS
=============================================================
*/ */
@ -393,12 +385,10 @@ GL_UploadLightmap (int i, int x, int y, int w, int h)
} }
/* /*
================ R_DrawSequentialPoly
R_DrawSequentialPoly
Systems that have fast state and texture changes can Systems that have fast state and texture changes can
just do everything as it passes with no need to sort just do everything as it passes with no need to sort
================
*/ */
void void
R_DrawMultitexturePoly (msurface_t *s) R_DrawMultitexturePoly (msurface_t *s)
@ -466,9 +456,7 @@ R_DrawMultitexturePoly (msurface_t *s)
} }
/* /*
================ R_BlendLightmaps
R_BlendLightmaps
================
*/ */
void void
R_BlendLightmaps (void) R_BlendLightmaps (void)
@ -542,9 +530,7 @@ R_RenderFullbrights (void)
} }
/* /*
================ R_RenderBrushPoly
R_RenderBrushPoly
================
*/ */
void void
R_RenderBrushPoly (msurface_t *fa) R_RenderBrushPoly (msurface_t *fa)
@ -639,9 +625,7 @@ GL_WaterSurface (msurface_t *s)
} }
/* /*
================ R_DrawWaterSurfaces
R_DrawWaterSurfaces
================
*/ */
void void
R_DrawWaterSurfaces (void) R_DrawWaterSurfaces (void)
@ -684,9 +668,7 @@ R_DrawWaterSurfaces (void)
/* /*
================ DrawTextureChains
DrawTextureChains
================
*/ */
void void
DrawTextureChains (void) DrawTextureChains (void)
@ -709,9 +691,7 @@ DrawTextureChains (void)
} }
/* /*
================= R_DrawBrushModel
R_DrawBrushModel
=================
*/ */
void void
R_DrawBrushModel (entity_t *e) R_DrawBrushModel (entity_t *e)
@ -821,17 +801,11 @@ R_DrawBrushModel (entity_t *e)
} }
/* /*
=============================================================
WORLD MODEL WORLD MODEL
=============================================================
*/ */
/* /*
================ R_RecursiveWorldNode
R_RecursiveWorldNode
================
*/ */
void void
R_RecursiveWorldNode (mnode_t *node) R_RecursiveWorldNode (mnode_t *node)
@ -942,9 +916,7 @@ R_RecursiveWorldNode (mnode_t *node)
/* /*
============= R_DrawWorld
R_DrawWorld
=============
*/ */
void void
R_DrawWorld (void) R_DrawWorld (void)
@ -983,9 +955,7 @@ R_DrawWorld (void)
/* /*
=============== R_MarkLeaves
R_MarkLeaves
===============
*/ */
void void
R_MarkLeaves (void) R_MarkLeaves (void)
@ -1023,11 +993,7 @@ R_MarkLeaves (void)
/* /*
============================================================================= LIGHTMAP ALLOCATION
LIGHTMAP ALLOCATION
=============================================================================
*/ */
// returns a texture number and the position inside it // returns a texture number and the position inside it
@ -1081,9 +1047,7 @@ model_t *currentmodel;
int nColinElim; int nColinElim;
/* /*
================ BuildSurfaceDisplayList
BuildSurfaceDisplayList
================
*/ */
void void
BuildSurfaceDisplayList (msurface_t *fa) BuildSurfaceDisplayList (msurface_t *fa)
@ -1184,9 +1148,7 @@ BuildSurfaceDisplayList (msurface_t *fa)
} }
/* /*
======================== GL_CreateSurfaceLightmap
GL_CreateSurfaceLightmap
========================
*/ */
void void
GL_CreateSurfaceLightmap (msurface_t *surf) GL_CreateSurfaceLightmap (msurface_t *surf)
@ -1207,12 +1169,10 @@ GL_CreateSurfaceLightmap (msurface_t *surf)
/* /*
================== GL_BuildLightmaps
GL_BuildLightmaps
Builds the lightmap texture Builds the lightmap texture
with all the surfaces from all brush models with all the surfaces from all brush models
==================
*/ */
void void
GL_BuildLightmaps (void) GL_BuildLightmaps (void)

View file

@ -152,11 +152,7 @@ void SCR_ScreenShot_f (void);
void SCR_RSShot_f (void); void SCR_RSShot_f (void);
/* /*
=============================================================================== CENTER PRINTING
CENTER PRINTING
===============================================================================
*/ */
char scr_centerstring[1024]; char scr_centerstring[1024];
@ -629,11 +625,7 @@ SCR_DrawConsole (void)
/* /*
==============================================================================
SCREEN SHOTS SCREEN SHOTS
==============================================================================
*/ */
/* /*

View file

@ -113,10 +113,8 @@ V_CalcBlend (void)
/* /*
============= V_CalcPowerupCshift
V_CalcPowerupCshift */
=============
*/
void void
V_CalcPowerupCshift (void) V_CalcPowerupCshift (void)
{ {
@ -161,10 +159,8 @@ V_CalcPowerupCshift (void)
} }
/* /*
============= V_UpdatePalette
V_UpdatePalette */
=============
*/
void void
V_UpdatePalette (void) V_UpdatePalette (void)
{ {

View file

@ -145,13 +145,11 @@ SubdividePolygon (int numverts, float *verts)
} }
/* /*
================ GL_SubdivideSurface
GL_SubdivideSurface
Breaks a polygon up along axial 64 unit Breaks a polygon up along axial 64 unit
boundaries so that turbulent and sky warps boundaries so that turbulent and sky warps
can be done reasonably. can be done reasonably.
================
*/ */
void void
GL_SubdivideSurface (msurface_t *fa) GL_SubdivideSurface (msurface_t *fa)
@ -194,11 +192,9 @@ float turbsin[] = {
#define TURBSCALE (256.0 / (2 * M_PI)) #define TURBSCALE (256.0 / (2 * M_PI))
/* /*
============= EmitWaterPolys
EmitWaterPolys
Does a water warp on the pre-fragmented glpoly_t chain Does a water warp on the pre-fragmented glpoly_t chain
=============
*/ */
void void
EmitWaterPolys (msurface_t *fa) EmitWaterPolys (msurface_t *fa)

View file

@ -141,9 +141,7 @@ IN_Move (usercmd_t *cmd)
} }
/* /*
=========== IN_ModeChanged
IN_ModeChanged
===========
*/ */
void void
IN_ModeChanged (void) IN_ModeChanged (void)

View file

@ -56,9 +56,7 @@ IN_Move (usercmd_t *cmd)
} }
/* /*
=========== IN_ModeChanged
IN_ModeChanged
===========
*/ */
void void
IN_ModeChanged (void) IN_ModeChanged (void)

View file

@ -68,9 +68,7 @@ static int mouse_oldbuttonstate = 0;
extern viddef_t vid; // global video state extern viddef_t vid; // global video state
/* /*
================ IN_SendKeyEvents
IN_SendKeyEvents
================
*/ */
void void

View file

@ -126,9 +126,7 @@ extern void JOY_AdvancedUpdate_f (void);
extern void JOY_Move (usercmd_t *cmd); extern void JOY_Move (usercmd_t *cmd);
/* /*
=========== Force_CenterView_f
Force_CenterView_f
===========
*/ */
static void static void
Force_CenterView_f (void) Force_CenterView_f (void)
@ -138,9 +136,7 @@ Force_CenterView_f (void)
/* /*
=========== IN_UpdateClipCursor
IN_UpdateClipCursor
===========
*/ */
void void
IN_UpdateClipCursor (void) IN_UpdateClipCursor (void)
@ -153,9 +149,7 @@ IN_UpdateClipCursor (void)
/* /*
=========== IN_ShowMouse
IN_ShowMouse
===========
*/ */
void void
IN_ShowMouse (void) IN_ShowMouse (void)
@ -169,9 +163,7 @@ IN_ShowMouse (void)
/* /*
=========== IN_HideMouse
IN_HideMouse
===========
*/ */
void void
IN_HideMouse (void) IN_HideMouse (void)
@ -185,9 +177,7 @@ IN_HideMouse (void)
/* /*
=========== IN_ActivateMouse
IN_ActivateMouse
===========
*/ */
void void
IN_ActivateMouse (void) IN_ActivateMouse (void)
@ -221,9 +211,7 @@ IN_ActivateMouse (void)
/* /*
=========== IN_SetQuakeMouseState
IN_SetQuakeMouseState
===========
*/ */
void void
IN_SetQuakeMouseState (void) IN_SetQuakeMouseState (void)
@ -234,9 +222,7 @@ IN_SetQuakeMouseState (void)
/* /*
=========== IN_DeactivateMouse
IN_DeactivateMouse
===========
*/ */
void void
IN_DeactivateMouse (void) IN_DeactivateMouse (void)
@ -266,9 +252,7 @@ IN_DeactivateMouse (void)
/* /*
=========== IN_RestoreOriginalMouseState
IN_RestoreOriginalMouseState
===========
*/ */
void void
IN_RestoreOriginalMouseState (void) IN_RestoreOriginalMouseState (void)
@ -285,9 +269,7 @@ IN_RestoreOriginalMouseState (void)
/* /*
=========== IN_InitDInput
IN_InitDInput
===========
*/ */
static qboolean static qboolean
IN_InitDInput (void) IN_InitDInput (void)
@ -370,9 +352,7 @@ IN_InitDInput (void)
/* /*
=========== IN_StartupMouse
IN_StartupMouse
===========
*/ */
static void static void
IN_StartupMouse (void) IN_StartupMouse (void)
@ -425,9 +405,7 @@ IN_StartupMouse (void)
/* /*
=========== IN_Init
IN_Init
===========
*/ */
void void
IN_Init (void) IN_Init (void)
@ -452,9 +430,7 @@ IN_Init_Cvars (void)
} }
/* /*
=========== IN_Shutdown
IN_Shutdown
===========
*/ */
void void
IN_Shutdown (void) IN_Shutdown (void)
@ -476,9 +452,7 @@ IN_Shutdown (void)
/* /*
=========== IN_MouseEvent
IN_MouseEvent
===========
*/ */
void void
IN_MouseEvent (int mstate) IN_MouseEvent (int mstate)
@ -503,9 +477,7 @@ IN_MouseEvent (int mstate)
/* /*
=========== IN_MouseMove
IN_MouseMove
===========
*/ */
void void
IN_MouseMove (usercmd_t *cmd) IN_MouseMove (usercmd_t *cmd)
@ -638,9 +610,7 @@ IN_MouseMove (usercmd_t *cmd)
/* /*
=========== IN_Move
IN_Move
===========
*/ */
void void
IN_Move (usercmd_t *cmd) IN_Move (usercmd_t *cmd)
@ -654,9 +624,7 @@ IN_Move (usercmd_t *cmd)
/* /*
=========== IN_Accumulate
IN_Accumulate
===========
*/ */
void void
IN_Accumulate (void) IN_Accumulate (void)
@ -679,9 +647,7 @@ IN_Accumulate (void)
/* /*
=================== IN_ClearStates
IN_ClearStates
===================
*/ */
void void
IN_ClearStates (void) IN_ClearStates (void)
@ -695,9 +661,7 @@ IN_ClearStates (void)
} }
/* /*
=========== IN_Commands
IN_Commands
===========
*/ */
void void
IN_Commands (void) IN_Commands (void)

View file

@ -43,20 +43,14 @@
#include "info.h" #include "info.h"
/* /*
===================================================================== INFO STRINGS
INFO STRINGS
=====================================================================
*/ */
/* /*
=============== Info_ValueForKey
Info_ValueForKey
Searches the string for the given Searches the string for the given
key and returns the associated value, or an empty string. key and returns the associated value, or an empty string.
===============
*/ */
char * char *
Info_ValueForKey (char *s, char *key) Info_ValueForKey (char *s, char *key)

View file

@ -400,9 +400,7 @@ JOY_Shutdown (void)
} }
/* /*
=========== Joy_AdvancedUpdate_f
Joy_AdvancedUpdate_f
===========
*/ */
void void
JOY_AdvancedUpdate_f (void) JOY_AdvancedUpdate_f (void)
@ -465,9 +463,7 @@ JOY_AdvancedUpdate_f (void)
/* /*
=============== IN_StartupJoystick
IN_StartupJoystick
===============
*/ */
void void
JOY_StartupJoystick (void) JOY_StartupJoystick (void)
@ -531,9 +527,7 @@ JOY_StartupJoystick (void)
} }
/* /*
=========== RawValuePointer
RawValuePointer
===========
*/ */
PDWORD PDWORD
RawValuePointer (int axis) RawValuePointer (int axis)

View file

@ -210,11 +210,7 @@ keyname_t keynames[] = {
}; };
/* /*
==============================================================================
LINE TYPING INTO THE CONSOLE LINE TYPING INTO THE CONSOLE
==============================================================================
*/ */
qboolean qboolean
@ -265,11 +261,9 @@ CompleteCommand (void)
} }
/* /*
==================== Key_Console
Key_Console
Interactive line editing and console scrollback Interactive line editing and console scrollback
====================
*/ */
void void
Key_Console (int key) Key_Console (int key)
@ -501,13 +495,11 @@ Key_Message (int key)
/* /*
=================== Key_StringToKeynum
Key_StringToKeynum
Returns a key number to be used to index keybindings[] by looking at Returns a key number to be used to index keybindings[] by looking at
the given string. Single ascii characters return themselves, while the given string. Single ascii characters return themselves, while
the K_* names are matched up. the K_* names are matched up.
===================
*/ */
int int
Key_StringToKeynum (char *str) Key_StringToKeynum (char *str)
@ -527,13 +519,11 @@ Key_StringToKeynum (char *str)
} }
/* /*
=================== Key_KeynumToString
Key_KeynumToString
Returns a string (either a single ascii char, or a K_* name) for the Returns a string (either a single ascii char, or a K_* name) for the
given keynum. given keynum.
FIXME: handle quote special (general escape sequence?) FIXME: handle quote special (general escape sequence?)
===================
*/ */
char * char *
Key_KeynumToString (int keynum) Key_KeynumToString (int keynum)
@ -558,9 +548,7 @@ Key_KeynumToString (int keynum)
/* /*
=================== Key_SetBinding
Key_SetBinding
===================
*/ */
void void
Key_SetBinding (int keynum, char *binding) Key_SetBinding (int keynum, char *binding)
@ -585,9 +573,7 @@ Key_SetBinding (int keynum, char *binding)
} }
/* /*
=================== Key_Unbind_f
Key_Unbind_f
===================
*/ */
void void
Key_Unbind_f (void) Key_Unbind_f (void)
@ -620,9 +606,7 @@ Key_Unbindall_f (void)
/* /*
=================== Key_Bind_f
Key_Bind_f
===================
*/ */
void void
Key_Bind_f (void) Key_Bind_f (void)
@ -661,11 +645,9 @@ Key_Bind_f (void)
} }
/* /*
============ Key_WriteBindings
Key_WriteBindings
Writes lines containing "bind key value" Writes lines containing "bind key value"
============
*/ */
void void
Key_WriteBindings (QFile *f) Key_WriteBindings (QFile *f)
@ -681,9 +663,7 @@ Key_WriteBindings (QFile *f)
/* /*
=================== Key_Init
Key_Init
===================
*/ */
void void
Key_Init (void) Key_Init (void)
@ -772,12 +752,10 @@ Key_Init_Cvars (void)
} }
/* /*
=================== Key_Event
Key_Event
Called by the system between frames for both key up and key down events Called by the system between frames for both key up and key down events
Should NOT be called during an interrupt! Should NOT be called during an interrupt!
===================
*/ */
void void
Key_Event (int key, int alt_key, qboolean down) Key_Event (int key, int alt_key, qboolean down)
@ -920,9 +898,7 @@ Key_Event (int key, int alt_key, qboolean down)
} }
/* /*
=================== Key_ClearStates
Key_ClearStates
===================
*/ */
void void
Key_ClearStates (void) Key_ClearStates (void)

View file

@ -183,11 +183,9 @@ anglemod (float a)
} }
/* /*
================== BOPS_Error
BOPS_Error
Split out like this for ASM to call. Split out like this for ASM to call.
==================
*/ */
void void
BOPS_Error (void) BOPS_Error (void)
@ -198,11 +196,9 @@ BOPS_Error (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================== BoxOnPlaneSide
BoxOnPlaneSide
Returns 1, 2, or 1 + 2 Returns 1, 2, or 1 + 2
==================
*/ */
int int
BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, mplane_t *p) BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, mplane_t *p)
@ -486,9 +482,7 @@ Q_log2 (int val)
/* /*
================ R_ConcatRotations
R_ConcatRotations
================
*/ */
void void
R_ConcatRotations (float in1[3][3], float in2[3][3], float out[3][3]) R_ConcatRotations (float in1[3][3], float in2[3][3], float out[3][3])
@ -515,9 +509,7 @@ R_ConcatRotations (float in1[3][3], float in2[3][3], float out[3][3])
/* /*
================ R_ConcatTransforms
R_ConcatTransforms
================
*/ */
void void
R_ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4]) R_ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4])
@ -550,13 +542,11 @@ R_ConcatTransforms (float in1[3][4], float in2[3][4], float out[3][4])
/* /*
=================== FloorDivMod
FloorDivMod
Returns mathematically correct (floor-based) quotient and remainder for Returns mathematically correct (floor-based) quotient and remainder for
numer and denom, both of which should contain no fractional part. The numer and denom, both of which should contain no fractional part. The
quotient must fit in 32 bits. quotient must fit in 32 bits.
====================
*/ */
void void
@ -599,9 +589,7 @@ FloorDivMod (double numer, double denom, int *quotient, int *rem)
/* /*
=================== GreatestCommonDivisor
GreatestCommonDivisor
====================
*/ */
int int
GreatestCommonDivisor (int i1, int i2) GreatestCommonDivisor (int i1, int i2)
@ -623,11 +611,9 @@ GreatestCommonDivisor (int i1, int i2)
// TODO: move to nonintel.c // TODO: move to nonintel.c
/* /*
=================== Invert24To16
Invert24To16
Inverts an 8.24 value to a 16.16 value Inverts an 8.24 value to a 16.16 value
====================
*/ */
fixed16_t fixed16_t

View file

@ -155,11 +155,9 @@ void M_ConfigureNetSubsystem (void);
/* Support Routines */ /* Support Routines */
/* /*
================ M_DrawCharacter
M_DrawCharacter
Draws one solid graphics character Draws one solid graphics character
================
*/ */
void void
M_DrawCharacter (int cx, int line, int num) M_DrawCharacter (int cx, int line, int num)
@ -294,9 +292,7 @@ M_DrawTextBox (int x, int y, int width, int lines)
int m_save_demonum; int m_save_demonum;
/* /*
================ M_ToggleMenu_f
M_ToggleMenu_f
================
*/ */
void void
M_ToggleMenu_f (void) M_ToggleMenu_f (void)

View file

@ -63,9 +63,7 @@ extern byte mod_novis[MAX_MAP_LEAFS / 8];
texture_t *r_notexture_mip; texture_t *r_notexture_mip;
/* /*
=============== Mod_Init
Mod_Init
===============
*/ */
void void
Mod_Init (void) Mod_Init (void)
@ -81,9 +79,7 @@ Mod_Init_Cvars (void)
} }
/* /*
=================== Mod_ClearAll
Mod_ClearAll
===================
*/ */
void void
Mod_ClearAll (void) Mod_ClearAll (void)
@ -97,10 +93,7 @@ Mod_ClearAll (void)
} }
/* /*
================== Mod_FindName
Mod_FindName
==================
*/ */
model_t * model_t *
Mod_FindName (char *name) Mod_FindName (char *name)
@ -130,11 +123,9 @@ Mod_FindName (char *name)
} }
/* /*
================== Mod_LoadModel
Mod_LoadModel
Loads a model into the cache Loads a model into the cache
==================
*/ */
model_t * model_t *
Mod_LoadModel (model_t *mod, qboolean crash) Mod_LoadModel (model_t *mod, qboolean crash)
@ -195,11 +186,9 @@ Mod_LoadModel (model_t *mod, qboolean crash)
} }
/* /*
================== Mod_ForName
Mod_ForName
Loads in a model for the given name Loads in a model for the given name
==================
*/ */
model_t * model_t *
Mod_ForName (char *name, qboolean crash) Mod_ForName (char *name, qboolean crash)
@ -213,11 +202,9 @@ Mod_ForName (char *name, qboolean crash)
} }
/* /*
=============== Mod_Init
Mod_Init
Caches the data if needed Caches the data if needed
===============
*/ */
void * void *
Mod_Extradata (model_t *mod) Mod_Extradata (model_t *mod)
@ -236,10 +223,7 @@ Mod_Extradata (model_t *mod)
} }
/* /*
================== Mod_TouchModel
Mod_TouchModel
==================
*/ */
void void
Mod_TouchModel (char *name) Mod_TouchModel (char *name)
@ -255,9 +239,7 @@ Mod_TouchModel (char *name)
} }
/* /*
================ Mod_Print
Mod_Print
================
*/ */
void void
Mod_Print (void) Mod_Print (void)

View file

@ -59,11 +59,7 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype,
void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *model, int size); void GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *model, int size);
/* /*
============================================================================== ALIAS MODELS
ALIAS MODELS
==============================================================================
*/ */
aliashdr_t *pheader; aliashdr_t *pheader;
@ -83,9 +79,7 @@ void *Mod_LoadAliasGroup (void *pin, maliasframedesc_t *frame);
//========================================================================= //=========================================================================
/* /*
================= Mod_LoadAliasModel
Mod_LoadAliasModel
=================
*/ */
void void
Mod_LoadAliasModel (model_t *mod, void *buffer) Mod_LoadAliasModel (model_t *mod, void *buffer)

View file

@ -59,9 +59,7 @@ void GL_SubdivideSurface (msurface_t *fa);
extern cvar_t *gl_sky_divide; extern cvar_t *gl_sky_divide;
/* /*
=============== Mod_PointInLeaf
Mod_PointInLeaf
===============
*/ */
mleaf_t * mleaf_t *
Mod_PointInLeaf (vec3_t p, model_t *model) Mod_PointInLeaf (vec3_t p, model_t *model)
@ -90,9 +88,7 @@ Mod_PointInLeaf (vec3_t p, model_t *model)
/* /*
=================== Mod_DecompressVis
Mod_DecompressVis
===================
*/ */
byte * byte *
Mod_DecompressVis (byte * in, model_t *model) Mod_DecompressVis (byte * in, model_t *model)
@ -143,20 +139,14 @@ Mod_LeafPVS (mleaf_t *leaf, model_t *model)
} }
/* /*
===============================================================================
BRUSHMODEL LOADING BRUSHMODEL LOADING
===============================================================================
*/ */
byte *mod_base; byte *mod_base;
/* /*
================= Mod_LoadTextures
Mod_LoadTextures
=================
*/ */
void void
Mod_LoadTextures (lump_t *l) Mod_LoadTextures (lump_t *l)
@ -297,9 +287,7 @@ Mod_LoadTextures (lump_t *l)
} }
/* /*
================= Mod_LoadVisibility
Mod_LoadVisibility
=================
*/ */
void void
Mod_LoadVisibility (lump_t *l) Mod_LoadVisibility (lump_t *l)
@ -314,9 +302,7 @@ Mod_LoadVisibility (lump_t *l)
/* /*
================= Mod_LoadEntities
Mod_LoadEntities
=================
*/ */
void void
Mod_LoadEntities (lump_t *l) Mod_LoadEntities (lump_t *l)
@ -331,9 +317,7 @@ Mod_LoadEntities (lump_t *l)
/* /*
================= Mod_LoadVertexes
Mod_LoadVertexes
=================
*/ */
void void
Mod_LoadVertexes (lump_t *l) Mod_LoadVertexes (lump_t *l)
@ -359,9 +343,7 @@ Mod_LoadVertexes (lump_t *l)
} }
/* /*
================= Mod_LoadSubmodels
Mod_LoadSubmodels
=================
*/ */
void void
Mod_LoadSubmodels (lump_t *l) Mod_LoadSubmodels (lump_t *l)
@ -394,9 +376,7 @@ Mod_LoadSubmodels (lump_t *l)
} }
/* /*
================= Mod_LoadEdges
Mod_LoadEdges
=================
*/ */
void void
Mod_LoadEdges (lump_t *l) Mod_LoadEdges (lump_t *l)
@ -421,9 +401,7 @@ Mod_LoadEdges (lump_t *l)
} }
/* /*
================= Mod_LoadTexinfo
Mod_LoadTexinfo
=================
*/ */
void void
Mod_LoadTexinfo (lump_t *l) Mod_LoadTexinfo (lump_t *l)
@ -480,11 +458,9 @@ Mod_LoadTexinfo (lump_t *l)
} }
/* /*
================ CalcSurfaceExtents
CalcSurfaceExtents
Fills in s->texturemins[] and s->extents[] Fills in s->texturemins[] and s->extents[]
================
*/ */
void void
CalcSurfaceExtents (msurface_t *s) CalcSurfaceExtents (msurface_t *s)
@ -531,9 +507,7 @@ CalcSurfaceExtents (msurface_t *s)
/* /*
================= Mod_LoadFaces
Mod_LoadFaces
=================
*/ */
void void
Mod_LoadFaces (lump_t *l) Mod_LoadFaces (lump_t *l)
@ -608,9 +582,7 @@ Mod_LoadFaces (lump_t *l)
/* /*
================= Mod_SetParent
Mod_SetParent
=================
*/ */
void void
Mod_SetParent (mnode_t *node, mnode_t *parent) Mod_SetParent (mnode_t *node, mnode_t *parent)
@ -623,9 +595,7 @@ Mod_SetParent (mnode_t *node, mnode_t *parent)
} }
/* /*
================= Mod_LoadNodes
Mod_LoadNodes
=================
*/ */
void void
Mod_LoadNodes (lump_t *l) Mod_LoadNodes (lump_t *l)
@ -668,9 +638,7 @@ Mod_LoadNodes (lump_t *l)
} }
/* /*
================= Mod_LoadLeafs
Mod_LoadLeafs
=================
*/ */
void void
Mod_LoadLeafs (lump_t *l) Mod_LoadLeafs (lump_t *l)
@ -730,9 +698,7 @@ Mod_LoadLeafs (lump_t *l)
} }
/* /*
================= Mod_LoadClipnodes
Mod_LoadClipnodes
=================
*/ */
void void
Mod_LoadClipnodes (lump_t *l) Mod_LoadClipnodes (lump_t *l)
@ -782,11 +748,9 @@ Mod_LoadClipnodes (lump_t *l)
} }
/* /*
================= Mod_MakeHull0
Mod_MakeHull0
Deplicate the drawing hull structure as a clipping hull Deplicate the drawing hull structure as a clipping hull
=================
*/ */
void void
Mod_MakeHull0 (void) Mod_MakeHull0 (void)
@ -820,9 +784,7 @@ Mod_MakeHull0 (void)
} }
/* /*
================= Mod_LoadMarksurfaces
Mod_LoadMarksurfaces
=================
*/ */
void void
Mod_LoadMarksurfaces (lump_t *l) Mod_LoadMarksurfaces (lump_t *l)
@ -849,9 +811,7 @@ Mod_LoadMarksurfaces (lump_t *l)
} }
/* /*
================= Mod_LoadSurfedges
Mod_LoadSurfedges
=================
*/ */
void void
Mod_LoadSurfedges (lump_t *l) Mod_LoadSurfedges (lump_t *l)
@ -873,9 +833,7 @@ Mod_LoadSurfedges (lump_t *l)
} }
/* /*
================= Mod_LoadPlanes
Mod_LoadPlanes
=================
*/ */
void void
Mod_LoadPlanes (lump_t *l) Mod_LoadPlanes (lump_t *l)
@ -910,9 +868,7 @@ Mod_LoadPlanes (lump_t *l)
} }
/* /*
================= RadiusFromBounds
RadiusFromBounds
=================
*/ */
float float
RadiusFromBounds (vec3_t mins, vec3_t maxs) RadiusFromBounds (vec3_t mins, vec3_t maxs)
@ -929,9 +885,7 @@ RadiusFromBounds (vec3_t mins, vec3_t maxs)
} }
/* /*
================= Mod_LoadBrushModel
Mod_LoadBrushModel
=================
*/ */
void void
Mod_LoadBrushModel (model_t *mod, void *buffer) Mod_LoadBrushModel (model_t *mod, void *buffer)

View file

@ -45,9 +45,7 @@ void *Mod_LoadSpriteFrame (void *pin, mspriteframe_t **ppframe,
int framenum); int framenum);
/* /*
================= Mod_LoadSpriteGroup
Mod_LoadSpriteGroup
=================
*/ */
void * void *
Mod_LoadSpriteGroup (void *pin, mspriteframe_t **ppframe, int framenum) Mod_LoadSpriteGroup (void *pin, mspriteframe_t **ppframe, int framenum)
@ -100,9 +98,7 @@ Mod_LoadSpriteGroup (void *pin, mspriteframe_t **ppframe, int framenum)
} }
/* /*
================= Mod_LoadSpriteModel
Mod_LoadSpriteModel
=================
*/ */
void void
Mod_LoadSpriteModel (model_t *mod, void *buffer) Mod_LoadSpriteModel (model_t *mod, void *buffer)

View file

@ -43,12 +43,9 @@
#include "sys.h" #include "sys.h"
/* /*
============================================================================== MESSAGE IO FUNCTIONS
MESSAGE IO FUNCTIONS Handles byte ordering and avoids alignment errors
Handles byte ordering and avoids alignment errors
==============================================================================
*/ */
// //

View file

@ -109,10 +109,7 @@ cvar_t *qport;
extern qboolean is_server; extern qboolean is_server;
/* /*
=============== Netchan_Init
Netchan_Init
===============
*/ */
void void
Netchan_Init (void) Netchan_Init (void)
@ -139,11 +136,9 @@ Netchan_Init_Cvars (void)
} }
/* /*
=============== Netchan_OutOfBand
Netchan_OutOfBand
Sends an out-of-band datagram Sends an out-of-band datagram
================
*/ */
void void
Netchan_OutOfBand (netadr_t adr, int length, byte * data) Netchan_OutOfBand (netadr_t adr, int length, byte * data)
@ -170,11 +165,9 @@ Netchan_OutOfBand (netadr_t adr, int length, byte * data)
} }
/* /*
=============== Netchan_OutOfBandPrint
Netchan_OutOfBandPrint
Sends a text message in an out-of-band datagram Sends a text message in an out-of-band datagram
================
*/ */
void void
Netchan_OutOfBandPrint (netadr_t adr, char *format, ...) Netchan_OutOfBandPrint (netadr_t adr, char *format, ...)
@ -192,11 +185,9 @@ Netchan_OutOfBandPrint (netadr_t adr, char *format, ...)
/* /*
============== Netchan_Setup
Netchan_Setup
called to open a channel to a remote system called to open a channel to a remote system
==============
*/ */
void void
Netchan_Setup (netchan_t *chan, netadr_t adr, int qport) Netchan_Setup (netchan_t *chan, netadr_t adr, int qport)
@ -217,11 +208,9 @@ Netchan_Setup (netchan_t *chan, netadr_t adr, int qport)
/* /*
=============== Netchan_CanPacket
Netchan_CanPacket
Returns true if the bandwidth choke isn't active Returns true if the bandwidth choke isn't active
================
*/ */
#define MAX_BACKUP 200 #define MAX_BACKUP 200
qboolean qboolean
@ -234,11 +223,9 @@ Netchan_CanPacket (netchan_t *chan)
/* /*
=============== Netchan_CanReliable
Netchan_CanReliable
Returns true if the bandwidth choke isn't Returns true if the bandwidth choke isn't
================
*/ */
qboolean qboolean
Netchan_CanReliable (netchan_t *chan) Netchan_CanReliable (netchan_t *chan)
@ -251,14 +238,12 @@ Netchan_CanReliable (netchan_t *chan)
qboolean ServerPaused (void); qboolean ServerPaused (void);
/* /*
=============== Netchan_Transmit
Netchan_Transmit
tries to send an unreliable message to a connection, and handles the tries to send an unreliable message to a connection, and handles the
transmition / retransmition of the reliable messages. transmition / retransmition of the reliable messages.
A 0 length will still generate a packet and deal with the reliable messages. A 0 length will still generate a packet and deal with the reliable messages.
================
*/ */
void void
Netchan_Transmit (netchan_t *chan, int length, byte * data) Netchan_Transmit (netchan_t *chan, int length, byte * data)
@ -344,12 +329,10 @@ Netchan_Transmit (netchan_t *chan, int length, byte * data)
} }
/* /*
================= Netchan_Process
Netchan_Process
called when the current net_message is from remote_address called when the current net_message is from remote_address
modifies net_message so that it points to the packet payload modifies net_message so that it points to the packet payload
=================
*/ */
qboolean qboolean
Netchan_Process (netchan_t *chan) Netchan_Process (netchan_t *chan)

View file

@ -166,14 +166,12 @@ NET_BaseAdrToString (netadr_t a)
} }
/* /*
============= NET_StringToAdr
NET_StringToAdr
idnewt idnewt
idnewt:28000 idnewt:28000
192.246.40.70 192.246.40.70
192.246.40.70:28000 192.246.40.70:28000
=============
*/ */
qboolean qboolean
NET_StringToAdr (char *s, netadr_t *a) NET_StringToAdr (char *s, netadr_t *a)
@ -411,9 +409,7 @@ NET_GetLocalAddress (void)
} }
/* /*
==================== NET_Init
NET_Init
====================
*/ */
void void
NET_Init (int port) NET_Init (int port)
@ -448,9 +444,7 @@ NET_Init (int port)
} }
/* /*
==================== NET_Shutdown
NET_Shutdown
====================
*/ */
void void
NET_Shutdown (void) NET_Shutdown (void)

View file

@ -226,14 +226,12 @@ NET_BaseAdrToString (netadr_t a)
} }
/* /*
============= NET_StringToAdr
NET_StringToAdr
idnewt idnewt
idnewt:28000 idnewt:28000
192.246.40.70 192.246.40.70
192.246.40.70:28000 192.246.40.70:28000
=============
*/ */
qboolean qboolean
NET_StringToAdr (char *s, netadr_t *a) NET_StringToAdr (char *s, netadr_t *a)
@ -525,9 +523,7 @@ NET_GetLocalAddress (void)
} }
/* /*
==================== NET_Init
NET_Init
====================
*/ */
void void
NET_Init (int port) NET_Init (int port)
@ -563,9 +559,7 @@ NET_Init (int port)
} }
/* /*
==================== NET_Shutdown
NET_Shutdown
====================
*/ */
void void
NET_Shutdown (void) NET_Shutdown (void)

View file

@ -33,9 +33,7 @@
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ R_Surf8Patch
R_Surf8Patch
================
*/ */
void void
R_Surf8Patch (void) R_Surf8Patch (void)
@ -45,9 +43,7 @@ R_Surf8Patch (void)
/* /*
================ R_Surf16Patch
R_Surf16Patch
================
*/ */
void void
R_Surf16Patch (void) R_Surf16Patch (void)
@ -57,9 +53,7 @@ R_Surf16Patch (void)
/* /*
================ R_SurfacePatch
R_SurfacePatch
================
*/ */
void void
R_SurfacePatch (void) R_SurfacePatch (void)

View file

@ -89,12 +89,10 @@ Pmove_Init_Cvars (void)
/* /*
================== PM_ClipVelocity
PM_ClipVelocity
Slide off of the impacting object Slide off of the impacting object
returns the blocked flags (1 = floor, 2 = step / wall) returns the blocked flags (1 = floor, 2 = step / wall)
==================
*/ */
int int
@ -124,11 +122,9 @@ PM_ClipVelocity (vec3_t in, vec3_t normal, vec3_t out, float overbounce)
/* /*
============ PM_FlyMove
PM_FlyMove
The basic solid body movement clip that slides along multiple planes The basic solid body movement clip that slides along multiple planes
============
*/ */
#define MAX_CLIP_PLANES 5 #define MAX_CLIP_PLANES 5
@ -288,11 +284,9 @@ PM_FlymodeMove (void)
/* /*
============= PM_GroundMove
PM_GroundMove
Player is on ground, with no upwards velocity Player is on ground, with no upwards velocity
=============
*/ */
void void
PM_GroundMove (void) PM_GroundMove (void)
@ -373,11 +367,9 @@ PM_GroundMove (void)
/* /*
================== PM_Friction
PM_Friction
Handles both ground friction and water friction Handles both ground friction and water friction
==================
*/ */
void void
PM_Friction (void) PM_Friction (void)
@ -439,9 +431,7 @@ PM_Friction (void)
/* /*
============== PM_Accelerate
PM_Accelerate
==============
*/ */
void void
PM_Accelerate (vec3_t wishdir, float wishspeed, float accel) PM_Accelerate (vec3_t wishdir, float wishspeed, float accel)
@ -494,10 +484,7 @@ PM_AirAccelerate (vec3_t wishdir, float wishspeed, float accel)
/* /*
=================== PM_WaterMove
PM_WaterMove
===================
*/ */
void void
PM_WaterMove (void) PM_WaterMove (void)
@ -555,10 +542,7 @@ PM_WaterMove (void)
/* /*
=================== PM_AirMove
PM_AirMove
===================
*/ */
void void
PM_AirMove (void) PM_AirMove (void)
@ -641,9 +625,7 @@ PM_AirMove (void)
/* /*
============= PM_CategorizePosition
PM_CategorizePosition
=============
*/ */
void void
PM_CategorizePosition (void) PM_CategorizePosition (void)
@ -752,9 +734,7 @@ JumpButton (void)
} }
/* /*
============= CheckWaterJump
CheckWaterJump
=============
*/ */
void void
CheckWaterJump (void) CheckWaterJump (void)
@ -793,13 +773,11 @@ CheckWaterJump (void)
} }
/* /*
================= NudgePosition
NudgePosition
If pmove.origin is in a solid position, If pmove.origin is in a solid position,
try nudging slightly on all axis to try nudging slightly on all axis to
allow for the cut precision of the net coordinates allow for the cut precision of the net coordinates
=================
*/ */
void void
NudgePosition (void) NudgePosition (void)
@ -836,9 +814,7 @@ NudgePosition (void)
} }
/* /*
=============== SpectatorMove
SpectatorMove
===============
*/ */
void void
SpectatorMove (void) SpectatorMove (void)
@ -911,14 +887,12 @@ SpectatorMove (void)
} }
/* /*
============= PlayerMove
PlayerMove
Returns with origin, angles, and velocity modified in place. Returns with origin, angles, and velocity modified in place.
Numtouch and touchindex[] will be set if any of the physents Numtouch and touchindex[] will be set if any of the physents
were contacted during the move. were contacted during the move.
=============
*/ */
void void
PlayerMove (void) PlayerMove (void)

View file

@ -50,12 +50,10 @@ extern vec3_t player_mins;
extern vec3_t player_maxs; extern vec3_t player_maxs;
/* /*
=================== PM_InitBoxHull
PM_InitBoxHull
Set up the planes and clipnodes so that the six floats of a bounding box Set up the planes and clipnodes so that the six floats of a bounding box
can just be stored out and get a proper hull_t structure. can just be stored out and get a proper hull_t structure.
===================
*/ */
void void
PM_InitBoxHull (void) PM_InitBoxHull (void)
@ -87,12 +85,10 @@ PM_InitBoxHull (void)
/* /*
=================== PM_HullForBox
PM_HullForBox
To keep everything totally uniform, bounding boxes are turned into small To keep everything totally uniform, bounding boxes are turned into small
BSP trees instead of being compared directly. BSP trees instead of being compared directly.
===================
*/ */
hull_t * hull_t *
PM_HullForBox (vec3_t mins, vec3_t maxs) PM_HullForBox (vec3_t mins, vec3_t maxs)
@ -109,10 +105,7 @@ PM_HullForBox (vec3_t mins, vec3_t maxs)
/* /*
================== PM_HullPointContents
PM_HullPointContents
==================
*/ */
int int
PM_HullPointContents (hull_t *hull, int num, vec3_t p) PM_HullPointContents (hull_t *hull, int num, vec3_t p)
@ -142,10 +135,7 @@ PM_HullPointContents (hull_t *hull, int num, vec3_t p)
} }
/* /*
================== PM_PointContents
PM_PointContents
==================
*/ */
int int
PM_PointContents (vec3_t p) PM_PointContents (vec3_t p)
@ -181,21 +171,14 @@ PM_PointContents (vec3_t p)
} }
/* /*
=============================================================================== LINE TESTING IN HULLS
LINE TESTING IN HULLS
===============================================================================
*/ */
// 1/32 epsilon to keep floating point happy // 1/32 epsilon to keep floating point happy
#define DIST_EPSILON (0.03125) #define DIST_EPSILON (0.03125)
/* /*
================== PM_RecursiveHullCheck
PM_RecursiveHullCheck
==================
*/ */
qboolean qboolean
PM_RecursiveHullCheck (hull_t *hull, int num, float p1f, float p2f, vec3_t p1, PM_RecursiveHullCheck (hull_t *hull, int num, float p1f, float p2f, vec3_t p1,
@ -332,11 +315,9 @@ PM_RecursiveHullCheck (hull_t *hull, int num, float p1f, float p2f, vec3_t p1,
/* /*
================ PM_TestPlayerPosition
PM_TestPlayerPosition
Returns false if the given player position is not valid (in solid) Returns false if the given player position is not valid (in solid)
================
*/ */
qboolean qboolean
PM_TestPlayerPosition (vec3_t pos) PM_TestPlayerPosition (vec3_t pos)
@ -367,9 +348,7 @@ PM_TestPlayerPosition (vec3_t pos)
} }
/* /*
================ PM_PlayerMove
PM_PlayerMove
================
*/ */
pmtrace_t pmtrace_t
PM_PlayerMove (vec3_t start, vec3_t end) PM_PlayerMove (vec3_t start, vec3_t end)

View file

@ -573,12 +573,9 @@ ED_Count (progs_t *pr)
} }
/* /*
============================================================================== ARCHIVING GLOBALS
ARCHIVING GLOBALS FIXME: need to tag constants, doesn't really work
FIXME: need to tag constants, doesn't really work
==============================================================================
*/ */
/* /*

View file

@ -69,12 +69,10 @@ char *com_cmdline;
qboolean nouse = false; // 1999-10-29 +USE fix by Maddes qboolean nouse = false; // 1999-10-29 +USE fix by Maddes
/* /*
================ COM_CheckParm
COM_CheckParm
Returns the position (1 to argc-1) in the program's argument list Returns the position (1 to argc-1) in the program's argument list
where the given parameter apears, or 0 if not present where the given parameter apears, or 0 if not present
================
*/ */
int int
COM_CheckParm (char *parm) COM_CheckParm (char *parm)
@ -93,9 +91,7 @@ COM_CheckParm (char *parm)
} }
/* /*
================ COM_InitArgv
COM_InitArgv
================
*/ */
void void
COM_InitArgv (int argc, char **argv) COM_InitArgv (int argc, char **argv)
@ -149,11 +145,9 @@ COM_InitArgv (int argc, char **argv)
} }
/* /*
================ COM_AddParm
COM_AddParm
Adds the given string at the end of the current argument list Adds the given string at the end of the current argument list
================
*/ */
void void
COM_AddParm (char *parm) COM_AddParm (char *parm)

View file

@ -37,11 +37,7 @@
#include "qtypes.h" #include "qtypes.h"
/* /*
============================================================================
BYTE ORDER FUNCTIONS BYTE ORDER FUNCTIONS
============================================================================
*/ */
qboolean bigendien; qboolean bigendien;

View file

@ -108,11 +108,7 @@ extern qboolean is_server;
*/ */
/* /*
============================================================================= QUAKE FILESYSTEM
QUAKE FILESYSTEM
=============================================================================
*/ */
char gamedirfile[MAX_OSPATH]; char gamedirfile[MAX_OSPATH];
@ -998,11 +994,9 @@ COM_Gamedir (char *dir)
} }
/* /*
================ SV_Gamedir_f
SV_Gamedir_f
Sets the gamedir and path to a different directory. Sets the gamedir and path to a different directory.
================
*/ */
void void
@ -1100,9 +1094,7 @@ COM_Filesystem_Init_Cvars (void)
} }
/* /*
============ COM_SkipPath
COM_SkipPath
============
*/ */
char * char *
COM_SkipPath (char *pathname) COM_SkipPath (char *pathname)
@ -1119,9 +1111,7 @@ COM_SkipPath (char *pathname)
} }
/* /*
============ COM_StripExtension
COM_StripExtension
============
*/ */
void void
COM_StripExtension (char *in, char *out) COM_StripExtension (char *in, char *out)
@ -1132,9 +1122,7 @@ COM_StripExtension (char *in, char *out)
} }
/* /*
============ COM_FileExtension
COM_FileExtension
============
*/ */
char * char *
COM_FileExtension (char *in) COM_FileExtension (char *in)
@ -1155,9 +1143,7 @@ COM_FileExtension (char *in)
/* /*
================== COM_DefaultExtension
COM_DefaultExtension
==================
*/ */
void void
COM_DefaultExtension (char *path, char *extension) COM_DefaultExtension (char *path, char *extension)

View file

@ -52,11 +52,9 @@ void R_Alias_clip_right (finalvert_t *pfv0, finalvert_t *pfv1,
/* /*
================ R_Alias_clip_z
R_Alias_clip_z
pfv0 is the unclipped vertex, pfv1 is the z-clipped vertex pfv0 is the unclipped vertex, pfv1 is the z-clipped vertex
================
*/ */
void void
R_Alias_clip_z (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out) R_Alias_clip_z (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
@ -230,9 +228,7 @@ R_AliasClip (finalvert_t *in, finalvert_t *out, int flag, int count,
/* /*
================ R_AliasClipTriangle
R_AliasClipTriangle
================
*/ */
void void
R_AliasClipTriangle (mtriangle_t *ptri) R_AliasClipTriangle (mtriangle_t *ptri)

View file

@ -97,9 +97,7 @@ void R_AliasProjectFinalVert (finalvert_t *fv, auxvert_t *av);
/* /*
================ R_AliasCheckBBox
R_AliasCheckBBox
================
*/ */
qboolean qboolean
R_AliasCheckBBox (void) R_AliasCheckBBox (void)
@ -249,9 +247,7 @@ R_AliasCheckBBox (void)
/* /*
================ R_AliasTransformVector
R_AliasTransformVector
================
*/ */
void void
R_AliasTransformVector (vec3_t in, vec3_t out) R_AliasTransformVector (vec3_t in, vec3_t out)
@ -263,11 +259,9 @@ R_AliasTransformVector (vec3_t in, vec3_t out)
/* /*
================ R_AliasPreparePoints
R_AliasPreparePoints
General clipped case General clipped case
================
*/ */
void void
R_AliasPreparePoints (void) R_AliasPreparePoints (void)
@ -330,9 +324,7 @@ R_AliasPreparePoints (void)
/* /*
================ R_AliasSetUpTransform
R_AliasSetUpTransform
================
*/ */
void void
R_AliasSetUpTransform (int trivial_accept) R_AliasSetUpTransform (int trivial_accept)
@ -406,9 +398,7 @@ R_AliasSetUpTransform (int trivial_accept)
/* /*
================ R_AliasTransformFinalVert
R_AliasTransformFinalVert
================
*/ */
void void
R_AliasTransformFinalVert (finalvert_t *fv, auxvert_t *av, R_AliasTransformFinalVert (finalvert_t *fv, auxvert_t *av,
@ -451,9 +441,7 @@ R_AliasTransformFinalVert (finalvert_t *fv, auxvert_t *av,
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ R_AliasTransformAndProjectFinalVerts
R_AliasTransformAndProjectFinalVerts
================
*/ */
void void
R_AliasTransformAndProjectFinalVerts (finalvert_t *fv, stvert_t *pstverts) R_AliasTransformAndProjectFinalVerts (finalvert_t *fv, stvert_t *pstverts)
@ -507,9 +495,7 @@ R_AliasTransformAndProjectFinalVerts (finalvert_t *fv, stvert_t *pstverts)
/* /*
================ R_AliasProjectFinalVert
R_AliasProjectFinalVert
================
*/ */
void void
R_AliasProjectFinalVert (finalvert_t *fv, auxvert_t *av) R_AliasProjectFinalVert (finalvert_t *fv, auxvert_t *av)
@ -527,9 +513,7 @@ R_AliasProjectFinalVert (finalvert_t *fv, auxvert_t *av)
/* /*
================ R_AliasPrepareUnclippedPoints
R_AliasPrepareUnclippedPoints
================
*/ */
void void
R_AliasPrepareUnclippedPoints (void) R_AliasPrepareUnclippedPoints (void)
@ -556,9 +540,7 @@ R_AliasPrepareUnclippedPoints (void)
} }
/* /*
=============== R_AliasSetupSkin
R_AliasSetupSkin
===============
*/ */
void void
R_AliasSetupSkin (void) R_AliasSetupSkin (void)
@ -623,9 +605,7 @@ R_AliasSetupSkin (void)
} }
/* /*
================ R_AliasSetupLighting
R_AliasSetupLighting
================
*/ */
void void
R_AliasSetupLighting (alight_t *plighting) R_AliasSetupLighting (alight_t *plighting)
@ -657,11 +637,9 @@ R_AliasSetupLighting (alight_t *plighting)
} }
/* /*
================= R_AliasSetupFrame
R_AliasSetupFrame
set r_apverts set r_apverts
=================
*/ */
void void
R_AliasSetupFrame (void) R_AliasSetupFrame (void)
@ -708,9 +686,7 @@ R_AliasSetupFrame (void)
/* /*
================ R_AliasDrawModel
R_AliasDrawModel
================
*/ */
void void
R_AliasDrawModel (alight_t *plighting) R_AliasDrawModel (alight_t *plighting)

View file

@ -73,9 +73,7 @@ static qboolean makeclippededge;
//=========================================================================== //===========================================================================
/* /*
================ R_EntityRotate
R_EntityRotate
================
*/ */
void void
R_EntityRotate (vec3_t vec) R_EntityRotate (vec3_t vec)
@ -90,9 +88,7 @@ R_EntityRotate (vec3_t vec)
/* /*
================ R_RotateBmodel
R_RotateBmodel
================
*/ */
void void
R_RotateBmodel (void) R_RotateBmodel (void)
@ -170,9 +166,7 @@ R_RotateBmodel (void)
/* /*
================ R_RecursiveClipBPoly
R_RecursiveClipBPoly
================
*/ */
void void
R_RecursiveClipBPoly (bedge_t *pedges, mnode_t *pnode, msurface_t *psurf) R_RecursiveClipBPoly (bedge_t *pedges, mnode_t *pnode, msurface_t *psurf)
@ -322,9 +316,7 @@ R_RecursiveClipBPoly (bedge_t *pedges, mnode_t *pnode, msurface_t *psurf)
/* /*
================ R_DrawSolidClippedSubmodelPolygons
R_DrawSolidClippedSubmodelPolygons
================
*/ */
void void
R_DrawSolidClippedSubmodelPolygons (model_t *pmodel) R_DrawSolidClippedSubmodelPolygons (model_t *pmodel)
@ -397,9 +389,7 @@ R_DrawSolidClippedSubmodelPolygons (model_t *pmodel)
/* /*
================ R_DrawSubmodelPolygons
R_DrawSubmodelPolygons
================
*/ */
void void
R_DrawSubmodelPolygons (model_t *pmodel, int clipflags) R_DrawSubmodelPolygons (model_t *pmodel, int clipflags)
@ -434,9 +424,7 @@ R_DrawSubmodelPolygons (model_t *pmodel, int clipflags)
/* /*
================ R_RecursiveWorldNode
R_RecursiveWorldNode
================
*/ */
void void
R_RecursiveWorldNode (mnode_t *node, int clipflags) R_RecursiveWorldNode (mnode_t *node, int clipflags)
@ -602,9 +590,7 @@ R_RecursiveWorldNode (mnode_t *node, int clipflags)
/* /*
================ R_RenderWorld
R_RenderWorld
================
*/ */
void void
R_RenderWorld (void) R_RenderWorld (void)

View file

@ -80,9 +80,7 @@ qboolean r_lastvertvalid;
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ R_EmitEdge
R_EmitEdge
================
*/ */
void void
R_EmitEdge (mvertex_t *pv0, mvertex_t *pv1) R_EmitEdge (mvertex_t *pv0, mvertex_t *pv1)
@ -249,9 +247,7 @@ R_EmitEdge (mvertex_t *pv0, mvertex_t *pv1)
/* /*
================ R_ClipEdge
R_ClipEdge
================
*/ */
void void
R_ClipEdge (mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip) R_ClipEdge (mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip)
@ -338,9 +334,7 @@ R_ClipEdge (mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip)
/* /*
================ R_EmitCachedEdge
R_EmitCachedEdge
================
*/ */
void void
R_EmitCachedEdge (void) R_EmitCachedEdge (void)
@ -362,9 +356,7 @@ R_EmitCachedEdge (void)
/* /*
================ R_RenderFace
R_RenderFace
================
*/ */
void void
R_RenderFace (msurface_t *fa, int clipflags) R_RenderFace (msurface_t *fa, int clipflags)
@ -533,9 +525,7 @@ R_RenderFace (msurface_t *fa, int clipflags)
/* /*
================ R_RenderBmodelFace
R_RenderBmodelFace
================
*/ */
void void
R_RenderBmodelFace (bedge_t *pedges, msurface_t *psurf) R_RenderBmodelFace (bedge_t *pedges, msurface_t *psurf)
@ -638,9 +628,7 @@ R_RenderBmodelFace (bedge_t *pedges, msurface_t *psurf)
/* /*
================ R_RenderPoly
R_RenderPoly
================
*/ */
void void
R_RenderPoly (msurface_t *fa, int clipflags) R_RenderPoly (msurface_t *fa, int clipflags)
@ -810,9 +798,7 @@ R_RenderPoly (msurface_t *fa, int clipflags)
/* /*
================ R_ZDrawSubmodelPolys
R_ZDrawSubmodelPolys
================
*/ */
void void
R_ZDrawSubmodelPolys (model_t *pmodel) R_ZDrawSubmodelPolys (model_t *pmodel)

View file

@ -92,9 +92,7 @@ R_TrailingEdge (surf_t *surf, edge_t *edge);
/* /*
============== R_DrawCulledPolys
R_DrawCulledPolys
==============
*/ */
void void
R_DrawCulledPolys (void) R_DrawCulledPolys (void)
@ -129,9 +127,7 @@ R_DrawCulledPolys (void)
/* /*
============== R_BeginEdgeFrame
R_BeginEdgeFrame
==============
*/ */
void void
R_BeginEdgeFrame (void) R_BeginEdgeFrame (void)
@ -167,14 +163,13 @@ R_BeginEdgeFrame (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============== R_InsertNewEdges
R_InsertNewEdges
Adds the edges in the linked list edgestoadd, adding them to the edges in the Adds the edges in the linked list edgestoadd, adding them to the edges
linked list edgelist. edgestoadd is assumed to be sorted on u, and non-empty (this is actually newedges[v]). edgelist is assumed to be sorted on u, with a in the linked list edgelist. edgestoadd is assumed to be sorted on u,
sentinel at the end (actually, this is the active edge table starting at and non-empty (this is actually newedges[v]). edgelist is assumed to
edge_head.next). be sorted on u, with a sentinel at the end (actually, this is the
============== active edge table starting at edge_head.next).
*/ */
void void
R_InsertNewEdges (edge_t *edgestoadd, edge_t *edgelist) R_InsertNewEdges (edge_t *edgestoadd, edge_t *edgelist)
@ -213,9 +208,7 @@ R_InsertNewEdges (edge_t *edgestoadd, edge_t *edgelist)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============== R_RemoveEdges
R_RemoveEdges
==============
*/ */
void void
R_RemoveEdges (edge_t *pedge) R_RemoveEdges (edge_t *pedge)
@ -233,9 +226,7 @@ R_RemoveEdges (edge_t *pedge)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============== R_StepActiveU
R_StepActiveU
==============
*/ */
void void
R_StepActiveU (edge_t *pedge) R_StepActiveU (edge_t *pedge)
@ -300,9 +291,7 @@ R_StepActiveU (edge_t *pedge)
/* /*
============== R_CleanupSpan
R_CleanupSpan
==============
*/ */
void void
R_CleanupSpan (void) R_CleanupSpan (void)
@ -332,9 +321,7 @@ R_CleanupSpan (void)
/* /*
============== R_LeadingEdgeBackwards
R_LeadingEdgeBackwards
==============
*/ */
void void
R_LeadingEdgeBackwards (edge_t *edge) R_LeadingEdgeBackwards (edge_t *edge)
@ -409,9 +396,7 @@ R_LeadingEdgeBackwards (edge_t *edge)
/* /*
============== R_TrailingEdge
R_TrailingEdge
==============
*/ */
void void
R_TrailingEdge (surf_t *surf, edge_t *edge) R_TrailingEdge (surf_t *surf, edge_t *edge)
@ -450,9 +435,7 @@ R_TrailingEdge (surf_t *surf, edge_t *edge)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
============== R_LeadingEdge
R_LeadingEdge
==============
*/ */
void void
R_LeadingEdge (edge_t *edge) R_LeadingEdge (edge_t *edge)
@ -567,9 +550,7 @@ R_LeadingEdge (edge_t *edge)
/* /*
============== R_GenerateSpans
R_GenerateSpans
==============
*/ */
void void
R_GenerateSpans (void) R_GenerateSpans (void)
@ -606,9 +587,7 @@ R_GenerateSpans (void)
/* /*
============== R_GenerateSpansBackward
R_GenerateSpansBackward
==============
*/ */
void void
R_GenerateSpansBackward (void) R_GenerateSpansBackward (void)
@ -635,16 +614,14 @@ R_GenerateSpansBackward (void)
/* /*
============== R_ScanEdges
R_ScanEdges
Input: Input:
newedges[] array newedges[] array
this has links to edges, which have links to surfaces this has links to edges, which have links to surfaces
Output: Output:
Each surface has a linked list of its visible spans Each surface has a linked list of its visible spans
==============
*/ */
void void
R_ScanEdges (void) R_ScanEdges (void)

View file

@ -43,11 +43,7 @@ mnode_t *r_pefragtopnode;
//=========================================================================== //===========================================================================
/* /*
===============================================================================
ENTITY FRAGMENT FUNCTIONS ENTITY FRAGMENT FUNCTIONS
===============================================================================
*/ */
efrag_t **lastlink; efrag_t **lastlink;
@ -58,11 +54,9 @@ entity_t *r_addent;
/* /*
================ R_RemoveEfrags
R_RemoveEfrags
Call when removing an object from the world or moving it to another position Call when removing an object from the world or moving it to another position
================
*/ */
void void
R_RemoveEfrags (entity_t *ent) R_RemoveEfrags (entity_t *ent)
@ -96,9 +90,7 @@ R_RemoveEfrags (entity_t *ent)
} }
/* /*
=================== R_SplitEntityOnNode
R_SplitEntityOnNode
===================
*/ */
void void
R_SplitEntityOnNode (mnode_t *node) R_SplitEntityOnNode (mnode_t *node)
@ -162,9 +154,7 @@ R_SplitEntityOnNode (mnode_t *node)
/* /*
=================== R_SplitEntityOnNode2
R_SplitEntityOnNode2
===================
*/ */
void void
R_SplitEntityOnNode2 (mnode_t *node) R_SplitEntityOnNode2 (mnode_t *node)
@ -200,9 +190,7 @@ R_SplitEntityOnNode2 (mnode_t *node)
/* /*
=========== R_AddEfrags
R_AddEfrags
===========
*/ */
void void
R_AddEfrags (entity_t *ent) R_AddEfrags (entity_t *ent)
@ -235,11 +223,9 @@ R_AddEfrags (entity_t *ent)
/* /*
================ R_StoreEfrags
R_StoreEfrags
// FIXME: a lot of this goes away with edge-based // FIXME: a lot of this goes away with edge-based
================
*/ */
void void
R_StoreEfrags (efrag_t **ppefrag) R_StoreEfrags (efrag_t **ppefrag)

View file

@ -36,9 +36,7 @@ int r_dlightframecount;
/* /*
================== R_AnimateLight
R_AnimateLight
==================
*/ */
void void
R_AnimateLight (void) R_AnimateLight (void)
@ -63,17 +61,11 @@ R_AnimateLight (void)
/* /*
============================================================================= DYNAMIC LIGHTS
DYNAMIC LIGHTS
=============================================================================
*/ */
/* /*
============= R_MarkLights
R_MarkLights
=============
*/ */
void void
R_MarkLights (vec3_t lightorigin, dlight_t *light, int bit, mnode_t *node) R_MarkLights (vec3_t lightorigin, dlight_t *light, int bit, mnode_t *node)
@ -113,9 +105,7 @@ R_MarkLights (vec3_t lightorigin, dlight_t *light, int bit, mnode_t *node)
/* /*
============= R_PushDlights
R_PushDlights
=============
*/ */
void void
R_PushDlights (vec3_t entorigin) R_PushDlights (vec3_t entorigin)
@ -138,11 +128,7 @@ R_PushDlights (vec3_t entorigin)
/* /*
============================================================================= LIGHT SAMPLING
LIGHT SAMPLING
=============================================================================
*/ */
int int

View file

@ -185,9 +185,7 @@ void R_NetGraph (void);
void R_ZGraph (void); void R_ZGraph (void);
/* /*
================== R_Textures_Init
R_Textures_Init
==================
*/ */
void void
R_Textures_Init (void) R_Textures_Init (void)
@ -222,9 +220,7 @@ R_Textures_Init (void)
void R_LoadSky_f (void); void R_LoadSky_f (void);
/* /*
=============== R_Init
R_Init
===============
*/ */
void void
R_Init (void) R_Init (void)
@ -300,9 +296,7 @@ R_Init_Cvars (void)
} }
/* /*
=============== R_NewMap
R_NewMap
===============
*/ */
void void
R_NewMap (void) R_NewMap (void)
@ -360,9 +354,7 @@ R_NewMap (void)
/* /*
=============== R_SetVrect
R_SetVrect
===============
*/ */
void void
R_SetVrect (vrect_t *pvrectin, vrect_t *pvrect, int lineadj) R_SetVrect (vrect_t *pvrectin, vrect_t *pvrect, int lineadj)
@ -418,12 +410,10 @@ R_SetVrect (vrect_t *pvrectin, vrect_t *pvrect, int lineadj)
/* /*
=============== R_ViewChanged
R_ViewChanged
Called every time the vid structure or r_refdef changes. Called every time the vid structure or r_refdef changes.
Guaranteed to be called before the first refresh Guaranteed to be called before the first refresh
===============
*/ */
void void
R_ViewChanged (vrect_t *pvrect, int lineadj, float aspect) R_ViewChanged (vrect_t *pvrect, int lineadj, float aspect)
@ -551,9 +541,7 @@ R_ViewChanged (vrect_t *pvrect, int lineadj, float aspect)
/* /*
=============== R_MarkLeaves
R_MarkLeaves
===============
*/ */
void void
R_MarkLeaves (void) R_MarkLeaves (void)
@ -611,9 +599,7 @@ R_ShowNearestLoc (void)
} }
/* /*
============= R_DrawEntitiesOnList
R_DrawEntitiesOnList
=============
*/ */
void void
R_DrawEntitiesOnList (void) R_DrawEntitiesOnList (void)
@ -686,9 +672,7 @@ R_DrawEntitiesOnList (void)
} }
/* /*
============= R_DrawViewModel
R_DrawViewModel
=============
*/ */
void void
R_DrawViewModel (void) R_DrawViewModel (void)
@ -758,9 +742,7 @@ R_DrawViewModel (void)
/* /*
============= R_BmodelCheckBBox
R_BmodelCheckBBox
=============
*/ */
int int
R_BmodelCheckBBox (model_t *clmodel, float *minmaxs) R_BmodelCheckBBox (model_t *clmodel, float *minmaxs)
@ -819,9 +801,7 @@ R_BmodelCheckBBox (model_t *clmodel, float *minmaxs)
/* /*
============= R_DrawBEntitiesOnList
R_DrawBEntitiesOnList
=============
*/ */
void void
R_DrawBEntitiesOnList (void) R_DrawBEntitiesOnList (void)
@ -944,9 +924,7 @@ R_DrawBEntitiesOnList (void)
/* /*
================ R_EdgeDrawing
R_EdgeDrawing
================
*/ */
void void
R_EdgeDrawing (void) R_EdgeDrawing (void)
@ -1015,11 +993,9 @@ R_EdgeDrawing (void)
/* /*
================ R_RenderView
R_RenderView
r_refdef must be set before the first call r_refdef must be set before the first call
================
*/ */
void void
R_RenderView_ (void) R_RenderView_ (void)
@ -1145,9 +1121,7 @@ R_RenderView (void)
} }
/* /*
================ R_InitTurb
R_InitTurb
================
*/ */
void void
R_InitTurb (void) R_InitTurb (void)

View file

@ -45,9 +45,7 @@ qboolean allowskybox; // whether or not to allow skyboxes
// --KB // --KB
/* /*
=============== R_CheckVariables
R_CheckVariables
===============
*/ */
void void
R_CheckVariables (void) R_CheckVariables (void)
@ -56,11 +54,9 @@ R_CheckVariables (void)
/* /*
============ Show
Show
Debugging use Debugging use
============
*/ */
void void
Show (void) Show (void)
@ -75,11 +71,9 @@ Show (void)
} }
/* /*
==================== R_TimeRefresh_f
R_TimeRefresh_f
For program optimization For program optimization
====================
*/ */
void void
R_TimeRefresh_f (void) R_TimeRefresh_f (void)
@ -132,11 +126,9 @@ R_LoadSky_f (void)
/* /*
================ R_LineGraph
R_LineGraph
Only called by R_DisplayTime Only called by R_DisplayTime
================
*/ */
void void
R_LineGraph (int x, int y, int h) R_LineGraph (int x, int y, int h)
@ -180,11 +172,9 @@ R_LineGraph (int x, int y, int h)
} }
/* /*
============== R_TimeGraph
R_TimeGraph
Performance monitoring tool Performance monitoring tool
==============
*/ */
#define MAX_TIMINGS 100 #define MAX_TIMINGS 100
extern float mouse_x, mouse_y; extern float mouse_x, mouse_y;
@ -232,9 +222,7 @@ R_TimeGraph (void)
} }
/* /*
============== R_NetGraph
R_NetGraph
==============
*/ */
void void
R_NetGraph (void) R_NetGraph (void)
@ -267,9 +255,7 @@ R_NetGraph (void)
} }
/* /*
============== R_ZGraph
R_ZGraph
==============
*/ */
void void
R_ZGraph (void) R_ZGraph (void)
@ -292,9 +278,7 @@ R_ZGraph (void)
} }
/* /*
============= R_PrintTimes
R_PrintTimes
=============
*/ */
void void
R_PrintTimes (void) R_PrintTimes (void)
@ -313,9 +297,7 @@ R_PrintTimes (void)
/* /*
============= R_PrintDSpeeds
R_PrintDSpeeds
=============
*/ */
void void
R_PrintDSpeeds (void) R_PrintDSpeeds (void)
@ -341,9 +323,7 @@ R_PrintDSpeeds (void)
/* /*
============= R_PrintAliasStats
R_PrintAliasStats
=============
*/ */
void void
R_PrintAliasStats (void) R_PrintAliasStats (void)
@ -376,9 +356,7 @@ WarpPalette (void)
/* /*
=================== R_TransformFrustum
R_TransformFrustum
===================
*/ */
void void
R_TransformFrustum (void) R_TransformFrustum (void)
@ -405,9 +383,7 @@ R_TransformFrustum (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ TransformVector
TransformVector
================
*/ */
void void
TransformVector (vec3_t in, vec3_t out) TransformVector (vec3_t in, vec3_t out)
@ -421,9 +397,7 @@ TransformVector (vec3_t in, vec3_t out)
/* /*
================ R_TransformPlane
R_TransformPlane
================
*/ */
void void
R_TransformPlane (mplane_t *p, float *normal, float *dist) R_TransformPlane (mplane_t *p, float *normal, float *dist)
@ -438,9 +412,7 @@ R_TransformPlane (mplane_t *p, float *normal, float *dist)
/* /*
=============== R_SetUpFrustumIndexes
R_SetUpFrustumIndexes
===============
*/ */
void void
R_SetUpFrustumIndexes (void) R_SetUpFrustumIndexes (void)
@ -468,9 +440,7 @@ R_SetUpFrustumIndexes (void)
/* /*
=============== R_SetupFrame
R_SetupFrame
===============
*/ */
void void
R_SetupFrame (void) R_SetupFrame (void)

View file

@ -58,9 +58,7 @@ vec3_t r_pright, r_pup, r_ppn;
cvar_t *r_particles; cvar_t *r_particles;
/* /*
=============== R_InitParticles
R_InitParticles
===============
*/ */
void void
R_InitParticles (void) R_InitParticles (void)
@ -83,9 +81,7 @@ R_InitParticles (void)
/* /*
=============== R_ClearParticles
R_ClearParticles
===============
*/ */
void void
R_ClearParticles (void) R_ClearParticles (void)
@ -189,10 +185,7 @@ R_RunPuffEffect (vec3_t pos, byte type, byte cnt)
} }
/* /*
=============== R_ParticleExplosion
R_ParticleExplosion
===============
*/ */
void void
R_ParticleExplosion (vec3_t org) R_ParticleExplosion (vec3_t org)
@ -231,10 +224,7 @@ R_ParticleExplosion (vec3_t org)
} }
/* /*
=============== R_BlobExplosion
R_BlobExplosion
===============
*/ */
void void
R_BlobExplosion (vec3_t org) R_BlobExplosion (vec3_t org)
@ -274,10 +264,7 @@ R_BlobExplosion (vec3_t org)
} }
/* /*
=============== R_RunParticleEffect
R_RunParticleEffect
===============
*/ */
void void
R_RunParticleEffect (vec3_t org, int color, int count) R_RunParticleEffect (vec3_t org, int color, int count)
@ -316,10 +303,7 @@ R_RunParticleEffect (vec3_t org, int color, int count)
/* /*
=============== R_LavaSplash
R_LavaSplash
===============
*/ */
void void
R_LavaSplash (vec3_t org) R_LavaSplash (vec3_t org)
@ -361,10 +345,7 @@ R_LavaSplash (vec3_t org)
} }
/* /*
=============== R_TeleportSplash
R_TeleportSplash
===============
*/ */
void void
R_TeleportSplash (vec3_t org) R_TeleportSplash (vec3_t org)
@ -489,9 +470,7 @@ R_RocketTrail (int type, entity_t *ent)
/* /*
=============== R_DrawParticles
R_DrawParticles
===============
*/ */
void void
R_DrawParticles (void) R_DrawParticles (void)

View file

@ -58,11 +58,9 @@ byte newsky[128 * 256]; // newsky and topsky both pack in
/* /*
============= R_InitSky
R_InitSky
A sky texture is 256*128, with the right side being a masked overlay A sky texture is 256*128, with the right side being a masked overlay
==============
*/ */
void void
R_InitSky (texture_t *mt) R_InitSky (texture_t *mt)
@ -95,9 +93,7 @@ R_InitSky (texture_t *mt)
/* /*
================= R_MakeSky
R_MakeSky
=================
*/ */
void void
R_MakeSky (void) R_MakeSky (void)
@ -158,9 +154,7 @@ R_MakeSky (void)
/* /*
================= R_GenSkyTile
R_GenSkyTile
=================
*/ */
void void
R_GenSkyTile (void *pdest) R_GenSkyTile (void *pdest)
@ -216,9 +210,7 @@ R_GenSkyTile (void *pdest)
/* /*
================= R_GenSkyTile16
R_GenSkyTile16
=================
*/ */
void void
R_GenSkyTile16 (void *pdest) R_GenSkyTile16 (void *pdest)
@ -256,9 +248,7 @@ R_GenSkyTile16 (void *pdest)
/* /*
============= R_SetSkyFrame
R_SetSkyFrame
==============
*/ */
void void
R_SetSkyFrame (void) R_SetSkyFrame (void)

View file

@ -50,9 +50,7 @@ spritedesc_t r_spritedesc;
/* /*
================ R_RotateSprite
R_RotateSprite
================
*/ */
void void
R_RotateSprite (float beamlength) R_RotateSprite (float beamlength)
@ -69,12 +67,10 @@ R_RotateSprite (float beamlength)
/* /*
============= R_ClipSpriteFace
R_ClipSpriteFace
Clips the winding at clip_verts[clip_current] and changes clip_current Clips the winding at clip_verts[clip_current] and changes clip_current
Throws out the back side Throws out the back side
==============
*/ */
int int
R_ClipSpriteFace (int nump, clipplane_t *pclipplane) R_ClipSpriteFace (int nump, clipplane_t *pclipplane)
@ -147,9 +143,7 @@ R_ClipSpriteFace (int nump, clipplane_t *pclipplane)
/* /*
================ R_SetupAndDrawSprite
R_SetupAndDrawSprite
================
*/ */
void void
R_SetupAndDrawSprite (void) R_SetupAndDrawSprite (void)
@ -246,9 +240,7 @@ R_SetupAndDrawSprite (void)
/* /*
================ R_GetSpriteframe
R_GetSpriteframe
================
*/ */
mspriteframe_t * mspriteframe_t *
R_GetSpriteframe (msprite_t *psprite) R_GetSpriteframe (msprite_t *psprite)
@ -293,9 +285,7 @@ R_GetSpriteframe (msprite_t *psprite)
/* /*
================ R_DrawSprite
R_DrawSprite
================
*/ */
void void
R_DrawSprite (void) R_DrawSprite (void)

View file

@ -64,9 +64,7 @@ static void (*surfmiptable[4]) (void) = {
unsigned int blocklights[18 * 18]; unsigned int blocklights[18 * 18];
/* /*
=============== R_AddDynamicLights
R_AddDynamicLights
===============
*/ */
void void
R_AddDynamicLights (void) R_AddDynamicLights (void)
@ -130,11 +128,9 @@ R_AddDynamicLights (void)
} }
/* /*
=============== R_BuildLightMap
R_BuildLightMap
Combine and scale multiple lightmaps into the 8.8 format in blocklights Combine and scale multiple lightmaps into the 8.8 format in blocklights
===============
*/ */
void void
R_BuildLightMap (void) R_BuildLightMap (void)
@ -189,11 +185,9 @@ R_BuildLightMap (void)
/* /*
=============== R_TextureAnimation
R_TextureAnimation
Returns the proper texture for a given time and base texture Returns the proper texture for a given time and base texture
===============
*/ */
texture_t * texture_t *
R_TextureAnimation (texture_t *base) R_TextureAnimation (texture_t *base)
@ -225,9 +219,7 @@ R_TextureAnimation (texture_t *base)
/* /*
=============== R_DrawSurface
R_DrawSurface
===============
*/ */
void void
R_DrawSurface (void) R_DrawSurface (void)
@ -317,9 +309,7 @@ R_DrawSurface (void)
#ifndef USE_INTEL_ASM #ifndef USE_INTEL_ASM
/* /*
================ R_DrawSurfaceBlock8_mip0
R_DrawSurfaceBlock8_mip0
================
*/ */
void void
R_DrawSurfaceBlock8_mip0 (void) R_DrawSurfaceBlock8_mip0 (void)
@ -365,9 +355,7 @@ R_DrawSurfaceBlock8_mip0 (void)
/* /*
================ R_DrawSurfaceBlock8_mip1
R_DrawSurfaceBlock8_mip1
================
*/ */
void void
R_DrawSurfaceBlock8_mip1 (void) R_DrawSurfaceBlock8_mip1 (void)
@ -413,9 +401,7 @@ R_DrawSurfaceBlock8_mip1 (void)
/* /*
================ R_DrawSurfaceBlock8_mip2
R_DrawSurfaceBlock8_mip2
================
*/ */
void void
R_DrawSurfaceBlock8_mip2 (void) R_DrawSurfaceBlock8_mip2 (void)
@ -461,9 +447,7 @@ R_DrawSurfaceBlock8_mip2 (void)
/* /*
================ R_DrawSurfaceBlock8_mip3
R_DrawSurfaceBlock8_mip3
================
*/ */
void void
R_DrawSurfaceBlock8_mip3 (void) R_DrawSurfaceBlock8_mip3 (void)
@ -509,11 +493,9 @@ R_DrawSurfaceBlock8_mip3 (void)
/* /*
================ R_DrawSurfaceBlock16
R_DrawSurfaceBlock16
FIXME: make this work FIXME: make this work
================
*/ */
void void
R_DrawSurfaceBlock16 (void) R_DrawSurfaceBlock16 (void)
@ -560,9 +542,7 @@ R_DrawSurfaceBlock16 (void)
//============================================================================ //============================================================================
/* /*
================ R_GenTurbTile
R_GenTurbTile
================
*/ */
void void
R_GenTurbTile (pixel_t *pbasetex, void *pdest) R_GenTurbTile (pixel_t *pbasetex, void *pdest)
@ -585,9 +565,7 @@ R_GenTurbTile (pixel_t *pbasetex, void *pdest)
/* /*
================ R_GenTurbTile16
R_GenTurbTile16
================
*/ */
void void
R_GenTurbTile16 (pixel_t *pbasetex, void *pdest) R_GenTurbTile16 (pixel_t *pbasetex, void *pdest)
@ -610,9 +588,7 @@ R_GenTurbTile16 (pixel_t *pbasetex, void *pdest)
/* /*
================ R_GenTile
R_GenTile
================
*/ */
void void
R_GenTile (msurface_t *psurf, void *pdest) R_GenTile (msurface_t *psurf, void *pdest)

View file

@ -83,10 +83,7 @@ player_state_t *view_message;
void BuildGammaTable (float, float); void BuildGammaTable (float, float);
/* /*
=============== V_CalcRoll
V_CalcRoll
===============
*/ */
float float
V_CalcRoll (vec3_t angles, vec3_t velocity) V_CalcRoll (vec3_t angles, vec3_t velocity)
@ -114,10 +111,7 @@ V_CalcRoll (vec3_t angles, vec3_t velocity)
/* /*
=============== V_CalcBob
V_CalcBob
===============
*/ */
float float
V_CalcBob (void) V_CalcBob (void)
@ -189,17 +183,16 @@ V_StopPitchDrift (void)
} }
/* /*
=============== V_DriftPitch
V_DriftPitch
Moves the client pitch angle towards cl.idealpitch sent by the server. Moves the client pitch angle towards cl.idealpitch sent by the server.
If the user is adjusting pitch manually, either with lookup/lookdown, If the user is adjusting pitch manually, either with lookup/lookdown,
mlook and mouse, or klook and keyboard, pitch drifting is constantly stopped. mlook and mouse, or klook and keyboard, pitch drifting is constantly
stopped.
Drifting is enabled when the center view key is hit, mlook is released and Drifting is enabled when the center view key is hit, mlook is released
lookspring is non 0, or when and lookspring is non 0, or when
===============
*/ */
void void
V_DriftPitch (void) V_DriftPitch (void)
@ -254,11 +247,7 @@ V_DriftPitch (void)
} }
/* /*
==============================================================================
PALETTE FLASHES PALETTE FLASHES
==============================================================================
*/ */
extern cvar_t *cl_cshift_bonus; extern cvar_t *cl_cshift_bonus;
@ -277,9 +266,7 @@ cvar_t *contrast;
byte gammatable[256]; // palette is sent through this byte gammatable[256]; // palette is sent through this
/* /*
================= V_CheckGamma
V_CheckGamma
=================
*/ */
qboolean qboolean
V_CheckGamma (void) V_CheckGamma (void)
@ -299,9 +286,7 @@ V_CheckGamma (void)
} }
/* /*
=============== V_ParseDamage
V_ParseDamage
===============
*/ */
void void
V_ParseDamage (void) V_ParseDamage (void)
@ -365,9 +350,7 @@ V_ParseDamage (void)
/* /*
================== V_cshift_f
V_cshift_f
==================
*/ */
void void
V_cshift_f (void) V_cshift_f (void)
@ -380,11 +363,9 @@ V_cshift_f (void)
/* /*
================== V_BonusFlash_f
V_BonusFlash_f
When you run over an item, the server sends this command When you run over an item, the server sends this command
==================
*/ */
void void
V_BonusFlash_f (void) V_BonusFlash_f (void)
@ -400,11 +381,9 @@ V_BonusFlash_f (void)
} }
/* /*
============= V_SetContentsColor
V_SetContentsColor
Underwater, lava, etc each has a color shift Underwater, lava, etc each has a color shift
=============
*/ */
void void
@ -435,11 +414,7 @@ V_SetContentsColor (int contents)
/* /*
==============================================================================
VIEW RENDERING VIEW RENDERING
==============================================================================
*/ */
float float
@ -452,9 +427,7 @@ angledelta (float a)
} }
/* /*
================== CalcGunAngle
CalcGunAngle
==================
*/ */
void void
CalcGunAngle (void) CalcGunAngle (void)
@ -496,9 +469,7 @@ CalcGunAngle (void)
} }
/* /*
============== V_BoundOffsets
V_BoundOffsets
==============
*/ */
void void
V_BoundOffsets (void) V_BoundOffsets (void)
@ -521,11 +492,9 @@ V_BoundOffsets (void)
} }
/* /*
============== V_AddIdle
V_AddIdle
Idle swaying Idle swaying
==============
*/ */
void void
V_AddIdle (void) V_AddIdle (void)
@ -553,11 +522,9 @@ V_AddIdle (void)
/* /*
============== V_CalcViewRoll
V_CalcViewRoll
Roll is induced by movement and damage Roll is induced by movement and damage
==============
*/ */
void void
V_CalcViewRoll (void) V_CalcViewRoll (void)
@ -579,10 +546,7 @@ V_CalcViewRoll (void)
/* /*
================== V_CalcIntermissionRefdef
V_CalcIntermissionRefdef
==================
*/ */
void void
V_CalcIntermissionRefdef (void) V_CalcIntermissionRefdef (void)
@ -605,10 +569,7 @@ V_CalcIntermissionRefdef (void)
} }
/* /*
================== V_CalcRefdef
V_CalcRefdef
==================
*/ */
void void
V_CalcRefdef (void) V_CalcRefdef (void)
@ -717,9 +678,7 @@ V_CalcRefdef (void)
} }
/* /*
============= DropPunchAngle
DropPunchAngle
=============
*/ */
void void
DropPunchAngle (void) DropPunchAngle (void)
@ -730,12 +689,10 @@ DropPunchAngle (void)
} }
/* /*
================== V_RenderView
V_RenderView
The player's clipping box goes from (-16 -16 -24) to (16 16 32) from The player's clipping box goes from (-16 -16 -24) to (16 16 32) from
the entity origin, so any view position inside that will be valid the entity origin, so any view position inside that will be valid
==================
*/ */
extern vrect_t scr_vrect; extern vrect_t scr_vrect;
@ -767,9 +724,7 @@ V_RenderView (void)
//============================================================================ //============================================================================
/* /*
============= V_Init
V_Init
=============
*/ */
void void
V_Init (void) V_Init (void)

View file

@ -90,11 +90,9 @@ void Sbar_MiniDeathmatchOverlay (void);
static qboolean largegame = false; static qboolean largegame = false;
/* /*
=============== Sbar_ShowTeamScores
Sbar_ShowTeamScores
Tab key down Tab key down
===============
*/ */
void void
Sbar_ShowTeamScores (void) Sbar_ShowTeamScores (void)
@ -107,11 +105,9 @@ Sbar_ShowTeamScores (void)
} }
/* /*
=============== Sbar_DontShowTeamScores
Sbar_DontShowTeamScores
Tab key up Tab key up
===============
*/ */
void void
Sbar_DontShowTeamScores (void) Sbar_DontShowTeamScores (void)
@ -121,11 +117,9 @@ Sbar_DontShowTeamScores (void)
} }
/* /*
=============== Sbar_ShowScores
Sbar_ShowScores
Tab key down Tab key down
===============
*/ */
void void
Sbar_ShowScores (void) Sbar_ShowScores (void)
@ -138,11 +132,9 @@ Sbar_ShowScores (void)
} }
/* /*
=============== Sbar_DontShowScores
Sbar_DontShowScores
Tab key up Tab key up
===============
*/ */
void void
Sbar_DontShowScores (void) Sbar_DontShowScores (void)
@ -152,9 +144,7 @@ Sbar_DontShowScores (void)
} }
/* /*
=============== Sbar_Changed
Sbar_Changed
===============
*/ */
void void
Sbar_Changed (void) Sbar_Changed (void)
@ -163,9 +153,7 @@ Sbar_Changed (void)
} }
/* /*
=============== Sbar_Init
Sbar_Init
===============
*/ */
void void
Sbar_Init (void) Sbar_Init (void)
@ -263,9 +251,7 @@ Sbar_Init (void)
// drawing routines are reletive to the status bar location // drawing routines are reletive to the status bar location
/* /*
============= Sbar_DrawPic
Sbar_DrawPic
=============
*/ */
void void
Sbar_DrawPic (int x, int y, qpic_t *pic) Sbar_DrawPic (int x, int y, qpic_t *pic)
@ -275,10 +261,9 @@ Sbar_DrawPic (int x, int y, qpic_t *pic)
} }
/* /*
============= Sbar_DrawSubPic
Sbar_DrawSubPic
============= JACK: Draws a portion of the picture in the status bar.
JACK: Draws a portion of the picture in the status bar.
*/ */
void void
@ -291,9 +276,7 @@ Sbar_DrawSubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width,
/* /*
============= Sbar_DrawTransPic
Sbar_DrawTransPic
=============
*/ */
void void
Sbar_DrawTransPic (int x, int y, qpic_t *pic) Sbar_DrawTransPic (int x, int y, qpic_t *pic)
@ -303,11 +286,9 @@ Sbar_DrawTransPic (int x, int y, qpic_t *pic)
} }
/* /*
================ Sbar_DrawCharacter
Sbar_DrawCharacter
Draws one solid graphics character Draws one solid graphics character
================
*/ */
void void
Sbar_DrawCharacter (int x, int y, int num) Sbar_DrawCharacter (int x, int y, int num)
@ -317,9 +298,7 @@ Sbar_DrawCharacter (int x, int y, int num)
} }
/* /*
================ Sbar_DrawString
Sbar_DrawString
================
*/ */
void void
Sbar_DrawString (int x, int y, char *str) Sbar_DrawString (int x, int y, char *str)
@ -329,9 +308,7 @@ Sbar_DrawString (int x, int y, char *str)
} }
/* /*
============= Sbar_itoa
Sbar_itoa
=============
*/ */
int int
Sbar_itoa (int num, char *buf) Sbar_itoa (int num, char *buf)
@ -363,9 +340,7 @@ Sbar_itoa (int num, char *buf)
/* /*
============= Sbar_DrawNum
Sbar_DrawNum
=============
*/ */
void void
Sbar_DrawNum (int x, int y, int num, int digits, int color) Sbar_DrawNum (int x, int y, int num, int digits, int color)
@ -410,9 +385,7 @@ int teamsort[MAX_CLIENTS];
int scoreboardteams; int scoreboardteams;
/* /*
=============== Sbar_SortFrags
Sbar_SortFrags
===============
*/ */
void void
Sbar_SortFrags (qboolean includespec) Sbar_SortFrags (qboolean includespec)
@ -514,9 +487,7 @@ Sbar_ColorForMap (int m)
/* /*
=============== Sbar_SoloScoreboard
Sbar_SoloScoreboard
===============
*/ */
void void
Sbar_SoloScoreboard (void) Sbar_SoloScoreboard (void)
@ -538,9 +509,7 @@ Sbar_SoloScoreboard (void)
//============================================================================= //=============================================================================
/* /*
=============== Sbar_DrawInventory
Sbar_DrawInventory
===============
*/ */
void void
Sbar_DrawInventory (void) Sbar_DrawInventory (void)
@ -645,9 +614,7 @@ Sbar_DrawInventory (void)
//============================================================================= //=============================================================================
/* /*
=============== Sbar_DrawFrags
Sbar_DrawFrags
===============
*/ */
void void
Sbar_DrawFrags (void) Sbar_DrawFrags (void)
@ -709,9 +676,7 @@ Sbar_DrawFrags (void)
/* /*
=============== Sbar_DrawFace
Sbar_DrawFace
===============
*/ */
void void
Sbar_DrawFace (void) Sbar_DrawFace (void)
@ -750,9 +715,7 @@ Sbar_DrawFace (void)
} }
/* /*
============= Sbar_DrawNormal
Sbar_DrawNormal
=============
*/ */
void void
Sbar_DrawNormal (void) Sbar_DrawNormal (void)
@ -796,9 +759,7 @@ Sbar_DrawNormal (void)
} }
/* /*
=============== Sbar_Draw
Sbar_Draw
===============
*/ */
void void
Sbar_Draw (void) Sbar_Draw (void)
@ -873,10 +834,7 @@ Sbar_Draw (void)
//============================================================================= //=============================================================================
/* /*
================== Sbar_IntermissionNumber
Sbar_IntermissionNumber
==================
*/ */
void void
Sbar_IntermissionNumber (int x, int y, int num, int digits, int color) Sbar_IntermissionNumber (int x, int y, int num, int digits, int color)
@ -905,12 +863,10 @@ Sbar_IntermissionNumber (int x, int y, int num, int digits, int color)
} }
/* /*
================== Sbar_TeamOverlay
Sbar_TeamOverlay
team frags team frags
added by Zoid added by Zoid
==================
*/ */
void void
Sbar_TeamOverlay (void) Sbar_TeamOverlay (void)
@ -1000,11 +956,9 @@ Sbar_TeamOverlay (void)
} }
/* /*
================== Sbar_DeathmatchOverlay
Sbar_DeathmatchOverlay
ping time frags name ping time frags name
==================
*/ */
void void
Sbar_DeathmatchOverlay (int start) Sbar_DeathmatchOverlay (int start)
@ -1157,13 +1111,11 @@ Sbar_DeathmatchOverlay (int start)
} }
/* /*
================== Sbar_MiniDeathmatchOverlay
Sbar_MiniDeathmatchOverlay
frags name frags name
frags team name frags team name
displayed to right of status bar if there's room displayed to right of status bar if there's room
==================
*/ */
void void
Sbar_MiniDeathmatchOverlay (void) Sbar_MiniDeathmatchOverlay (void)
@ -1301,10 +1253,7 @@ Sbar_MiniDeathmatchOverlay (void)
/* /*
================== Sbar_IntermissionOverlay
Sbar_IntermissionOverlay
==================
*/ */
void void
Sbar_IntermissionOverlay (void) Sbar_IntermissionOverlay (void)
@ -1320,10 +1269,7 @@ Sbar_IntermissionOverlay (void)
/* /*
================== Sbar_FinaleOverlay
Sbar_FinaleOverlay
==================
*/ */
void void
Sbar_FinaleOverlay (void) Sbar_FinaleOverlay (void)

View file

@ -152,11 +152,7 @@ void SCR_ScreenShot_f (void);
void SCR_RSShot_f (void); void SCR_RSShot_f (void);
/* /*
=============================================================================== CENTER PRINTING
CENTER PRINTING
===============================================================================
*/ */
char scr_centerstring[1024]; char scr_centerstring[1024];
@ -644,11 +640,7 @@ SCR_DrawConsole (void)
/* /*
==============================================================================
SCREEN SHOTS SCREEN SHOTS
==============================================================================
*/ */

View file

@ -317,11 +317,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -302,11 +302,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -95,11 +95,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -163,9 +163,7 @@ S_SoundInfo_f (void)
/* /*
================ S_Startup
S_Startup
================
*/ */
void void
@ -193,9 +191,7 @@ S_Startup (void)
/* /*
================ S_Init
S_Init
================
*/ */
void void
S_Init (void) S_Init (void)
@ -312,10 +308,7 @@ S_Shutdown (void)
// ======================================================================= // =======================================================================
/* /*
================== S_FindName
S_FindName
==================
*/ */
sfx_t * sfx_t *
S_FindName (char *name) S_FindName (char *name)
@ -348,10 +341,7 @@ S_FindName (char *name)
/* /*
================== S_TouchSound
S_TouchSound
==================
*/ */
void void
S_TouchSound (char *name) S_TouchSound (char *name)
@ -366,10 +356,7 @@ S_TouchSound (char *name)
} }
/* /*
================== S_PrecacheSound
S_PrecacheSound
==================
*/ */
sfx_t * sfx_t *
S_PrecacheSound (char *name) S_PrecacheSound (char *name)
@ -392,9 +379,7 @@ S_PrecacheSound (char *name)
//============================================================================= //=============================================================================
/* /*
================= SND_PickChannel
SND_PickChannel
=================
*/ */
channel_t * channel_t *
SND_PickChannel (int entnum, int entchannel) SND_PickChannel (int entnum, int entchannel)
@ -436,9 +421,7 @@ SND_PickChannel (int entnum, int entchannel)
} }
/* /*
================= SND_Spatialize
SND_Spatialize
=================
*/ */
void void
SND_Spatialize (channel_t *ch) SND_Spatialize (channel_t *ch)
@ -632,9 +615,7 @@ S_ClearBuffer (void)
/* /*
================= S_StaticSound
S_StaticSound
=================
*/ */
void void
S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation)
@ -676,9 +657,7 @@ S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation)
//============================================================================= //=============================================================================
/* /*
=================== S_UpdateAmbientSounds
S_UpdateAmbientSounds
===================
*/ */
void void
S_UpdateAmbientSounds (void) S_UpdateAmbientSounds (void)
@ -728,11 +707,9 @@ S_UpdateAmbientSounds (void)
/* /*
============ S_Update
S_Update
Called once each time through the main loop Called once each time through the main loop
============
*/ */
void void
S_Update (vec3_t origin, vec3_t forward, vec3_t right, vec3_t up) S_Update (vec3_t origin, vec3_t forward, vec3_t right, vec3_t up)
@ -893,11 +870,7 @@ S_Update_ (void)
} }
/* /*
=============================================================================== console functions
console functions
===============================================================================
*/ */
void void

View file

@ -47,9 +47,7 @@ int cache_full_cycle;
byte *S_Alloc (int size); byte *S_Alloc (int size);
/* /*
================ ResampleSfx
ResampleSfx
================
*/ */
void void
ResampleSfx (sfx_t *sfx, int inrate, int inwidth, byte * data) ResampleSfx (sfx_t *sfx, int inrate, int inwidth, byte * data)
@ -164,9 +162,7 @@ ResampleSfx (sfx_t *sfx, int inrate, int inwidth, byte * data)
//============================================================================= //=============================================================================
/* /*
============== S_LoadSound
S_LoadSound
==============
*/ */
sfxcache_t * sfxcache_t *
S_LoadSound (sfx_t *s) S_LoadSound (sfx_t *s)
@ -232,11 +228,7 @@ S_LoadSound (sfx_t *s)
/* /*
=============================================================================== WAV loading
WAV loading
===============================================================================
*/ */
@ -322,9 +314,7 @@ DumpChunks (void)
} }
/* /*
============ GetWavinfo
GetWavinfo
============
*/ */
wavinfo_t wavinfo_t
GetWavinfo (char *name, byte * wav, int wavlength) GetWavinfo (char *name, byte * wav, int wavlength)

View file

@ -193,11 +193,7 @@ S_TransferPaintBuffer (int endtime)
/* /*
=============================================================================== CHANNEL MIXING
CHANNEL MIXING
===============================================================================
*/ */
void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int endtime); void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int endtime);

View file

@ -296,11 +296,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -267,11 +267,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -184,11 +184,9 @@ SNDDMA_Shutdown (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)

View file

@ -88,9 +88,7 @@ qboolean SNDDMA_InitWav (void);
/* /*
================== S_BlockSound
S_BlockSound
==================
*/ */
void void
S_BlockSound (void) S_BlockSound (void)
@ -107,9 +105,7 @@ S_BlockSound (void)
/* /*
================== S_UnblockSound
S_UnblockSound
==================
*/ */
void void
S_UnblockSound (void) S_UnblockSound (void)
@ -123,9 +119,7 @@ S_UnblockSound (void)
/* /*
================== FreeSound
FreeSound
==================
*/ */
void void
FreeSound (void) FreeSound (void)
@ -183,11 +177,9 @@ FreeSound (void)
/* /*
================== SNDDMA_InitDirect
SNDDMA_InitDirect
Direct-Sound support Direct-Sound support
==================
*/ */
sndinitstat sndinitstat
SNDDMA_InitDirect (void) SNDDMA_InitDirect (void)
@ -380,11 +372,9 @@ SNDDMA_InitDirect (void)
/* /*
================== SNDDM_InitWav
SNDDM_InitWav
Crappy windows multimedia base Crappy windows multimedia base
==================
*/ */
qboolean qboolean
SNDDMA_InitWav (void) SNDDMA_InitWav (void)
@ -494,12 +484,10 @@ SNDDMA_InitWav (void)
} }
/* /*
================== SNDDMA_Init
SNDDMA_Init
Try to find a sound device to mix for. Try to find a sound device to mix for.
Returns false if nothing is found. Returns false if nothing is found.
==================
*/ */
qboolean qboolean
@ -562,13 +550,11 @@ SNDDMA_Init (void)
} }
/* /*
============== SNDDMA_GetDMAPos
SNDDMA_GetDMAPos
return the current sample position (in mono samples read) return the current sample position (in mono samples read)
inside the recirculating dma buffer, so the mixing code will know inside the recirculating dma buffer, so the mixing code will know
how many sample are required to fill it up. how many sample are required to fill it up.
===============
*/ */
int int
SNDDMA_GetDMAPos (void) SNDDMA_GetDMAPos (void)
@ -594,11 +580,9 @@ SNDDMA_GetDMAPos (void)
} }
/* /*
============== SNDDMA_Submit
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer Send sound to device if buffer isn't really the dma buffer
===============
*/ */
void void
SNDDMA_Submit (void) SNDDMA_Submit (void)
@ -648,11 +632,9 @@ SNDDMA_Submit (void)
} }
/* /*
============== SNDDMA_Shutdown
SNDDMA_Shutdown
Reset the sound device for exiting Reset the sound device for exiting
===============
*/ */
void void
SNDDMA_Shutdown (void) SNDDMA_Shutdown (void)

View file

@ -57,20 +57,16 @@ extern redirect_t sv_redirected;
/* /*
=============================================================================== OPERATOR CONSOLE ONLY COMMANDS
OPERATOR CONSOLE ONLY COMMANDS These commands can only be entered from stdin or by a remote operator
datagram
These commands can only be entered from stdin or by a remote operator datagram
===============================================================================
*/ */
/* /*
==================== SV_SetMaster_f
SV_SetMaster_f
Make a master server current Make a master server current
====================
*/ */
void void
SV_SetMaster_f (void) SV_SetMaster_f (void)
@ -104,9 +100,7 @@ SV_SetMaster_f (void)
/* /*
================== SV_Quit_f
SV_Quit_f
==================
*/ */
void void
SV_Quit_f (void) SV_Quit_f (void)
@ -118,9 +112,7 @@ SV_Quit_f (void)
} }
/* /*
============ SV_Logfile_f
SV_Logfile_f
============
*/ */
void void
SV_Logfile_f (void) SV_Logfile_f (void)
@ -143,9 +135,7 @@ SV_Logfile_f (void)
/* /*
============ SV_Fraglogfile_f
SV_Fraglogfile_f
============
*/ */
void void
SV_Fraglogfile_f (void) SV_Fraglogfile_f (void)
@ -182,11 +172,9 @@ SV_Fraglogfile_f (void)
/* /*
================== SV_SetPlayer
SV_SetPlayer
Sets host_client and sv_player to the player with idnum Cmd_Argv(1) Sets host_client and sv_player to the player with idnum Cmd_Argv(1)
==================
*/ */
qboolean qboolean
SV_SetPlayer (void) SV_SetPlayer (void)
@ -212,11 +200,9 @@ SV_SetPlayer (void)
/* /*
================== SV_God_f
SV_God_f
Sets client to godmode Sets client to godmode
==================
*/ */
void void
SV_God_f (void) SV_God_f (void)
@ -261,9 +247,7 @@ SV_Noclip_f (void)
/* /*
================== SV_Give_f
SV_Give_f
==================
*/ */
void void
SV_Give_f (void) SV_Give_f (void)
@ -318,13 +302,11 @@ SV_Give_f (void)
static char curlevel[MAX_QPATH] = ""; static char curlevel[MAX_QPATH] = "";
/* /*
====================== SV_Map_f
SV_Map_f
handle a handle a
map <mapname> map <mapname>
command from the console or progs. command from the console or progs.
======================
*/ */
void void
SV_Map_f (void) SV_Map_f (void)
@ -366,11 +348,9 @@ SV_Map_f (void)
/* /*
================== SV_Kick_f
SV_Kick_f
Kick a user off of the server Kick a user off of the server
==================
*/ */
void void
SV_Kick_f (void) SV_Kick_f (void)
@ -399,9 +379,7 @@ SV_Kick_f (void)
/* /*
================ SV_Status_f
SV_Status_f
================
*/ */
void void
SV_Status_f (void) SV_Status_f (void)
@ -499,9 +477,7 @@ SV_Status_f (void)
} }
/* /*
================== SV_ConSay_f
SV_ConSay_f
==================
*/ */
void void
SV_ConSay_f (void) SV_ConSay_f (void)
@ -533,9 +509,7 @@ SV_ConSay_f (void)
/* /*
================== SV_Heartbeat_f
SV_Heartbeat_f
==================
*/ */
void void
SV_Heartbeat_f (void) SV_Heartbeat_f (void)
@ -555,11 +529,9 @@ SV_SendServerInfoChange (char *key, char *value)
} }
/* /*
=========== SV_Serverinfo_f
SV_Serverinfo_f
Examine or change the serverinfo string Examine or change the serverinfo string
===========
*/ */
char *CopyString (char *s); char *CopyString (char *s);
void void
@ -597,11 +569,9 @@ SV_Serverinfo_f (void)
/* /*
=========== SV_Serverinfo_f
SV_Serverinfo_f
Examine or change the serverinfo string Examine or change the serverinfo string
===========
*/ */
char *CopyString (char *s); char *CopyString (char *s);
void void
@ -628,11 +598,9 @@ SV_Localinfo_f (void)
/* /*
=========== SV_User_f
SV_User_f
Examine a users info strings Examine a users info strings
===========
*/ */
void void
SV_User_f (void) SV_User_f (void)
@ -649,11 +617,9 @@ SV_User_f (void)
} }
/* /*
================ SV_Gamedir
SV_Gamedir
Sets the fake *gamedir to a different directory. Sets the fake *gamedir to a different directory.
================
*/ */
void void
SV_Gamedir (void) SV_Gamedir (void)
@ -683,11 +649,9 @@ SV_Gamedir (void)
} }
/* /*
================ SV_Floodport_f
SV_Floodport_f
Sets the gamedir and path to a different directory. Sets the gamedir and path to a different directory.
================
*/ */
void void
@ -746,9 +710,7 @@ SV_Floodprotmsg_f (void)
} }
/* /*
================ SV_Snap
SV_Snap
================
*/ */
void void
SV_Snap (int uid) SV_Snap (int uid)
@ -800,9 +762,7 @@ SV_Snap (int uid)
} }
/* /*
================ SV_Snap_f
SV_Snap_f
================
*/ */
void void
SV_Snap_f (void) SV_Snap_f (void)
@ -820,9 +780,7 @@ SV_Snap_f (void)
} }
/* /*
================ SV_Snap
SV_Snap
================
*/ */
void void
SV_SnapAll_f (void) SV_SnapAll_f (void)
@ -838,9 +796,7 @@ SV_SnapAll_f (void)
} }
/* /*
================== SV_InitOperatorCommands
SV_InitOperatorCommands
==================
*/ */
void void
SV_InitOperatorCommands (void) SV_InitOperatorCommands (void)

View file

@ -49,14 +49,10 @@ extern int eval_alpha, eval_scale, eval_glowsize, eval_glowcolor,
extern eval_t *GETEDICTFIELDVALUE (edict_t *ed, int fieldoffset); extern eval_t *GETEDICTFIELDVALUE (edict_t *ed, int fieldoffset);
/* /*
============================================================================= The PVS must include a small area around the client to allow head
bobbing or other small motion on the client side. Otherwise, a bob
The PVS must include a small area around the client to allow head bobbing might cause an entity that should be visible to not show up, especially
or other small motion on the client side. Otherwise, a bob might cause an when the bob crosses a waterline.
entity that should be visible to not show up, especially when the bob
crosses a waterline.
=============================================================================
*/ */
int fatbytes; int fatbytes;
@ -95,12 +91,10 @@ SV_AddToFatPVS (vec3_t org, mnode_t *node)
} }
/* /*
============= SV_FatPVS
SV_FatPVS
Calculates a PVS that is the inclusive or of all leafs within 8 pixels of the Calculates a PVS that is the inclusive or of all leafs within 8 pixels
given point. of the given point.
=============
*/ */
byte * byte *
SV_FatPVS (vec3_t org) SV_FatPVS (vec3_t org)
@ -171,12 +165,10 @@ SV_EmitNailUpdate (sizebuf_t *msg)
/* /*
================== SV_WriteDelta
SV_WriteDelta
Writes part of a packetentities message. Writes part of a packetentities message.
Can delta from either a baseline or a previous packet_entity Can delta from either a baseline or a previous packet_entity
==================
*/ */
void void
SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg, SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg,
@ -320,12 +312,9 @@ SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg,
} }
/* /*
============= SV_EmitPacketEntities
SV_EmitPacketEntities
Writes a delta update of a packet_entities_t to the message. Writes a delta update of a packet_entities_t to the message.
=============
*/ */
void void
SV_EmitPacketEntities (client_t *client, packet_entities_t *to, sizebuf_t *msg) SV_EmitPacketEntities (client_t *client, packet_entities_t *to, sizebuf_t *msg)
@ -393,10 +382,7 @@ SV_EmitPacketEntities (client_t *client, packet_entities_t *to, sizebuf_t *msg)
} }
/* /*
============= SV_WritePlayersToClient
SV_WritePlayersToClient
=============
*/ */
void void
SV_WritePlayersToClient (client_t *client, edict_t *clent, byte * pvs, SV_WritePlayersToClient (client_t *client, edict_t *clent, byte * pvs,
@ -510,14 +496,12 @@ SV_WritePlayersToClient (client_t *client, edict_t *clent, byte * pvs,
/* /*
============= SV_WriteEntitiesToClient
SV_WriteEntitiesToClient
Encodes the current state of the world as Encodes the current state of the world as
a svc_packetentities messages and possibly a svc_packetentities messages and possibly
a svc_nails message and a svc_nails message and
svc_playerinfo messages svc_playerinfo messages
=============
*/ */
void void
SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg) SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg)

View file

@ -50,10 +50,7 @@ char localmodels[MAX_MODELS][5]; // inline model names for precache
char localinfo[MAX_LOCALINFO_STRING + 1]; // local game info char localinfo[MAX_LOCALINFO_STRING + 1]; // local game info
/* /*
================ SV_ModelIndex
SV_ModelIndex
================
*/ */
int int
SV_ModelIndex (char *name) SV_ModelIndex (char *name)
@ -72,11 +69,9 @@ SV_ModelIndex (char *name)
} }
/* /*
================ SV_FlushSignon
SV_FlushSignon
Moves to the next signon buffer if needed Moves to the next signon buffer if needed
================
*/ */
void void
SV_FlushSignon (void) SV_FlushSignon (void)
@ -94,13 +89,11 @@ SV_FlushSignon (void)
} }
/* /*
================ SV_CreateBaseline
SV_CreateBaseline
Entity baselines are used to compress the update messages Entity baselines are used to compress the update messages
to the clients -- only the fields that differ from the to the clients -- only the fields that differ from the
baseline will be transmitted baseline will be transmitted
================
*/ */
void void
SV_CreateBaseline (void) SV_CreateBaseline (void)
@ -165,13 +158,11 @@ SV_CreateBaseline (void)
/* /*
================ SV_SaveSpawnparms
SV_SaveSpawnparms
Grabs the current state of the progs serverinfo flags Grabs the current state of the progs serverinfo flags
and each client for saving across the and each client for saving across the
transition to another level transition to another level
================
*/ */
void void
SV_SaveSpawnparms (void) SV_SaveSpawnparms (void)
@ -200,12 +191,10 @@ SV_SaveSpawnparms (void)
} }
/* /*
================ SV_CalcPHS
SV_CalcPHS
Expands the PVS and calculates the PHS Expands the PVS and calculates the PHS
(Potentially Hearable Set) (Potentially Hearable Set)
================
*/ */
void void
SV_CalcPHS (void) SV_CalcPHS (void)
@ -294,14 +283,12 @@ SV_CheckModel (char *mdl)
} }
/* /*
================ SV_SpawnServer
SV_SpawnServer
Change the server to a new map, taking all connected Change the server to a new map, taking all connected
clients along with it. clients along with it.
This is only called from the SV_Map_f() function. This is only called from the SV_Map_f() function.
================
*/ */
void void
SV_SpawnServer (char *server) SV_SpawnServer (char *server)

View file

@ -41,13 +41,10 @@
#define STEPSIZE 18 #define STEPSIZE 18
/* /*
============= SV_CheckBottom
SV_CheckBottom
Returns false if any part of the bottom of the entity is off an edge that Returns false if any part of the bottom of the entity is off an edge that
is not a staircase. is not a staircase.
=============
*/ */
int c_yes, c_no; int c_yes, c_no;
@ -114,14 +111,12 @@ SV_CheckBottom (edict_t *ent)
/* /*
============= SV_movestep
SV_movestep
Called by monster program code. Called by monster program code.
The move will be adjusted for slopes and stairs, but if the move isn't The move will be adjusted for slopes and stairs, but if the move isn't
possible, no move is done, false is returned, and possible, no move is done, false is returned, and
pr_global_struct->trace_normal is set to the normal of the blocking wall pr_global_struct->trace_normal is set to the normal of the blocking wall
=============
*/ */
qboolean qboolean
SV_movestep (edict_t *ent, vec3_t move, qboolean relink) SV_movestep (edict_t *ent, vec3_t move, qboolean relink)
@ -233,13 +228,10 @@ SV_movestep (edict_t *ent, vec3_t move, qboolean relink)
//============================================================================ //============================================================================
/* /*
====================== SV_StepDirection
SV_StepDirection
Turns to the movement direction, and walks the current distance if Turns to the movement direction, and walks the current distance if
facing it. facing it.
======================
*/ */
qboolean qboolean
SV_StepDirection (edict_t *ent, float yaw, float dist) SV_StepDirection (edict_t *ent, float yaw, float dist)
@ -271,10 +263,7 @@ SV_StepDirection (edict_t *ent, float yaw, float dist)
} }
/* /*
====================== SV_FixCheckBottom
SV_FixCheckBottom
======================
*/ */
void void
SV_FixCheckBottom (edict_t *ent) SV_FixCheckBottom (edict_t *ent)
@ -287,10 +276,7 @@ SV_FixCheckBottom (edict_t *ent)
/* /*
================ SV_NewChaseDir
SV_NewChaseDir
================
*/ */
#define DI_NODIR -1 #define DI_NODIR -1
void void
@ -371,10 +357,7 @@ SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist)
} }
/* /*
====================== SV_CloseEnough
SV_CloseEnough
======================
*/ */
qboolean qboolean
SV_CloseEnough (edict_t *ent, edict_t *goal, float dist) SV_CloseEnough (edict_t *ent, edict_t *goal, float dist)
@ -391,10 +374,7 @@ SV_CloseEnough (edict_t *ent, edict_t *goal, float dist)
} }
/* /*
====================== SV_MoveToGoal
SV_MoveToGoal
======================
*/ */
void void
SV_MoveToGoal (progs_t *pr) SV_MoveToGoal (progs_t *pr)

View file

@ -73,9 +73,7 @@ cvar_t *sv_waterfriction;
void SV_Physics_Toss (edict_t *ent); void SV_Physics_Toss (edict_t *ent);
/* /*
================ SV_CheckAllEnts
SV_CheckAllEnts
================
*/ */
void void
SV_CheckAllEnts (void) SV_CheckAllEnts (void)
@ -98,9 +96,7 @@ SV_CheckAllEnts (void)
} }
/* /*
================ SV_CheckVelocity
SV_CheckVelocity
================
*/ */
void void
SV_CheckVelocity (edict_t *ent) SV_CheckVelocity (edict_t *ent)
@ -134,14 +130,12 @@ SV_CheckVelocity (edict_t *ent)
} }
/* /*
============= SV_RunThink
SV_RunThink
Runs thinking code if time. There is some play in the exact time the think Runs thinking code if time. There is some play in the exact time the think
function will be called, because it is called before any movement is done function will be called, because it is called before any movement is done
in a frame. Not used for pushmove objects, because they must be exact. in a frame. Not used for pushmove objects, because they must be exact.
Returns false if the entity removed itself. Returns false if the entity removed itself.
=============
*/ */
qboolean qboolean
SV_RunThink (edict_t *ent) SV_RunThink (edict_t *ent)
@ -173,11 +167,9 @@ SV_RunThink (edict_t *ent)
} }
/* /*
================== SV_Impact
SV_Impact
Two entities have touched, so run their touch functions Two entities have touched, so run their touch functions
==================
*/ */
void void
SV_Impact (edict_t *e1, edict_t *e2) SV_Impact (edict_t *e1, edict_t *e2)
@ -206,12 +198,10 @@ SV_Impact (edict_t *e1, edict_t *e2)
/* /*
================== ClipVelocity
ClipVelocity
Slide off of the impacting object Slide off of the impacting object
returns the blocked flags (1 = floor, 2 = step / wall) returns the blocked flags (1 = floor, 2 = step / wall)
==================
*/ */
int int
ClipVelocity (vec3_t in, vec3_t normal, vec3_t out, float overbounce) ClipVelocity (vec3_t in, vec3_t normal, vec3_t out, float overbounce)
@ -240,16 +230,14 @@ ClipVelocity (vec3_t in, vec3_t normal, vec3_t out, float overbounce)
/* /*
============ SV_FlyMove
SV_FlyMove
The basic solid body movement clip that slides along multiple planes The basic solid body movement clip that slides along multiple planes
Returns the clipflags if the velocity was modified (hit something solid) Returns the clipflags if the velocity was modified (hit something solid)
1 = floor 1 = floor
2 = wall / step 2 = wall / step
4 = dead stop 4 = dead stop
If steptrace is not NULL, the trace of any vertical wall hit will be stored If steptrace is not NULL, the trace of any vertical wall hit will be stored
============
*/ */
#define MAX_CLIP_PLANES 5 #define MAX_CLIP_PLANES 5
int int
@ -374,10 +362,7 @@ SV_FlyMove (edict_t *ent, float time, trace_t *steptrace)
/* /*
============ SV_AddGravity
SV_AddGravity
============
*/ */
void void
SV_AddGravity (edict_t *ent, float scale) SV_AddGravity (edict_t *ent, float scale)
@ -386,19 +371,13 @@ SV_AddGravity (edict_t *ent, float scale)
} }
/* /*
=============================================================================== PUSHMOVE
PUSHMOVE
===============================================================================
*/ */
/* /*
============ SV_PushEntity
SV_PushEntity
Does not change the entities velocity at all Does not change the entities velocity at all
============
*/ */
trace_t trace_t
SV_PushEntity (edict_t *ent, vec3_t push) SV_PushEntity (edict_t *ent, vec3_t push)
@ -433,10 +412,7 @@ SV_PushEntity (edict_t *ent, vec3_t push)
/* /*
============ SV_Push
SV_Push
============
*/ */
qboolean qboolean
SV_Push (edict_t *pusher, vec3_t move) SV_Push (edict_t *pusher, vec3_t move)
@ -553,10 +529,7 @@ SV_Push (edict_t *pusher, vec3_t move)
} }
/* /*
============ SV_PushMove
SV_PushMove
============
*/ */
void void
SV_PushMove (edict_t *pusher, float movetime) SV_PushMove (edict_t *pusher, float movetime)
@ -579,10 +552,7 @@ SV_PushMove (edict_t *pusher, float movetime)
/* /*
================ SV_Physics_Pusher
SV_Physics_Pusher
================
*/ */
void void
SV_Physics_Pusher (edict_t *ent) SV_Physics_Pusher (edict_t *ent)
@ -630,11 +600,9 @@ SV_Physics_Pusher (edict_t *ent)
/* /*
============= SV_Physics_None
SV_Physics_None
Non moving objects can only think Non moving objects can only think
=============
*/ */
void void
SV_Physics_None (edict_t *ent) SV_Physics_None (edict_t *ent)
@ -645,11 +613,9 @@ SV_Physics_None (edict_t *ent)
} }
/* /*
============= SV_Physics_Noclip
SV_Physics_Noclip
A moving object that doesn't obey physics A moving object that doesn't obey physics
=============
*/ */
void void
SV_Physics_Noclip (edict_t *ent) SV_Physics_Noclip (edict_t *ent)
@ -665,18 +631,11 @@ SV_Physics_Noclip (edict_t *ent)
} }
/* /*
============================================================================== TOSS / BOUNCE
TOSS / BOUNCE
==============================================================================
*/ */
/* /*
============= SV_CheckWaterTransition
SV_CheckWaterTransition
=============
*/ */
void void
SV_CheckWaterTransition (edict_t *ent) SV_CheckWaterTransition (edict_t *ent)
@ -708,11 +667,9 @@ SV_CheckWaterTransition (edict_t *ent)
} }
/* /*
============= SV_Physics_Toss
SV_Physics_Toss
Toss, bounce, and fly movement. When onground, do nothing. Toss, bounce, and fly movement. When onground, do nothing.
=============
*/ */
void void
SV_Physics_Toss (edict_t *ent) SV_Physics_Toss (edict_t *ent)
@ -771,24 +728,18 @@ SV_Physics_Toss (edict_t *ent)
} }
/* /*
=============================================================================== STEPPING MOVEMENT
STEPPING MOVEMENT
===============================================================================
*/ */
/* /*
============= SV_Physics_Step
SV_Physics_Step
Monsters freefall when they don't have a ground entity, otherwise Monsters freefall when they don't have a ground entity, otherwise
all movement is done with discrete steps. all movement is done with discrete steps.
This is also used for objects that have become still on the ground, but This is also used for objects that have become still on the ground, but
will fall if the floor is pulled out from under them. will fall if the floor is pulled out from under them.
FIXME: is this true? FIXME: is this true?
=============
*/ */
void void
SV_Physics_Step (edict_t *ent) SV_Physics_Step (edict_t *ent)
@ -936,10 +887,7 @@ SV_ProgStartFrame (void)
} }
/* /*
================ SV_RunEntity
SV_RunEntity
================
*/ */
void void
SV_RunEntity (edict_t *ent) SV_RunEntity (edict_t *ent)
@ -976,10 +924,7 @@ SV_RunEntity (edict_t *ent)
} }
/* /*
================ SV_RunNewmis
SV_RunNewmis
================
*/ */
void void
SV_RunNewmis (void) SV_RunNewmis (void)
@ -996,10 +941,7 @@ SV_RunNewmis (void)
} }
/* /*
================ SV_Physics
SV_Physics
================
*/ */
void void
SV_Physics (void) SV_Physics (void)

View file

@ -44,11 +44,7 @@
#define RETURN_STRING(p, s) (((int *)(p)->pr_globals)[OFS_RETURN] = PR_SetString((p), s)) #define RETURN_STRING(p, s) (((int *)(p)->pr_globals)[OFS_RETURN] = PR_SetString((p), s))
/* /*
===============================================================================
BUILT-IN FUNCTIONS BUILT-IN FUNCTIONS
===============================================================================
*/ */
char * char *
@ -1295,11 +1291,7 @@ PF_changeyaw (progs_t *pr)
} }
/* /*
=============================================================================== MESSAGE WRITING
MESSAGE WRITING
===============================================================================
*/ */
#define MSG_BROADCAST 0 // unreliable to all #define MSG_BROADCAST 0 // unreliable to all

View file

@ -49,11 +49,7 @@
#define CHAN_BODY 4 #define CHAN_BODY 4
/* /*
=============================================================================
Con_Printf redirection Con_Printf redirection
=============================================================================
*/ */
char outputbuf[8000]; char outputbuf[8000];
@ -66,9 +62,7 @@ extern cvar_t *sv_timestamps;
extern cvar_t *sv_timefmt; extern cvar_t *sv_timefmt;
/* /*
================== SV_FlushRedirect
SV_FlushRedirect
==================
*/ */
void void
SV_FlushRedirect (void) SV_FlushRedirect (void)
@ -96,12 +90,10 @@ SV_FlushRedirect (void)
/* /*
================== SV_BeginRedirect
SV_BeginRedirect
Send Con_Printf data to the remote client Send Con_Printf data to the remote client
instead of the console instead of the console
==================
*/ */
void void
SV_BeginRedirect (redirect_t rd) SV_BeginRedirect (redirect_t rd)
@ -119,11 +111,9 @@ SV_EndRedirect (void)
/* /*
================ Con_Printf
Con_Printf
Handles cursor positioning, line wrapping, etc Handles cursor positioning, line wrapping, etc
================
*/ */
#define MAXPRINTMSG 4096 #define MAXPRINTMSG 4096
@ -177,11 +167,9 @@ Con_Printf (char *fmt, ...)
} }
/* /*
================ Con_DPrintf
Con_DPrintf
A Con_Printf that only shows up if the "developer" cvar is set A Con_Printf that only shows up if the "developer" cvar is set
================
*/ */
void void
Con_DPrintf (char *fmt, ...) Con_DPrintf (char *fmt, ...)
@ -200,11 +188,7 @@ Con_DPrintf (char *fmt, ...)
} }
/* /*
============================================================================= EVENT MESSAGES
EVENT MESSAGES
=============================================================================
*/ */
static void static void
@ -217,11 +201,9 @@ SV_PrintToClient (client_t *cl, int level, char *string)
/* /*
================= SV_ClientPrintf
SV_ClientPrintf
Sends text across to be displayed if the level passes Sends text across to be displayed if the level passes
=================
*/ */
void void
SV_ClientPrintf (client_t *cl, int level, char *fmt, ...) SV_ClientPrintf (client_t *cl, int level, char *fmt, ...)
@ -240,11 +222,9 @@ SV_ClientPrintf (client_t *cl, int level, char *fmt, ...)
} }
/* /*
================= SV_BroadcastPrintf
SV_BroadcastPrintf
Sends text to all active clients Sends text to all active clients
=================
*/ */
void void
SV_BroadcastPrintf (int level, char *fmt, ...) SV_BroadcastPrintf (int level, char *fmt, ...)
@ -271,11 +251,9 @@ SV_BroadcastPrintf (int level, char *fmt, ...)
} }
/* /*
================= SV_BroadcastCommand
SV_BroadcastCommand
Sends text to all active clients Sends text to all active clients
=================
*/ */
void void
SV_BroadcastCommand (char *fmt, ...) SV_BroadcastCommand (char *fmt, ...)
@ -295,16 +273,14 @@ SV_BroadcastCommand (char *fmt, ...)
/* /*
================= SV_Multicast
SV_Multicast
Sends the contents of sv.multicast to a subset of the clients, Sends the contents of sv.multicast to a subset of the clients,
then clears sv.multicast. then clears sv.multicast.
MULTICAST_ALL same as broadcast MULTICAST_ALL same as broadcast
MULTICAST_PVS send to clients potentially visible from org MULTICAST_PVS send to clients potentially visible from org
MULTICAST_PHS send to clients potentially hearable from org MULTICAST_PHS send to clients potentially hearable from org
=================
*/ */
void void
SV_Multicast (vec3_t origin, int to) SV_Multicast (vec3_t origin, int to)
@ -386,19 +362,16 @@ SV_Multicast (vec3_t origin, int to)
/* /*
================== SV_StartSound
SV_StartSound
Each entity can have eight independant sound sources, like voice, Each entity can have eight independant sound sources, like voice,
weapon, feet, etc. weapon, feet, etc.
Channel 0 is an auto-allocate channel, the others override anything Channel 0 is an auto-allocate channel, the others override anything
allready running on that entity/channel pair. allready running on that entity/channel pair.
An attenuation of 0 will play full volume everywhere in the level. An attenuation of 0 will play full volume everywhere in the level.
Larger attenuations will drop off. (max 4 attenuation) Larger attenuations will drop off. (max 4 attenuation)
==================
*/ */
void void
SV_StartSound (edict_t *entity, int channel, char *sample, int volume, SV_StartSound (edict_t *entity, int channel, char *sample, int volume,
@ -483,11 +456,7 @@ SV_StartSound (edict_t *entity, int channel, char *sample, int volume,
/* /*
=============================================================================== FRAME UPDATES
FRAME UPDATES
===============================================================================
*/ */
int sv_nailmodel, sv_supernailmodel, sv_playermodel; int sv_nailmodel, sv_supernailmodel, sv_playermodel;
@ -515,10 +484,7 @@ SV_FindModelNumbers (void)
/* /*
================== SV_WriteClientdataToMessage
SV_WriteClientdataToMessage
==================
*/ */
void void
SV_WriteClientdataToMessage (client_t *client, sizebuf_t *msg) SV_WriteClientdataToMessage (client_t *client, sizebuf_t *msg)
@ -559,12 +525,10 @@ SV_WriteClientdataToMessage (client_t *client, sizebuf_t *msg)
} }
/* /*
======================= SV_UpdateClientStats
SV_UpdateClientStats
Performs a delta update of the stats array. This should only be performed Performs a delta update of the stats array. This should only be performed
when a reliable message can be delivered this frame. when a reliable message can be delivered this frame.
=======================
*/ */
void void
SV_UpdateClientStats (client_t *client) SV_UpdateClientStats (client_t *client)
@ -622,9 +586,7 @@ SV_UpdateClientStats (client_t *client)
} }
/* /*
======================= SV_SendClientDatagram
SV_SendClientDatagram
=======================
*/ */
qboolean qboolean
SV_SendClientDatagram (client_t *client) SV_SendClientDatagram (client_t *client)
@ -669,9 +631,7 @@ SV_SendClientDatagram (client_t *client)
} }
/* /*
======================= SV_UpdateToReliableMessages
SV_UpdateToReliableMessages
=======================
*/ */
void void
SV_UpdateToReliableMessages (void) SV_UpdateToReliableMessages (void)
@ -747,9 +707,7 @@ SV_UpdateToReliableMessages (void)
/* /*
======================= SV_SendClientMessages
SV_SendClientMessages
=======================
*/ */
void void
SV_SendClientMessages (void) SV_SendClientMessages (void)
@ -837,11 +795,9 @@ SV_SendClientMessages (void)
/* /*
======================= SV_SendMessagesToAll
SV_SendMessagesToAll
FIXME: does this sequence right? FIXME: does this sequence right?
=======================
*/ */
void void
SV_SendMessagesToAll (void) SV_SendMessagesToAll (void)

View file

@ -64,17 +64,11 @@ char *svs_info = svs.info;
/* /*
===============================================================================
REQUIRED SYS FUNCTIONS REQUIRED SYS FUNCTIONS
===============================================================================
*/ */
/* /*
================ Sys_Error
Sys_Error
================
*/ */
void void
Sys_Error (char *error, ...) Sys_Error (char *error, ...)
@ -92,9 +86,7 @@ Sys_Error (char *error, ...)
/* /*
================ Sys_Quit
Sys_Quit
================
*/ */
void void
Sys_Quit (void) Sys_Quit (void)
@ -110,12 +102,10 @@ Sys_Quit (void)
static int do_stdin = 1; static int do_stdin = 1;
/* /*
================ Sys_ConsoleInput
Sys_ConsoleInput
Checks for a complete line of text typed in at the console, then forwards Checks for a complete line of text typed in at the console, then forwards
it to the host command processor it to the host command processor
================
*/ */
char * char *
Sys_ConsoleInput (void) Sys_ConsoleInput (void)
@ -141,12 +131,10 @@ Sys_ConsoleInput (void)
} }
/* /*
============= Sys_Init
Sys_Init
Quake calls this so the system can register variables before host_hunklevel Quake calls this so the system can register variables before host_hunklevel
is marked is marked
=============
*/ */
void void
Sys_Init_Cvars (void) Sys_Init_Cvars (void)
@ -169,9 +157,7 @@ Sys_Init (void)
} }
/* /*
============= main
main
=============
*/ */
int int
main (int argc, char *argv[]) main (int argc, char *argv[])

View file

@ -50,9 +50,7 @@ extern cvar_t *sys_nostdout;
cvar_t *sys_sleep; cvar_t *sys_sleep;
/* /*
================ Sys_FileTime
Sys_FileTime
================
*/ */
int int
Sys_FileTime (char *path) Sys_FileTime (char *path)
@ -70,9 +68,7 @@ Sys_FileTime (char *path)
/* /*
================ Sys_Error
Sys_Error
================
*/ */
void void
Sys_Error (char *error, ...) Sys_Error (char *error, ...)
@ -92,9 +88,7 @@ Sys_Error (char *error, ...)
/* /*
================ Sys_ConsoleInput
Sys_ConsoleInput
================
*/ */
char * char *
Sys_ConsoleInput (void) Sys_ConsoleInput (void)
@ -133,9 +127,7 @@ Sys_ConsoleInput (void)
} }
/* /*
================ Sys_Quit
Sys_Quit
================
*/ */
void void
Sys_Quit (void) Sys_Quit (void)
@ -147,12 +139,10 @@ Sys_Quit (void)
} }
/* /*
============= Sys_Init
Sys_Init
Quake calls this so the system can register variables before host_hunklevel Quake calls this so the system can register variables before host_hunklevel
is marked is marked
=============
*/ */
void void
@ -192,10 +182,7 @@ Sys_Init (void)
} }
/* /*
================== main
main
==================
*/ */
char *newargv[256]; char *newargv[256];

View file

@ -78,21 +78,16 @@ extern cvar_t *pausable;
void SV_FullClientUpdateToClient (client_t *client, client_t *cl); void SV_FullClientUpdateToClient (client_t *client, client_t *cl);
/* /*
============================================================ USER STRINGCMD EXECUTION
USER STRINGCMD EXECUTION host_client and sv_player will be valid.
host_client and sv_player will be valid.
============================================================
*/ */
/* /*
================ SV_New_f
SV_New_f
Sends the first message from the server to a connected client. Sends the first message from the server to a connected client.
This will be sent on the initial connection and upon each server load. This will be sent on the initial connection and upon each server load.
================
*/ */
void void
SV_New_f (void) SV_New_f (void)
@ -160,9 +155,7 @@ SV_New_f (void)
} }
/* /*
================== SV_Soundlist_f
SV_Soundlist_f
==================
*/ */
void void
SV_Soundlist_f (void) SV_Soundlist_f (void)
@ -212,9 +205,7 @@ SV_Soundlist_f (void)
} }
/* /*
================== SV_Modellist_f
SV_Modellist_f
==================
*/ */
void void
SV_Modellist_f (void) SV_Modellist_f (void)
@ -263,9 +254,7 @@ SV_Modellist_f (void)
} }
/* /*
================== SV_PreSpawn_f
SV_PreSpawn_f
==================
*/ */
void void
SV_PreSpawn_f (void) SV_PreSpawn_f (void)
@ -332,9 +321,7 @@ SV_PreSpawn_f (void)
} }
/* /*
================== SV_Spawn_f
SV_Spawn_f
==================
*/ */
void void
SV_Spawn_f (void) SV_Spawn_f (void)
@ -431,9 +418,7 @@ SV_Spawn_f (void)
} }
/* /*
================== SV_SpawnSpectator
SV_SpawnSpectator
==================
*/ */
void void
SV_SpawnSpectator (void) SV_SpawnSpectator (void)
@ -457,9 +442,7 @@ SV_SpawnSpectator (void)
} }
/* /*
================== SV_Begin_f
SV_Begin_f
==================
*/ */
void void
SV_Begin_f (void) SV_Begin_f (void)
@ -548,9 +531,7 @@ SV_Begin_f (void)
//============================================================================= //=============================================================================
/* /*
================== SV_NextDownload_f
SV_NextDownload_f
==================
*/ */
void void
SV_NextDownload_f (void) SV_NextDownload_f (void)
@ -605,9 +586,7 @@ OutofBandPrintf (netadr_t where, char *fmt, ...)
} }
/* /*
================== SV_NextUpload
SV_NextUpload
==================
*/ */
void void
SV_NextUpload (void) SV_NextUpload (void)
@ -677,9 +656,7 @@ SV_NextUpload (void)
} }
/* /*
================== SV_BeginDownload_f
SV_BeginDownload_f
==================
*/ */
void void
SV_BeginDownload_f (void) SV_BeginDownload_f (void)
@ -774,9 +751,7 @@ SV_BeginDownload_f (void)
//============================================================================= //=============================================================================
/* /*
================== SV_Say
SV_Say
==================
*/ */
void void
SV_Say (qboolean team) SV_Say (qboolean team)
@ -868,9 +843,7 @@ SV_Say (qboolean team)
/* /*
================== SV_Say_f
SV_Say_f
==================
*/ */
void void
SV_Say_f (void) SV_Say_f (void)
@ -879,9 +852,7 @@ SV_Say_f (void)
} }
/* /*
================== SV_Say_Team_f
SV_Say_Team_f
==================
*/ */
void void
SV_Say_Team_f (void) SV_Say_Team_f (void)
@ -894,12 +865,10 @@ SV_Say_Team_f (void)
//============================================================================ //============================================================================
/* /*
================= SV_Pings_f
SV_Pings_f
The client is showing the scoreboard, so send new ping times for all The client is showing the scoreboard, so send new ping times for all
clients clients
=================
*/ */
void void
SV_Pings_f (void) SV_Pings_f (void)
@ -923,9 +892,7 @@ SV_Pings_f (void)
/* /*
================== SV_Kill_f
SV_Kill_f
==================
*/ */
void void
SV_Kill_f (void) SV_Kill_f (void)
@ -944,9 +911,7 @@ SV_Kill_f (void)
} }
/* /*
================== SV_TogglePause
SV_TogglePause
==================
*/ */
void void
SV_TogglePause (const char *msg) SV_TogglePause (const char *msg)
@ -970,9 +935,7 @@ SV_TogglePause (const char *msg)
/* /*
================== SV_Pause_f
SV_Pause_f
==================
*/ */
void void
SV_Pause_f (void) SV_Pause_f (void)
@ -1011,11 +974,9 @@ SV_Pause_f (void)
/* /*
================= SV_Drop_f
SV_Drop_f
The client is going to disconnect, so remove the connection immediately The client is going to disconnect, so remove the connection immediately
=================
*/ */
void void
SV_Drop_f (void) SV_Drop_f (void)
@ -1027,11 +988,9 @@ SV_Drop_f (void)
} }
/* /*
================= SV_PTrack_f
SV_PTrack_f
Change the bandwidth estimate for a client Change the bandwidth estimate for a client
=================
*/ */
void void
SV_PTrack_f (void) SV_PTrack_f (void)
@ -1268,19 +1227,13 @@ SV_ExecuteUserCommand (char *s)
} }
/* /*
=========================================================================== USER CMD EXECUTION
USER CMD EXECUTION
===========================================================================
*/ */
/* /*
=============== SV_CalcRoll
SV_CalcRoll
Used by view and sv_user Used by view and sv_user
===============
*/ */
float float
SV_CalcRoll (vec3_t angles, vec3_t velocity) SV_CalcRoll (vec3_t angles, vec3_t velocity)
@ -1314,10 +1267,7 @@ SV_CalcRoll (vec3_t angles, vec3_t velocity)
vec3_t pmove_mins, pmove_maxs; vec3_t pmove_mins, pmove_maxs;
/* /*
==================== AddLinksToPmove
AddLinksToPmove
====================
*/ */
void void
AddLinksToPmove (areanode_t *node) AddLinksToPmove (areanode_t *node)
@ -1379,11 +1329,9 @@ AddLinksToPmove (areanode_t *node)
/* /*
================ AddAllEntsToPmove
AddAllEntsToPmove
For debugging For debugging
================
*/ */
void void
AddAllEntsToPmove (void) AddAllEntsToPmove (void)
@ -1431,10 +1379,9 @@ AddAllEntsToPmove (void)
} }
/* /*
=========== SV_PreRunCmd
SV_PreRunCmd
=========== Done before running a player command. Clears the touch array
Done before running a player command. Clears the touch array
*/ */
byte playertouch[(MAX_EDICTS + 7) / 8]; byte playertouch[(MAX_EDICTS + 7) / 8];
@ -1445,9 +1392,7 @@ SV_PreRunCmd (void)
} }
/* /*
=========== SV_RunCmd
SV_RunCmd
===========
*/ */
extern qboolean nouse; // 1999-10-29 +USE fix by Maddes extern qboolean nouse; // 1999-10-29 +USE fix by Maddes
@ -1633,10 +1578,9 @@ SV_RunCmd (usercmd_t *ucmd, qboolean inside)
} }
/* /*
=========== SV_PostRunCmd
SV_PostRunCmd
=========== Done after running a player command.
Done after running a player command.
*/ */
void void
SV_PostRunCmd (void) SV_PostRunCmd (void)
@ -1657,11 +1601,9 @@ SV_PostRunCmd (void)
/* /*
=================== SV_ExecuteClientMessage
SV_ExecuteClientMessage
The current net_message is parsed for the given client The current net_message is parsed for the given client
===================
*/ */
void void
SV_ExecuteClientMessage (client_t *cl) SV_ExecuteClientMessage (client_t *cl)
@ -1808,9 +1750,7 @@ SV_ExecuteClientMessage (client_t *cl)
} }
/* /*
============== SV_UserInit
SV_UserInit
==============
*/ */
void void
SV_UserInit (void) SV_UserInit (void)

View file

@ -51,11 +51,7 @@ extern char loadname[];
extern model_t *loadmodel; extern model_t *loadmodel;
/* /*
============================================================================== ALIAS MODELS
ALIAS MODELS
==============================================================================
*/ */
extern aliashdr_t *pheader; extern aliashdr_t *pheader;
@ -96,9 +92,7 @@ Mod_LoadSkin (byte * skin, int skinsize, int *pskinindex, int snum, int gnum)
} }
/* /*
=============== Mod_LoadAllSkins
Mod_LoadAllSkins
===============
*/ */
void * void *
Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex) Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype, int *pskinindex)
@ -198,9 +192,7 @@ GL_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s)
} }
/* /*
================= Mod_LoadAliasFrame
Mod_LoadAliasFrame
=================
*/ */
void * void *
Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame) Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame)
@ -241,9 +233,7 @@ Mod_LoadAliasFrame (void *pin, maliasframedesc_t *frame)
/* /*
================= Mod_LoadAliasGroup
Mod_LoadAliasGroup
=================
*/ */
void * void *
Mod_LoadAliasGroup (void *pin, maliasframedesc_t *frame) Mod_LoadAliasGroup (void *pin, maliasframedesc_t *frame)

Some files were not shown because too many files have changed in this diff Show more