mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
clean up function definitions
This commit is contained in:
parent
9b3b4b44df
commit
014dd11b2e
17 changed files with 164 additions and 169 deletions
|
@ -72,9 +72,6 @@ static const char *env_suf[6] = {"rt", "bk", "lf", "ft", "up", "dn"};
|
||||||
#define ENV_CNT (CS_PLAYERSKINS + MAX_CLIENTS * PLAYER_MULT)
|
#define ENV_CNT (CS_PLAYERSKINS + MAX_CLIENTS * PLAYER_MULT)
|
||||||
#define TEXTURE_CNT (ENV_CNT + 13)
|
#define TEXTURE_CNT (ENV_CNT + 13)
|
||||||
|
|
||||||
mapsurface_t* CM_MapSurfaces(int surfnum);
|
|
||||||
int CM_MapSurfacesNum(void);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CL_RequestNextDownload(void)
|
CL_RequestNextDownload(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,7 +145,7 @@ CL_Stop_f(void)
|
||||||
* record <demoname>
|
* record <demoname>
|
||||||
* Begins recording a demo from the current position
|
* Begins recording a demo from the current position
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
CL_Record_f(void)
|
CL_Record_f(void)
|
||||||
{
|
{
|
||||||
char name[MAX_OSPATH];
|
char name[MAX_OSPATH];
|
||||||
|
@ -260,7 +260,7 @@ CL_Record_f(void)
|
||||||
fwrite(buf.data, buf.cursize, 1, cls.demofile);
|
fwrite(buf.data, buf.cursize, 1, cls.demofile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_Setenv_f(void)
|
CL_Setenv_f(void)
|
||||||
{
|
{
|
||||||
int argc = Cmd_Argc();
|
int argc = Cmd_Argc();
|
||||||
|
@ -298,7 +298,7 @@ CL_Setenv_f(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_Pause_f(void)
|
CL_Pause_f(void)
|
||||||
{
|
{
|
||||||
/* never pause in multiplayer */
|
/* never pause in multiplayer */
|
||||||
|
@ -360,7 +360,7 @@ CL_ParseStatusMessage(void)
|
||||||
/*
|
/*
|
||||||
* Load or download any custom player skins and models
|
* Load or download any custom player skins and models
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
CL_Skins_f(void)
|
CL_Skins_f(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -422,7 +422,7 @@ CL_FixUpGender(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_Userinfo_f(void)
|
CL_Userinfo_f(void)
|
||||||
{
|
{
|
||||||
Com_Printf("User info settings:\n");
|
Com_Printf("User info settings:\n");
|
||||||
|
@ -464,7 +464,7 @@ void CL_ResetPrecacheCheck (void)
|
||||||
* The server will send this command right
|
* The server will send this command right
|
||||||
* before allowing the client into the server
|
* before allowing the client into the server
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
CL_Precache_f(void)
|
CL_Precache_f(void)
|
||||||
{
|
{
|
||||||
/* Yet another hack to let old demos work */
|
/* Yet another hack to let old demos work */
|
||||||
|
@ -487,12 +487,13 @@ CL_Precache_f(void)
|
||||||
CL_RequestNextDownload();
|
CL_RequestNextDownload();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CL_CurrentMap_f(void)
|
static void
|
||||||
|
CL_CurrentMap_f(void)
|
||||||
{
|
{
|
||||||
Com_Printf("%s\n", cl.configstrings[CS_MODELS + 1]);
|
Com_Printf("%s\n", cl.configstrings[CS_MODELS + 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_InitLocal(void)
|
CL_InitLocal(void)
|
||||||
{
|
{
|
||||||
cls.state = ca_disconnected;
|
cls.state = ca_disconnected;
|
||||||
|
@ -691,9 +692,9 @@ cheatvar_t cheatvars[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
int numcheatvars;
|
static int numcheatvars;
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_FixCvarCheats(void)
|
CL_FixCvarCheats(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -726,7 +727,7 @@ CL_FixCvarCheats(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
CL_UpdateWindowedMouse(void)
|
CL_UpdateWindowedMouse(void)
|
||||||
{
|
{
|
||||||
if (cls.disable_screen)
|
if (cls.disable_screen)
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
#include "header/client.h"
|
#include "header/client.h"
|
||||||
#include "../client/sound/header/local.h"
|
#include "../client/sound/header/local.h"
|
||||||
|
|
||||||
void CL_ParseStatusMessage(void);
|
|
||||||
|
|
||||||
extern cvar_t *rcon_client_password;
|
extern cvar_t *rcon_client_password;
|
||||||
extern cvar_t *rcon_address;
|
extern cvar_t *rcon_address;
|
||||||
extern cvar_t *cl_timeout;
|
extern cvar_t *cl_timeout;
|
||||||
|
@ -278,8 +276,6 @@ CL_Rcon_f(void)
|
||||||
NET_SendPacket(NS_CLIENT, strlen(message) + 1, message, to);
|
NET_SendPacket(NS_CLIENT, strlen(message) + 1, message, to);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CL_WriteConfiguration(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Goes from a connected state to full screen
|
* Goes from a connected state to full screen
|
||||||
* console state Sends a disconnect message to
|
* console state Sends a disconnect message to
|
||||||
|
|
|
@ -27,12 +27,9 @@
|
||||||
#include "header/client.h"
|
#include "header/client.h"
|
||||||
#include "input/header/input.h"
|
#include "input/header/input.h"
|
||||||
|
|
||||||
void CL_DownloadFileName(char *dest, int destlen, char *fn);
|
static int bitcounts[32]; /* just for protocol profiling */
|
||||||
void CL_ParseDownload(void);
|
|
||||||
|
|
||||||
int bitcounts[32]; /* just for protocol profiling */
|
static char *svc_strings[256] = {
|
||||||
|
|
||||||
char *svc_strings[256] = {
|
|
||||||
"svc_bad",
|
"svc_bad",
|
||||||
|
|
||||||
"svc_muzzleflash",
|
"svc_muzzleflash",
|
||||||
|
|
|
@ -493,15 +493,15 @@ char *Key_KeynumToString (int keynum);
|
||||||
|
|
||||||
void CL_WriteDemoMessage (void);
|
void CL_WriteDemoMessage (void);
|
||||||
void CL_Stop_f (void);
|
void CL_Stop_f (void);
|
||||||
void CL_Record_f (void);
|
void CL_ParseStatusMessage(void);
|
||||||
|
|
||||||
extern char *svc_strings[256];
|
|
||||||
|
|
||||||
void CL_ParseServerMessage (void);
|
void CL_ParseServerMessage (void);
|
||||||
void CL_LoadClientinfo (clientinfo_t *ci, char *s);
|
void CL_LoadClientinfo (clientinfo_t *ci, char *s);
|
||||||
void SHOWNET(char *s);
|
void SHOWNET(char *s);
|
||||||
void CL_ParseClientinfo (int player);
|
void CL_ParseClientinfo (int player);
|
||||||
void CL_Download_f (void);
|
void CL_Download_f (void);
|
||||||
|
void CL_DownloadFileName(char *dest, int destlen, char *fn);
|
||||||
|
void CL_ParseDownload(void);
|
||||||
|
|
||||||
extern int gun_frame;
|
extern int gun_frame;
|
||||||
|
|
||||||
|
|
|
@ -1572,10 +1572,11 @@ Mod_ReLoadSkins(struct image_s **skins, findimage_t find_image, loadimage_t load
|
||||||
skins[i] = find_image(sprout->frames[i].name, it_sprite);
|
skins[i] = find_image(sprout->frames[i].name, it_sprite);
|
||||||
if (!skins[i])
|
if (!skins[i])
|
||||||
{
|
{
|
||||||
char newname[MAX_SKINNAME];
|
/* SKIN NAME + sprites prefix */
|
||||||
|
char newname[MAX_QPATH + 16];
|
||||||
|
|
||||||
/* heretic2 sprites have no "sprites/" prefix */
|
/* heretic2 sprites have no "sprites/" prefix */
|
||||||
snprintf(newname, MAX_SKINNAME,
|
snprintf(newname, sizeof(newname) - 1,
|
||||||
"sprites/%s", sprout->frames[i].name);
|
"sprites/%s", sprout->frames[i].name);
|
||||||
skins[i] = find_image(newname, it_sprite);
|
skins[i] = find_image(newname, it_sprite);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include "../ref_shared.h"
|
#include "../ref_shared.h"
|
||||||
|
|
||||||
struct image_s *
|
static struct image_s *
|
||||||
LoadWalQ2(const char *origname, const char *name, const byte *data, size_t size,
|
LoadWalQ2(const char *origname, const char *name, const byte *data, size_t size,
|
||||||
imagetype_t type, loadimage_t load_image)
|
imagetype_t type, loadimage_t load_image)
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ LoadWalQ2(const char *origname, const char *name, const byte *data, size_t size,
|
||||||
(size - ofs), type, 8);
|
(size - ofs), type, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct image_s *
|
static struct image_s *
|
||||||
LoadWalDKM(const char *origname, const char *name, const byte *data, size_t size,
|
LoadWalDKM(const char *origname, const char *name, const byte *data, size_t size,
|
||||||
imagetype_t type, loadimage_t load_image)
|
imagetype_t type, loadimage_t load_image)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ void (APIENTRY *qglColorTableEXT)(GLenum, GLenum, GLsizei, GLenum, GLenum,
|
||||||
|
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
|
|
||||||
void QGL_EXT_Reset ( void )
|
static void QGL_EXT_Reset ( void )
|
||||||
{
|
{
|
||||||
qglPointParameterfARB = NULL;
|
qglPointParameterfARB = NULL;
|
||||||
qglPointParameterfvARB = NULL;
|
qglPointParameterfvARB = NULL;
|
||||||
|
|
|
@ -356,6 +356,8 @@ void AL_RawSamples(int samples, int rate, int width,
|
||||||
*/
|
*/
|
||||||
void AL_UnqueueRawSamples();
|
void AL_UnqueueRawSamples();
|
||||||
|
|
||||||
|
void AL_Underwater();
|
||||||
|
void AL_Overwater();
|
||||||
|
|
||||||
#endif /* USE_OPENAL */
|
#endif /* USE_OPENAL */
|
||||||
#endif /* CL_SOUND_LOCAL_H */
|
#endif /* CL_SOUND_LOCAL_H */
|
||||||
|
|
||||||
|
|
|
@ -654,7 +654,7 @@ OGG_TogglePlayback(void)
|
||||||
/*
|
/*
|
||||||
* Prints a help message for the 'ogg' cmd.
|
* Prints a help message for the 'ogg' cmd.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
OGG_HelpMsg(void)
|
OGG_HelpMsg(void)
|
||||||
{
|
{
|
||||||
Com_Printf("Unknown sub command %s\n\n", Cmd_Argv(1));
|
Com_Printf("Unknown sub command %s\n\n", Cmd_Argv(1));
|
||||||
|
|
|
@ -295,7 +295,7 @@ Cvar_Get(const char *var_name, const char *var_value, int flags)
|
||||||
return var;
|
return var;
|
||||||
}
|
}
|
||||||
|
|
||||||
cvar_t *
|
static cvar_t *
|
||||||
Cvar_Set2(const char *var_name, const char *value, qboolean force)
|
Cvar_Set2(const char *var_name, const char *value, qboolean force)
|
||||||
{
|
{
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
@ -530,7 +530,7 @@ Cvar_Command(void)
|
||||||
/*
|
/*
|
||||||
* Allows setting and defining of arbitrary cvars from console
|
* Allows setting and defining of arbitrary cvars from console
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
Cvar_Set_f(void)
|
Cvar_Set_f(void)
|
||||||
{
|
{
|
||||||
char *firstarg;
|
char *firstarg;
|
||||||
|
@ -615,7 +615,7 @@ Cvar_WriteVariables(const char *path)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
Cvar_List_f(void)
|
Cvar_List_f(void)
|
||||||
{
|
{
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
@ -678,7 +678,7 @@ Cvar_List_f(void)
|
||||||
|
|
||||||
qboolean userinfo_modified;
|
qboolean userinfo_modified;
|
||||||
|
|
||||||
char *
|
static char *
|
||||||
Cvar_BitInfo(int bit)
|
Cvar_BitInfo(int bit)
|
||||||
{
|
{
|
||||||
static char info[MAX_INFO_STRING];
|
static char info[MAX_INFO_STRING];
|
||||||
|
@ -721,7 +721,8 @@ Cvar_Serverinfo(void)
|
||||||
* Increments the given cvar by 1 or adds the
|
* Increments the given cvar by 1 or adds the
|
||||||
* optional given float value to it.
|
* optional given float value to it.
|
||||||
*/
|
*/
|
||||||
void Cvar_Inc_f(void)
|
static void
|
||||||
|
Cvar_Inc_f(void)
|
||||||
{
|
{
|
||||||
char string[MAX_QPATH];
|
char string[MAX_QPATH];
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
@ -764,7 +765,8 @@ void Cvar_Inc_f(void)
|
||||||
/*
|
/*
|
||||||
* Resets a cvar to its default value.
|
* Resets a cvar to its default value.
|
||||||
*/
|
*/
|
||||||
void Cvar_Reset_f(void)
|
static void
|
||||||
|
Cvar_Reset_f(void)
|
||||||
{
|
{
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
|
||||||
|
@ -790,7 +792,8 @@ void Cvar_Reset_f(void)
|
||||||
* Resets all known cvar (with the exception of `game') to
|
* Resets all known cvar (with the exception of `game') to
|
||||||
* their default values.
|
* their default values.
|
||||||
*/
|
*/
|
||||||
void Cvar_ResetAll_f(void)
|
static void
|
||||||
|
Cvar_ResetAll_f(void)
|
||||||
{
|
{
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
|
||||||
|
@ -812,7 +815,8 @@ void Cvar_ResetAll_f(void)
|
||||||
/*
|
/*
|
||||||
* Toggles a cvar between 0 and 1 or the given values.
|
* Toggles a cvar between 0 and 1 or the given values.
|
||||||
*/
|
*/
|
||||||
void Cvar_Toggle_f(void)
|
static void
|
||||||
|
Cvar_Toggle_f(void)
|
||||||
{
|
{
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
int i, argc = Cmd_Argc();
|
int i, argc = Cmd_Argc();
|
||||||
|
|
|
@ -200,7 +200,7 @@ static voidpf ZCALLBACK fopen_file_func_utf(voidpf opaque, const char *filename,
|
||||||
/*
|
/*
|
||||||
* Returns the path up to, but not including the last '/'.
|
* Returns the path up to, but not including the last '/'.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
Com_FilePath(const char *path, char *dst, int dstSize)
|
Com_FilePath(const char *path, char *dst, int dstSize)
|
||||||
{
|
{
|
||||||
char *pos; /* Position of the last '/'. */
|
char *pos; /* Position of the last '/'. */
|
||||||
|
@ -226,7 +226,7 @@ Com_FilePath(const char *path, char *dst, int dstSize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
FS_FileLength(FILE *f)
|
FS_FileLength(FILE *f)
|
||||||
{
|
{
|
||||||
int pos; /* Current position. */
|
int pos; /* Current position. */
|
||||||
|
@ -300,7 +300,7 @@ FS_Gamedir(void)
|
||||||
/*
|
/*
|
||||||
* Finds a free fileHandle_t.
|
* Finds a free fileHandle_t.
|
||||||
*/
|
*/
|
||||||
fsHandle_t *
|
static fsHandle_t *
|
||||||
FS_HandleForFile(const char *path, fileHandle_t *f)
|
FS_HandleForFile(const char *path, fileHandle_t *f)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -742,7 +742,8 @@ FS_FreeFile(void *buffer)
|
||||||
Z_Free(buffer);
|
Z_Free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
fsRawPath_t *FS_FreeRawPaths(fsRawPath_t *start, fsRawPath_t *end)
|
static fsRawPath_t *
|
||||||
|
FS_FreeRawPaths(fsRawPath_t *start, fsRawPath_t *end)
|
||||||
{
|
{
|
||||||
fsRawPath_t *cur = start;
|
fsRawPath_t *cur = start;
|
||||||
fsRawPath_t *next;
|
fsRawPath_t *next;
|
||||||
|
@ -757,7 +758,8 @@ fsRawPath_t *FS_FreeRawPaths(fsRawPath_t *start, fsRawPath_t *end)
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
fsSearchPath_t *FS_FreeSearchPaths(fsSearchPath_t *start, fsSearchPath_t *end)
|
static fsSearchPath_t *
|
||||||
|
FS_FreeSearchPaths(fsSearchPath_t *start, fsSearchPath_t *end)
|
||||||
{
|
{
|
||||||
fsSearchPath_t *cur = start;
|
fsSearchPath_t *cur = start;
|
||||||
fsSearchPath_t *next;
|
fsSearchPath_t *next;
|
||||||
|
@ -794,7 +796,7 @@ fsSearchPath_t *FS_FreeSearchPaths(fsSearchPath_t *start, fsSearchPath_t *end)
|
||||||
* Loads the header and directory, adding the files at the beginning of the
|
* Loads the header and directory, adding the files at the beginning of the
|
||||||
* list so they override previous pack files.
|
* list so they override previous pack files.
|
||||||
*/
|
*/
|
||||||
fsPack_t *
|
static fsPack_t *
|
||||||
FS_LoadPAK(const char *packPath)
|
FS_LoadPAK(const char *packPath)
|
||||||
{
|
{
|
||||||
int i; /* Loop counter. */
|
int i; /* Loop counter. */
|
||||||
|
@ -877,7 +879,7 @@ FS_LoadPAK(const char *packPath)
|
||||||
* Loads the header and directory, adding the files at the beginning of the list
|
* Loads the header and directory, adding the files at the beginning of the list
|
||||||
* so they override previous pack files.
|
* so they override previous pack files.
|
||||||
*/
|
*/
|
||||||
fsPack_t *
|
static fsPack_t *
|
||||||
FS_LoadPK3(const char *packPath)
|
FS_LoadPK3(const char *packPath)
|
||||||
{
|
{
|
||||||
char fileName[MAX_QPATH]; /* File name. */
|
char fileName[MAX_QPATH]; /* File name. */
|
||||||
|
@ -979,7 +981,7 @@ FS_NextPath(const char *prevPath)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
FS_Path_f(void)
|
FS_Path_f(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1035,7 +1037,7 @@ FS_Path_f(void)
|
||||||
/*
|
/*
|
||||||
* Creates a filelink_t.
|
* Creates a filelink_t.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
FS_Link_f(void)
|
FS_Link_f(void)
|
||||||
{
|
{
|
||||||
fsLink_t *l, **prev;
|
fsLink_t *l, **prev;
|
||||||
|
@ -1149,7 +1151,7 @@ FS_ListFiles(const char *findname, int *numfiles,
|
||||||
* attributes then a copy of the matching string will be placed there (with
|
* attributes then a copy of the matching string will be placed there (with
|
||||||
* SFF_SUBDIR it changes).
|
* SFF_SUBDIR it changes).
|
||||||
*/
|
*/
|
||||||
qboolean
|
static qboolean
|
||||||
ComparePackFiles(const char *findname, const char *name, unsigned musthave,
|
ComparePackFiles(const char *findname, const char *name, unsigned musthave,
|
||||||
unsigned canthave, char *output, int size)
|
unsigned canthave, char *output, int size)
|
||||||
{
|
{
|
||||||
|
@ -1495,7 +1497,7 @@ FS_ListMods(int *nummods)
|
||||||
/*
|
/*
|
||||||
* Directory listing.
|
* Directory listing.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
FS_Dir_f(void)
|
FS_Dir_f(void)
|
||||||
{
|
{
|
||||||
char **dirnames; /* File list. */
|
char **dirnames; /* File list. */
|
||||||
|
@ -1671,7 +1673,7 @@ static char* basename( char* n )
|
||||||
}
|
}
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
void
|
static void
|
||||||
FS_AddDirToSearchPath(char *dir, qboolean create) {
|
FS_AddDirToSearchPath(char *dir, qboolean create) {
|
||||||
char *file;
|
char *file;
|
||||||
char **list;
|
char **list;
|
||||||
|
@ -1825,7 +1827,8 @@ FS_AddDirToSearchPath(char *dir, qboolean create) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FS_BuildGenericSearchPath(void) {
|
static void
|
||||||
|
FS_BuildGenericSearchPath(void) {
|
||||||
// We may not use the va() function from shared.c
|
// We may not use the va() function from shared.c
|
||||||
// since it's buffersize is 1024 while most OS have
|
// since it's buffersize is 1024 while most OS have
|
||||||
// a maximum path size of 4096...
|
// a maximum path size of 4096...
|
||||||
|
@ -1863,8 +1866,6 @@ void FS_BuildGenericSearchPath(void) {
|
||||||
// Variables
|
// Variables
|
||||||
extern qboolean menu_startdemoloop;
|
extern qboolean menu_startdemoloop;
|
||||||
|
|
||||||
// Functions
|
|
||||||
void CL_WriteConfiguration(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2056,7 +2057,9 @@ static void FS_AddDirToRawPath (const char *rawdir, qboolean create, qboolean re
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void FS_BuildRawPath(void) {
|
static void
|
||||||
|
FS_BuildRawPath(void)
|
||||||
|
{
|
||||||
// Add $HOME/.yq2, MUST be the last dir! Required,
|
// Add $HOME/.yq2, MUST be the last dir! Required,
|
||||||
// otherwise the config cannot be written.
|
// otherwise the config cannot be written.
|
||||||
if (!is_portable) {
|
if (!is_portable) {
|
||||||
|
|
|
@ -626,6 +626,9 @@ qboolean Netchan_CanReliable(netchan_t *chan);
|
||||||
|
|
||||||
cmodel_t *CM_LoadMap(const char *name, qboolean clientload, unsigned *checksum);
|
cmodel_t *CM_LoadMap(const char *name, qboolean clientload, unsigned *checksum);
|
||||||
cmodel_t *CM_InlineModel(const char *name); /* *1, *2, etc */
|
cmodel_t *CM_InlineModel(const char *name); /* *1, *2, etc */
|
||||||
|
int CM_MapSurfacesNum(void);
|
||||||
|
mapsurface_t* CM_MapSurfaces(int surfnum);
|
||||||
|
|
||||||
void CM_ModFreeAll(void);
|
void CM_ModFreeAll(void);
|
||||||
|
|
||||||
int CM_NumClusters(void);
|
int CM_NumClusters(void);
|
||||||
|
@ -706,6 +709,8 @@ int FS_FOpenFile(const char *name, fileHandle_t *f, qboolean gamedir_only);
|
||||||
void FS_FCloseFile(fileHandle_t f);
|
void FS_FCloseFile(fileHandle_t f);
|
||||||
int FS_Read(void *buffer, int size, fileHandle_t f);
|
int FS_Read(void *buffer, int size, fileHandle_t f);
|
||||||
int FS_FRead(void *buffer, int size, int count, fileHandle_t f);
|
int FS_FRead(void *buffer, int size, int count, fileHandle_t f);
|
||||||
|
void CM_ReadPortalState(fileHandle_t f);
|
||||||
|
void CL_WriteConfiguration(void);
|
||||||
|
|
||||||
// returns the filename used to open f, but (if opened from pack) in correct case
|
// returns the filename used to open f, but (if opened from pack) in correct case
|
||||||
// returns NULL if f is no valid handle
|
// returns NULL if f is no valid handle
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
#include "../client/sound/header/local.h"
|
#include "../client/sound/header/local.h"
|
||||||
#include "../client/header/client.h"
|
#include "../client/header/client.h"
|
||||||
|
|
||||||
#if !defined(DEDICATED_ONLY) && defined(USE_OPENAL)
|
|
||||||
void AL_Underwater();
|
|
||||||
void AL_Overwater();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define STEPSIZE 18
|
#define STEPSIZE 18
|
||||||
|
|
||||||
/* all of the locals will be zeroed before each
|
/* all of the locals will be zeroed before each
|
||||||
|
@ -74,7 +69,7 @@ float pm_waterspeed = 400;
|
||||||
#define MIN_STEP_NORMAL 0.7 /* can't step up onto very steep slopes */
|
#define MIN_STEP_NORMAL 0.7 /* can't step up onto very steep slopes */
|
||||||
#define MAX_CLIP_PLANES 5
|
#define MAX_CLIP_PLANES 5
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_ClipVelocity(vec3_t in, vec3_t normal, vec3_t out, float overbounce)
|
PM_ClipVelocity(vec3_t in, vec3_t normal, vec3_t out, float overbounce)
|
||||||
{
|
{
|
||||||
float backoff;
|
float backoff;
|
||||||
|
@ -102,7 +97,7 @@ PM_ClipVelocity(vec3_t in, vec3_t normal, vec3_t out, float overbounce)
|
||||||
* Returns a new origin, velocity, and contact entity
|
* Returns a new origin, velocity, and contact entity
|
||||||
* Does not modify any world state?
|
* Does not modify any world state?
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
PM_StepSlideMove_(void)
|
PM_StepSlideMove_(void)
|
||||||
{
|
{
|
||||||
int bumpcount, numbumps;
|
int bumpcount, numbumps;
|
||||||
|
@ -226,7 +221,7 @@ PM_StepSlideMove_(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_StepSlideMove(void)
|
PM_StepSlideMove(void)
|
||||||
{
|
{
|
||||||
vec3_t start_o, start_v;
|
vec3_t start_o, start_v;
|
||||||
|
@ -290,7 +285,7 @@ PM_StepSlideMove(void)
|
||||||
/*
|
/*
|
||||||
* Handles both ground friction and water friction
|
* Handles both ground friction and water friction
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
PM_Friction(void)
|
PM_Friction(void)
|
||||||
{
|
{
|
||||||
float *vel;
|
float *vel;
|
||||||
|
@ -344,7 +339,7 @@ PM_Friction(void)
|
||||||
/*
|
/*
|
||||||
* Handles user intended acceleration
|
* Handles user intended acceleration
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
PM_Accelerate(vec3_t wishdir, float wishspeed, float accel)
|
PM_Accelerate(vec3_t wishdir, float wishspeed, float accel)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -371,7 +366,7 @@ PM_Accelerate(vec3_t wishdir, float wishspeed, float accel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_AirAccelerate(vec3_t wishdir, float wishspeed, float accel)
|
PM_AirAccelerate(vec3_t wishdir, float wishspeed, float accel)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -403,7 +398,7 @@ PM_AirAccelerate(vec3_t wishdir, float wishspeed, float accel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_AddCurrents(vec3_t wishvel)
|
PM_AddCurrents(vec3_t wishvel)
|
||||||
{
|
{
|
||||||
vec3_t v;
|
vec3_t v;
|
||||||
|
@ -537,7 +532,7 @@ PM_AddCurrents(vec3_t wishvel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_WaterMove(void)
|
PM_WaterMove(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -579,7 +574,7 @@ PM_WaterMove(void)
|
||||||
PM_StepSlideMove();
|
PM_StepSlideMove();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_AirMove(void)
|
PM_AirMove(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -681,7 +676,7 @@ PM_AirMove(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_CatagorizePosition(void)
|
PM_CatagorizePosition(void)
|
||||||
{
|
{
|
||||||
vec3_t point;
|
vec3_t point;
|
||||||
|
@ -788,7 +783,7 @@ PM_CatagorizePosition(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_CheckJump(void)
|
PM_CheckJump(void)
|
||||||
{
|
{
|
||||||
if (pm->s.pm_flags & PMF_TIME_LAND)
|
if (pm->s.pm_flags & PMF_TIME_LAND)
|
||||||
|
@ -857,7 +852,7 @@ PM_CheckJump(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_CheckSpecialMovement(void)
|
PM_CheckSpecialMovement(void)
|
||||||
{
|
{
|
||||||
vec3_t spot;
|
vec3_t spot;
|
||||||
|
@ -917,7 +912,7 @@ PM_CheckSpecialMovement(void)
|
||||||
pm->s.pm_time = 255;
|
pm->s.pm_time = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_FlyMove(qboolean doclip)
|
PM_FlyMove(qboolean doclip)
|
||||||
{
|
{
|
||||||
float speed, drop, friction, control, newspeed;
|
float speed, drop, friction, control, newspeed;
|
||||||
|
@ -1025,7 +1020,7 @@ PM_FlyMove(qboolean doclip)
|
||||||
/*
|
/*
|
||||||
* Sets mins, maxs, and pm->viewheight
|
* Sets mins, maxs, and pm->viewheight
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
PM_CheckDuck(void)
|
PM_CheckDuck(void)
|
||||||
{
|
{
|
||||||
trace_t trace;
|
trace_t trace;
|
||||||
|
@ -1083,7 +1078,7 @@ PM_CheckDuck(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_DeadMove(void)
|
PM_DeadMove(void)
|
||||||
{
|
{
|
||||||
float forward;
|
float forward;
|
||||||
|
@ -1108,7 +1103,7 @@ PM_DeadMove(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean
|
static qboolean
|
||||||
PM_GoodPosition(void)
|
PM_GoodPosition(void)
|
||||||
{
|
{
|
||||||
trace_t trace;
|
trace_t trace;
|
||||||
|
@ -1134,7 +1129,7 @@ PM_GoodPosition(void)
|
||||||
* On exit, the origin will have a value that is pre-quantized to the 0.125
|
* On exit, the origin will have a value that is pre-quantized to the 0.125
|
||||||
* precision of the network channel and in a valid position.
|
* precision of the network channel and in a valid position.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
PM_SnapPosition(void)
|
PM_SnapPosition(void)
|
||||||
{
|
{
|
||||||
int sign[3];
|
int sign[3];
|
||||||
|
@ -1194,7 +1189,7 @@ PM_SnapPosition(void)
|
||||||
VectorCopy(pml.previous_origin, pm->s.origin);
|
VectorCopy(pml.previous_origin, pm->s.origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_InitialSnapPosition(void)
|
PM_InitialSnapPosition(void)
|
||||||
{
|
{
|
||||||
int x, y, z;
|
int x, y, z;
|
||||||
|
@ -1230,7 +1225,7 @@ PM_InitialSnapPosition(void)
|
||||||
Com_DPrintf("Bad InitialSnapPosition\n");
|
Com_DPrintf("Bad InitialSnapPosition\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
PM_ClampAngles(void)
|
PM_ClampAngles(void)
|
||||||
{
|
{
|
||||||
short temp;
|
short temp;
|
||||||
|
@ -1267,7 +1262,8 @@ PM_ClampAngles(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(DEDICATED_ONLY)
|
#if !defined(DEDICATED_ONLY)
|
||||||
void PM_CalculateViewHeightForDemo()
|
static void
|
||||||
|
PM_CalculateViewHeightForDemo()
|
||||||
{
|
{
|
||||||
if (pm->s.pm_type == PM_GIB)
|
if (pm->s.pm_type == PM_GIB)
|
||||||
pm->viewheight = 8;
|
pm->viewheight = 8;
|
||||||
|
@ -1279,7 +1275,8 @@ void PM_CalculateViewHeightForDemo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PM_CalculateWaterLevelForDemo()
|
static void
|
||||||
|
PM_CalculateWaterLevelForDemo()
|
||||||
{
|
{
|
||||||
vec3_t point;
|
vec3_t point;
|
||||||
int cont;
|
int cont;
|
||||||
|
@ -1299,7 +1296,8 @@ void PM_CalculateWaterLevelForDemo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PM_UpdateUnderwaterSfx()
|
static void
|
||||||
|
PM_UpdateUnderwaterSfx()
|
||||||
{
|
{
|
||||||
static int underwater;
|
static int underwater;
|
||||||
|
|
||||||
|
@ -1309,7 +1307,9 @@ void PM_UpdateUnderwaterSfx()
|
||||||
|
|
||||||
#ifdef USE_OPENAL
|
#ifdef USE_OPENAL
|
||||||
if (snd_is_underwater_enabled)
|
if (snd_is_underwater_enabled)
|
||||||
|
{
|
||||||
AL_Underwater();
|
AL_Underwater();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "../header/shared.h"
|
||||||
|
|
||||||
#define QSIZE 0x200000
|
#define QSIZE 0x200000
|
||||||
#define CNG (cng = 6906969069ULL * cng + 13579)
|
#define CNG (cng = 6906969069ULL * cng + 13579)
|
||||||
|
|
|
@ -4058,16 +4058,6 @@ CTFRequestMatch(edict_t *ent, pmenuhnd_t *p)
|
||||||
CTFBeginElection(ent, ELECT_MATCH, text);
|
CTFBeginElection(ent, ELECT_MATCH, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
CTFShowScores(edict_t *ent, pmenu_t *p)
|
|
||||||
{
|
|
||||||
PMenu_Close(ent);
|
|
||||||
|
|
||||||
ent->client->showscores = true;
|
|
||||||
ent->client->showinventory = false;
|
|
||||||
DeathmatchScoreboard(ent);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
CTFUpdateJoinMenu(edict_t *ent)
|
CTFUpdateJoinMenu(edict_t *ent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
#include "header/server.h"
|
#include "header/server.h"
|
||||||
|
|
||||||
void CM_ReadPortalState(fileHandle_t f);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Delete save/<XXX>/
|
* Delete save/<XXX>/
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue