mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
more externs cleaned up
This commit is contained in:
parent
8071e8398a
commit
85c9e0ab1e
26 changed files with 34 additions and 57 deletions
|
@ -1268,7 +1268,9 @@ if test "x$HAVE_ZLIB" = xyes; then
|
||||||
HAVE_ZLIB="no, due to conflicting $x11_old_libz/libz.a"
|
HAVE_ZLIB="no, due to conflicting $x11_old_libz/libz.a"
|
||||||
Z_LIBS=""
|
Z_LIBS=""
|
||||||
else
|
else
|
||||||
|
if test -n "$X_LIBS"; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
AC_DEFINE(HAVE_ZLIB)
|
AC_DEFINE(HAVE_ZLIB)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -43,6 +43,7 @@ extern struct cvar_s *fs_sharepath;
|
||||||
extern struct cvar_s *fs_basegame;
|
extern struct cvar_s *fs_basegame;
|
||||||
extern struct cvar_s *fs_skinbase;
|
extern struct cvar_s *fs_skinbase;
|
||||||
|
|
||||||
|
extern int file_from_pak;
|
||||||
extern int com_filesize;
|
extern int com_filesize;
|
||||||
struct cache_user_s;
|
struct cache_user_s;
|
||||||
|
|
||||||
|
|
|
@ -65,8 +65,6 @@ void SND_Init_Cvars ();
|
||||||
|
|
||||||
// Internal sound data & structures ===========================================
|
// Internal sound data & structures ===========================================
|
||||||
|
|
||||||
//extern double host_frametime; // From host.h
|
|
||||||
|
|
||||||
int snd_blocked = 0;
|
int snd_blocked = 0;
|
||||||
static qboolean snd_ambient = 1;
|
static qboolean snd_ambient = 1;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ static const char rcsid[] =
|
||||||
#include "QF/model.h"
|
#include "QF/model.h"
|
||||||
|
|
||||||
|
|
||||||
const int mod_lightmap_bytes = 1; // was extern const int mod_lightmap_bytes;
|
const int mod_lightmap_bytes = 1;
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -387,7 +387,6 @@ Draw_Crosshair (int swap)
|
||||||
{
|
{
|
||||||
unsigned char *pColor;
|
unsigned char *pColor;
|
||||||
int x, y;
|
int x, y;
|
||||||
extern vrect_t scr_vrect;
|
|
||||||
|
|
||||||
switch (crosshair->int_val) {
|
switch (crosshair->int_val) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
@ -320,7 +320,6 @@ R_SetupGL (void)
|
||||||
{
|
{
|
||||||
float screenaspect;
|
float screenaspect;
|
||||||
int x, x2, y2, y, w, h;
|
int x, x2, y2, y, w, h;
|
||||||
extern int glwidth, glheight;
|
|
||||||
|
|
||||||
// set up viewpoint
|
// set up viewpoint
|
||||||
qfglMatrixMode (GL_PROJECTION);
|
qfglMatrixMode (GL_PROJECTION);
|
||||||
|
|
|
@ -90,8 +90,6 @@ glRect_t lightmap_rectchange[MAX_LIGHTMAPS];
|
||||||
msurface_t *waterchain = NULL;
|
msurface_t *waterchain = NULL;
|
||||||
msurface_t *sky_chain;
|
msurface_t *sky_chain;
|
||||||
|
|
||||||
//extern vec3_t shadecolor; // Ender (Extend) Colormod
|
|
||||||
|
|
||||||
|
|
||||||
// LordHavoc: place for gl_rsurf setup code
|
// LordHavoc: place for gl_rsurf setup code
|
||||||
void
|
void
|
||||||
|
|
|
@ -406,7 +406,7 @@ SCR_DrawFPS (int swap)
|
||||||
int i, x, y;
|
int i, x, y;
|
||||||
static int lastfps;
|
static int lastfps;
|
||||||
|
|
||||||
extern int fps_count;
|
extern int fps_count; //FIXME
|
||||||
|
|
||||||
if (!show_fps->int_val)
|
if (!show_fps->int_val)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -324,8 +324,6 @@ void
|
||||||
Draw_Crosshair (int swap)
|
Draw_Crosshair (int swap)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
extern cvar_t *crosshair, *cl_crossx, *cl_crossy, *crosshaircolor;
|
|
||||||
extern vrect_t scr_vrect;
|
|
||||||
byte c = crosshaircolor->int_val;
|
byte c = crosshaircolor->int_val;
|
||||||
|
|
||||||
if (crosshair->int_val == 2) {
|
if (crosshair->int_val == 2) {
|
||||||
|
|
|
@ -361,8 +361,6 @@ void
|
||||||
Draw_Crosshair (int swap)
|
Draw_Crosshair (int swap)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
extern cvar_t *crosshair, *cl_crossx, *cl_crossy, *crosshaircolor;
|
|
||||||
extern vrect_t scr_vrect;
|
|
||||||
byte c = crosshaircolor->int_val;
|
byte c = crosshaircolor->int_val;
|
||||||
|
|
||||||
if (crosshair->int_val == 2) {
|
if (crosshair->int_val == 2) {
|
||||||
|
|
|
@ -775,7 +775,6 @@ MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
LONG lRet = 1;
|
LONG lRet = 1;
|
||||||
int fActive, fMinimized, temp;
|
int fActive, fMinimized, temp;
|
||||||
int key, unicode;
|
int key, unicode;
|
||||||
extern unsigned int uiWheelMessage;
|
|
||||||
|
|
||||||
if (uMsg == uiWheelMessage)
|
if (uMsg == uiWheelMessage)
|
||||||
uMsg = WM_MOUSEWHEEL;
|
uMsg = WM_MOUSEWHEEL;
|
||||||
|
|
|
@ -364,6 +364,8 @@ extern kbutton_t in_up, in_down;
|
||||||
|
|
||||||
extern double realtime;
|
extern double realtime;
|
||||||
|
|
||||||
|
extern qboolean recording;
|
||||||
|
|
||||||
void Cvar_Info (struct cvar_s *var);
|
void Cvar_Info (struct cvar_s *var);
|
||||||
|
|
||||||
void CL_UpdateScreen (double realtime);
|
void CL_UpdateScreen (double realtime);
|
||||||
|
|
|
@ -102,8 +102,6 @@ static const char rcsid[] =
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//extern int gethostname (char *, int);
|
|
||||||
|
|
||||||
static int net_acceptsocket = -1; // socket for fielding new
|
static int net_acceptsocket = -1; // socket for fielding new
|
||||||
// connections
|
// connections
|
||||||
static int net_controlsocket;
|
static int net_controlsocket;
|
||||||
|
|
|
@ -56,6 +56,7 @@ static const char rcsid[] =
|
||||||
#include "QF/qargs.h"
|
#include "QF/qargs.h"
|
||||||
#include "QF/sys.h"
|
#include "QF/sys.h"
|
||||||
|
|
||||||
|
#include "client.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
|
|
||||||
|
@ -149,8 +150,6 @@ main (int c, const char *v[])
|
||||||
|
|
||||||
double time, oldtime, newtime;
|
double time, oldtime, newtime;
|
||||||
quakeparms_t parms;
|
quakeparms_t parms;
|
||||||
extern VFile *vcrFile;
|
|
||||||
extern int recording;
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
signal (SIGFPE, SIG_IGN);
|
signal (SIGFPE, SIG_IGN);
|
||||||
|
|
|
@ -51,5 +51,6 @@ extern kbutton_t in_left, in_right, in_forward, in_back;
|
||||||
extern kbutton_t in_lookup, in_lookdown, in_moveleft, in_moveright;
|
extern kbutton_t in_lookup, in_lookdown, in_moveleft, in_moveright;
|
||||||
extern kbutton_t in_use, in_jump, in_attack;
|
extern kbutton_t in_use, in_jump, in_attack;
|
||||||
extern kbutton_t in_up, in_down;
|
extern kbutton_t in_up, in_down;
|
||||||
|
extern int in_impulse;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -43,6 +43,10 @@ extern int cl_playerindex;
|
||||||
extern int cl_flagindex;
|
extern int cl_flagindex;
|
||||||
extern int cl_spikeindex;
|
extern int cl_spikeindex;
|
||||||
extern int viewentity;
|
extern int viewentity;
|
||||||
|
extern int cl_h_playerindex;
|
||||||
|
extern int cl_gib1index;
|
||||||
|
extern int cl_gib2index;
|
||||||
|
extern int cl_gib3index;
|
||||||
|
|
||||||
int CL_CalcNet (void);
|
int CL_CalcNet (void);
|
||||||
void CL_ParseServerMessage (void);
|
void CL_ParseServerMessage (void);
|
||||||
|
|
|
@ -557,6 +557,23 @@ extern struct cvar_s *sv_maxrate;
|
||||||
extern struct cvar_s *sv_timestamps;
|
extern struct cvar_s *sv_timestamps;
|
||||||
extern struct cvar_s *sv_timefmt;
|
extern struct cvar_s *sv_timefmt;
|
||||||
extern struct cvar_s *sv_phs;
|
extern struct cvar_s *sv_phs;
|
||||||
|
extern struct cvar_s *sv_maxvelocity;
|
||||||
|
extern struct cvar_s *sv_gravity;
|
||||||
|
extern struct cvar_s *sv_aim;
|
||||||
|
extern struct cvar_s *sv_stopspeed;
|
||||||
|
extern struct cvar_s *sv_spectatormaxspeed;
|
||||||
|
extern struct cvar_s *sv_accelerate;
|
||||||
|
extern struct cvar_s *sv_airaccelerate;
|
||||||
|
extern struct cvar_s *sv_wateraccelerate;
|
||||||
|
extern struct cvar_s *sv_friction;
|
||||||
|
extern struct cvar_s *sv_waterfriction;
|
||||||
|
extern struct cvar_s *pr_double_remove;
|
||||||
|
extern struct cvar_s *allow_download;
|
||||||
|
extern struct cvar_s *allow_download_skins;
|
||||||
|
extern struct cvar_s *allow_download_models;
|
||||||
|
extern struct cvar_s *allow_download_sounds;
|
||||||
|
extern struct cvar_s *allow_download_maps;
|
||||||
|
|
||||||
extern int fp_messages;
|
extern int fp_messages;
|
||||||
extern int fp_persecond;
|
extern int fp_persecond;
|
||||||
extern int fp_secondsdead;
|
extern int fp_secondsdead;
|
||||||
|
@ -567,4 +584,6 @@ extern char fp_msg[255];
|
||||||
|
|
||||||
extern int sv_nailmodel, sv_supernailmodel, sv_playermodel;
|
extern int sv_nailmodel, sv_supernailmodel, sv_playermodel;
|
||||||
|
|
||||||
|
extern int con_printf_no_log;
|
||||||
|
|
||||||
#endif // _SERVER_H
|
#endif // _SERVER_H
|
||||||
|
|
|
@ -414,8 +414,6 @@ CL_Record_f (void)
|
||||||
player_info_t *player;
|
player_info_t *player;
|
||||||
sizebuf_t buf;
|
sizebuf_t buf;
|
||||||
|
|
||||||
extern char gamedirfile[];
|
|
||||||
|
|
||||||
c = Cmd_Argc ();
|
c = Cmd_Argc ();
|
||||||
if (c != 2) {
|
if (c != 2) {
|
||||||
Con_Printf ("record <demoname>\n");
|
Con_Printf ("record <demoname>\n");
|
||||||
|
|
|
@ -373,9 +373,6 @@ CL_LinkPacketEntities (void)
|
||||||
model_t *model;
|
model_t *model;
|
||||||
packet_entities_t *pack;
|
packet_entities_t *pack;
|
||||||
|
|
||||||
extern int cl_h_playerindex, cl_gib1index, cl_gib2index, cl_gib3index;
|
|
||||||
extern int cl_playerindex;
|
|
||||||
|
|
||||||
pack = &cl.frames[cls.netchan.incoming_sequence &
|
pack = &cl.frames[cls.netchan.incoming_sequence &
|
||||||
UPDATE_MASK].packet_entities;
|
UPDATE_MASK].packet_entities;
|
||||||
|
|
||||||
|
@ -966,8 +963,6 @@ CL_SetSolidPlayers (int playernum)
|
||||||
physent_t *pent;
|
physent_t *pent;
|
||||||
struct predicted_player *pplayer;
|
struct predicted_player *pplayer;
|
||||||
|
|
||||||
extern vec3_t player_maxs, player_mins;
|
|
||||||
|
|
||||||
if (!cl_solid_players->int_val)
|
if (!cl_solid_players->int_val)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -253,8 +253,6 @@ Model_NextDownload (void)
|
||||||
char *s;
|
char *s;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
extern char gamedirfile[];
|
|
||||||
|
|
||||||
if (cls.downloadnumber == 0) {
|
if (cls.downloadnumber == 0) {
|
||||||
Con_Printf ("Checking models...\n");
|
Con_Printf ("Checking models...\n");
|
||||||
CL_UpdateScreen (realtime);
|
CL_UpdateScreen (realtime);
|
||||||
|
@ -649,8 +647,6 @@ CL_ParseServerData (void)
|
||||||
qboolean cflag = false;
|
qboolean cflag = false;
|
||||||
net_svc_serverdata_t serverdata;
|
net_svc_serverdata_t serverdata;
|
||||||
|
|
||||||
extern char gamedirfile[MAX_OSPATH];
|
|
||||||
|
|
||||||
Con_DPrintf ("Serverdata packet received.\n");
|
Con_DPrintf ("Serverdata packet received.\n");
|
||||||
|
|
||||||
if (NET_SVC_ServerData_Parse (&serverdata, net_message)) {
|
if (NET_SVC_ServerData_Parse (&serverdata, net_message)) {
|
||||||
|
|
|
@ -62,8 +62,6 @@ static const char rcsid[] =
|
||||||
cvar_t *net_packetlog;
|
cvar_t *net_packetlog;
|
||||||
cvar_t *net_loglevel;
|
cvar_t *net_loglevel;
|
||||||
|
|
||||||
//extern server_t sv;
|
|
||||||
|
|
||||||
int Net_LogStart (const char *fname);
|
int Net_LogStart (const char *fname);
|
||||||
|
|
||||||
void Analyze_Server_Packet (const byte *data, int len);
|
void Analyze_Server_Packet (const byte *data, int len);
|
||||||
|
|
|
@ -493,8 +493,6 @@ SVC_Status (void)
|
||||||
client_t *cl;
|
client_t *cl;
|
||||||
int ping, bottom, top, i;
|
int ping, bottom, top, i;
|
||||||
|
|
||||||
extern int con_printf_no_log;
|
|
||||||
|
|
||||||
if (!sv_allow_status->int_val)
|
if (!sv_allow_status->int_val)
|
||||||
return;
|
return;
|
||||||
if (CheckForFlood (FLOOD_STATUS))
|
if (CheckForFlood (FLOOD_STATUS))
|
||||||
|
@ -1893,17 +1891,6 @@ void
|
||||||
SV_InitLocal (void)
|
SV_InitLocal (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
extern cvar_t *sv_maxvelocity;
|
|
||||||
extern cvar_t *sv_gravity;
|
|
||||||
extern cvar_t *sv_aim;
|
|
||||||
extern cvar_t *sv_stopspeed;
|
|
||||||
extern cvar_t *sv_spectatormaxspeed;
|
|
||||||
extern cvar_t *sv_accelerate;
|
|
||||||
extern cvar_t *sv_airaccelerate;
|
|
||||||
extern cvar_t *sv_wateraccelerate;
|
|
||||||
extern cvar_t *sv_friction;
|
|
||||||
extern cvar_t *sv_waterfriction;
|
|
||||||
extern cvar_t *pr_double_remove;
|
|
||||||
|
|
||||||
SV_UserInit ();
|
SV_UserInit ();
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,6 @@ main (int argc, const char *argv[])
|
||||||
double time, oldtime, newtime;
|
double time, oldtime, newtime;
|
||||||
fd_set fdset;
|
fd_set fdset;
|
||||||
int j;
|
int j;
|
||||||
extern int net_socket;
|
|
||||||
|
|
||||||
memset (&host_parms, 0, sizeof (host_parms));
|
memset (&host_parms, 0, sizeof (host_parms));
|
||||||
|
|
||||||
|
|
|
@ -691,13 +691,6 @@ SV_BeginDownload_f (void)
|
||||||
char realname[MAX_OSPATH];
|
char realname[MAX_OSPATH];
|
||||||
int zip;
|
int zip;
|
||||||
|
|
||||||
extern cvar_t *allow_download;
|
|
||||||
extern cvar_t *allow_download_skins;
|
|
||||||
extern cvar_t *allow_download_models;
|
|
||||||
extern cvar_t *allow_download_sounds;
|
|
||||||
extern cvar_t *allow_download_maps;
|
|
||||||
extern int file_from_pak; // ZOID did file come from pak?
|
|
||||||
|
|
||||||
name = Cmd_Argv (1);
|
name = Cmd_Argv (1);
|
||||||
// hacked by zoid to allow more conrol over download
|
// hacked by zoid to allow more conrol over download
|
||||||
// first off, no .. or global allow check
|
// first off, no .. or global allow check
|
||||||
|
|
|
@ -48,6 +48,7 @@ static const char rcsid[] =
|
||||||
#include "QF/teamplay.h"
|
#include "QF/teamplay.h"
|
||||||
|
|
||||||
#include "bothdefs.h"
|
#include "bothdefs.h"
|
||||||
|
#include "cl_input.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
|
@ -66,8 +67,6 @@ Team_BestWeaponImpulse (void)
|
||||||
{
|
{
|
||||||
int best, i, imp, items;
|
int best, i, imp, items;
|
||||||
|
|
||||||
extern int in_impulse;
|
|
||||||
|
|
||||||
items = cl.stats[STAT_ITEMS];
|
items = cl.stats[STAT_ITEMS];
|
||||||
best = 0;
|
best = 0;
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,6 @@ int reserved_edicts;
|
||||||
|
|
||||||
void BI_Init (progs_t *progs);
|
void BI_Init (progs_t *progs);
|
||||||
|
|
||||||
extern char *type_name[];
|
|
||||||
extern cvar_t *developer;
|
|
||||||
|
|
||||||
extern int *read_result; //FIXME: eww
|
extern int *read_result; //FIXME: eww
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue