*/
+#include "quakedef.h"
+
#include <sys/types.h>
#include <sys/cdio.h>
#include <sys/ioctl.h>
# include <util.h>
#endif
-#include "quakedef.h"
#include "cdaudio.h"
// rights reserved.
// suggested by Zero_Dogg to fix a compile problem on Mandriva Linux
-#define __KERNEL_STRICT_NAMES
+#include "quakedef.h"
#include <linux/cdrom.h>
#include <sys/ioctl.h>
#include <time.h>
#include <unistd.h>
-#include "quakedef.h"
#include "cdaudio.h"
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
+#include "quakedef.h"
#include <windows.h>
#include <mmsystem.h>
-#include "quakedef.h"
#include "cdaudio.h"
#if _MSC_VER < 1300
+#include "quakedef.h"
+
#include "prvm_cmds.h"
#include "csprogs.h"
#include "cl_collision.h"
void CL_FindNonSolidLocation(const vec3_t in, vec3_t out, vec_t radius);
void CSQC_RelinkAllEntities (int drawmask);
void CSQC_RelinkCSQCEntities (void);
-char *Key_GetBind (int key);
+const char *Key_GetBind (int key);
*/
// common.c -- misc functions used in client and server
+#include "quakedef.h"
+
#include <stdlib.h>
#include <fcntl.h>
#ifndef WIN32
#include <unistd.h>
#endif
-#include "quakedef.h"
-
cvar_t registered = {0, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"};
cvar_t cmdline = {0, "cmdline","0", "contains commandline the engine was launched with"};
*/
// conproc.c
+#include "quakedef.h"
+
#include <windows.h>
#include <wchar.h>
-#include "quakedef.h"
#include "conproc.h"
HANDLE heventDone;
*/
// console.c
+#include "quakedef.h"
+
#if !defined(WIN32) || defined(__MINGW32__)
# include <unistd.h>
#endif
#include <time.h>
-#include "quakedef.h"
int con_linewidth;
}
*/
+#include "quakedef.h"
+
#include <math.h>
#include "curves.h"
Boston, MA 02111-1307, USA
*/
-// on UNIX platforms we need to define this so that video saving does not cause a SIGFSZ (file size) signal when a video clip exceeds 2GB
-#define _FILE_OFFSET_BITS 64
-
#include "quakedef.h"
#include <limits.h>
*/
// host.c -- coordinates spawning and killing of local servers
-#include <time.h>
#include "quakedef.h"
+
+#include <time.h>
#include "libcurl.h"
#include "cdaudio.h"
#include "cl_video.h"
char chat_buffer[MAX_INPUTLINE];
unsigned int chat_bufferlen = 0;
-extern unsigned int Nicks_CompleteChatLine(char *buffer, size_t size, int pos);
+extern int Nicks_CompleteChatLine(char *buffer, size_t size, unsigned int pos);
static void
Key_Message (int key, char ascii)
// Written by Forest Hale 2003-06-15 and placed into public domain.
+#ifndef STANDALONETEST
+#include "quakedef.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
// for Z_Malloc/Z_Free in quake
#ifndef STANDALONETEST
-#include "quakedef.h"
#include "zone.h"
#include "sys.h"
#include "netconn.h"
*/
// mathlib.c -- math primitives
-#include <math.h>
#include "quakedef.h"
+#include <math.h>
+
vec3_t vec3_origin = {0,0,0};
float ixtable[4096];
+#include "quakedef.h"
#include <math.h>
#include "matrixlib.h"
$Id$
*/
+#include "quakedef.h"
+
#include <string.h> /* XoXus: needed for memset call */
#include "mdfour.h"
/* VIDEO MENU */
// note: if modes are added to the beginning of this list, update VID_DEFAULT
-typedef struct video_resolution_s
-{
- const char *type;
- int width, height;
- int conwidth, conheight;
- double pixelheight; // pixel aspect
-}
-video_resolution_t;
video_resolution_t video_resolutions[] =
{
{"Standard 4x3" , 320, 240, 320, 240, 1 },
extern void (*MR_Draw) (void);
extern void (*MR_ToggleMenu_f) (void);
extern void (*MR_Shutdown) (void);
+
+typedef struct video_resolution_s
+{
+ const char *type;
+ int width, height;
+ int conwidth, conheight;
+ double pixelheight; // pixel aspect
+}
+video_resolution_t;
+video_resolution_t video_resolutions[];
#endif
+#include "quakedef.h"
+
#include "prvm_cmds.h"
+#include "menu.h"
//============================================================================
// Menu
vector getresolution(float number)
=========
*/
-extern unsigned short video_resolutions[][2];
void VM_M_getresolution(void)
{
int nr;
nr = (int)PRVM_G_FLOAT(OFS_PARM0);
-
- PRVM_G_VECTOR(OFS_RETURN)[0] = video_resolutions[nr][0];
- PRVM_G_VECTOR(OFS_RETURN)[1] = video_resolutions[nr][1];
+ // FIXME bounds check
+ PRVM_G_VECTOR(OFS_RETURN)[0] = video_resolutions[nr].width;
+ PRVM_G_VECTOR(OFS_RETURN)[1] = video_resolutions[nr].height;
PRVM_G_VECTOR(OFS_RETURN)[2] = 0;
}
Polygon clipping routines written by Forest Hale and placed into public domain.
*/
+#include "quakedef.h"
+
#include <math.h>
#include "polygon.h"
// cause large (I think they will) parts are from pr_cmds the same copyright like in pr_cmds
// also applies here
+#include "quakedef.h"
+
#include "prvm_cmds.h"
#include <time.h>
#ifndef QUAKEDEF_H
#define QUAKEDEF_H
+// on UNIX platforms we need to define this so that video saving does not cause a SIGFSZ (file size) signal when a video clip exceeds 2GB
+#define _FILE_OFFSET_BITS 64
+
+// for cd_linux.c
+#define __KERNEL_STRICT_NAMES
+
#if defined(__GNUC__) && (__GNUC__ > 2)
#define DP_FUNC_PRINTF(n) __attribute__ ((format (printf, n, n+1)))
#else
// ALSA module, used by Linux
+#include "quakedef.h"
#include <alsa/asoundlib.h>
-#include "quakedef.h"
#include "snd_main.h"
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "quakedef.h"
#include <sys/param.h>
#include <sys/audioio.h>
#endif
#include <unistd.h>
-#include "quakedef.h"
#include "snd_main.h"
===========================================================================
*/
+#include "quakedef.h"
+
#include <limits.h>
#include <pthread.h>
#include <CoreAudio/AudioHardware.h>
-#include "quakedef.h"
#include "snd_main.h"
// OSS module, used by Linux and FreeBSD
+#include "quakedef.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/soundcard.h>
#include <unistd.h>
-#include "quakedef.h"
#include "snd_main.h"
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "quakedef.h"
#include <math.h>
#include <SDL.h>
-#include "quakedef.h"
#include "snd_main.h"
// Shadow Volume BSP code written by Forest "LordHavoc" Hale on 2003-11-06 and placed into public domain.
// Modified by LordHavoc (to make it work and other nice things like that) on 2007-01-24 and 2007-01-25
+#include "quakedef.h"
+
#include <math.h>
#include <string.h>
#include "svbsp.h"
+#include "quakedef.h"
+
#include "prvm_cmds.h"
//============================================================================
+#include "quakedef.h"
#ifdef WIN32
#include <io.h>
#include <signal.h>
-#include "quakedef.h"
-
#ifdef WIN32
cvar_t sys_usetimegettime = {CVAR_SAVE, "sys_usetimegettime", "1", "use windows timeGetTime function (which has issues on some motherboards) for timing rather than QueryPerformanceCounter timer (which has issues on multicore/multiprocessor machines and processors which are designed to conserve power)"};
+#include "quakedef.h"
#ifdef WIN32
#include <io.h>
#include <signal.h>
-#include "quakedef.h"
-
#include <SDL.h>
// =======================================================================
*/
+#include "quakedef.h"
+
#include <dlfcn.h>
#include <signal.h>
#include <AGL/agl.h>
#include <IOKit/hidsystem/IOHIDParameter.h>
#include <IOKit/hidsystem/event_status_driver.h>
#include "vid_agl_mackeys.h" // this is SDL/src/video/maccommon/SDL_mackeys.h
-#include "quakedef.h"
#ifndef kCGLCEMPEngine
#define kCGLCEMPEngine 313
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "quakedef.h"
+
#include <signal.h>
#include <dlfcn.h>
#endif
#include <X11/extensions/xf86vmode.h>
-#include "quakedef.h"
-
#include "nexuiz.xpm"
#include "darkplaces.xpm"
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <signal.h>
#include "quakedef.h"
+#include <signal.h>
+
int cl_available = false;
qboolean vid_supportrefreshrate = false;
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "quakedef.h"
+
#undef WIN32_LEAN_AND_MEAN //hush a warning, SDL.h redefines this
#include <SDL.h>
#include <stdio.h>
-#include "quakedef.h"
-
// Tell startup code that we have a client
int cl_available = true;