mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 13:51:36 +00:00
Nuke qboolean from orbit
I never liked it, but with C2x coming out, it's best to handle bools properly. I haven't gone through all the uses of int as bool (I'll leave that for fixing when I encounter them), but this gets QF working with both c2x (really, gnu2x because of raw strings).
This commit is contained in:
parent
9871b44d68
commit
dbd3d6502a
273 changed files with 894 additions and 897 deletions
|
@ -69,7 +69,7 @@ static plugin_list_t server_plugin_list[] = {
|
||||||
SERVER_PLUGIN_LIST
|
SERVER_PLUGIN_LIST
|
||||||
};
|
};
|
||||||
|
|
||||||
qboolean is_server = true;
|
bool is_server = true;
|
||||||
|
|
||||||
static cbuf_t *mst_cbuf;
|
static cbuf_t *mst_cbuf;
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ typedef void *(GLAPIENTRY *QF_glXGetProcAddressARB) (const GLubyte *procName);
|
||||||
typedef const GLubyte *(GLAPIENTRY *QF_wglGetExtensionsStringEXT) (void);
|
typedef const GLubyte *(GLAPIENTRY *QF_wglGetExtensionsStringEXT) (void);
|
||||||
|
|
||||||
/* QuakeForge extension functions */
|
/* QuakeForge extension functions */
|
||||||
qboolean QFGL_ExtensionPresent (const char *);
|
bool QFGL_ExtensionPresent (const char *);
|
||||||
void *QFGL_ExtensionAddress (const char *);
|
void *QFGL_ExtensionAddress (const char *);
|
||||||
|
|
||||||
#endif // __qfgl_ext_h_
|
#endif // __qfgl_ext_h_
|
||||||
|
|
|
@ -42,6 +42,6 @@
|
||||||
#undef QFGL_NEED
|
#undef QFGL_NEED
|
||||||
#undef QFGL_WANT
|
#undef QFGL_WANT
|
||||||
|
|
||||||
qboolean GLF_FindFunctions (void);
|
bool GLF_FindFunctions (void);
|
||||||
|
|
||||||
#endif // __QF_GL_funcs_h_
|
#endif // __QF_GL_funcs_h_
|
||||||
|
|
|
@ -49,7 +49,7 @@ void gl_Draw_Line (int x0, int y0, int x1, int y1, int c);
|
||||||
void gl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
void gl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
||||||
void gl_Draw_FadeScreen (void);
|
void gl_Draw_FadeScreen (void);
|
||||||
void gl_Draw_BlendScreen (quat_t color);
|
void gl_Draw_BlendScreen (quat_t color);
|
||||||
struct qpic_s *gl_Draw_CachePic (const char *path, qboolean alpha);
|
struct qpic_s *gl_Draw_CachePic (const char *path, bool alpha);
|
||||||
void gl_Draw_UncachePic (const char *path);
|
void gl_Draw_UncachePic (const char *path);
|
||||||
struct qpic_s *gl_Draw_MakePic (int width, int height, const byte *data);
|
struct qpic_s *gl_Draw_MakePic (int width, int height, const byte *data);
|
||||||
void gl_Draw_DestroyPic (struct qpic_s *pic);
|
void gl_Draw_DestroyPic (struct qpic_s *pic);
|
||||||
|
|
|
@ -43,7 +43,7 @@ extern int lm_src_blend, lm_dest_blend;
|
||||||
extern model_t *gl_currentmodel;
|
extern model_t *gl_currentmodel;
|
||||||
|
|
||||||
extern GLuint gl_lightmap_textures[MAX_LIGHTMAPS];
|
extern GLuint gl_lightmap_textures[MAX_LIGHTMAPS];
|
||||||
extern qboolean gl_lightmap_modified[MAX_LIGHTMAPS];
|
extern bool gl_lightmap_modified[MAX_LIGHTMAPS];
|
||||||
extern instsurf_t *gl_lightmap_polys;
|
extern instsurf_t *gl_lightmap_polys;
|
||||||
extern glRect_t gl_lightmap_rectchange[MAX_LIGHTMAPS];
|
extern glRect_t gl_lightmap_rectchange[MAX_LIGHTMAPS];
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#define SKY_TEX 2000 // Quake 2 environment sky
|
#define SKY_TEX 2000 // Quake 2 environment sky
|
||||||
|
|
||||||
extern qboolean gl_skyloaded;
|
extern bool gl_skyloaded;
|
||||||
extern vec5_t gl_skyvec[6][4];
|
extern vec5_t gl_skyvec[6][4];
|
||||||
extern GLuint gl_solidskytexture;
|
extern GLuint gl_solidskytexture;
|
||||||
extern GLuint gl_alphaskytexture;
|
extern GLuint gl_alphaskytexture;
|
||||||
|
|
|
@ -38,14 +38,14 @@ extern int gl_solid_format;
|
||||||
extern int gl_lightmap_format;
|
extern int gl_lightmap_format;
|
||||||
extern int gl_filter_min;
|
extern int gl_filter_min;
|
||||||
extern int gl_filter_max;
|
extern int gl_filter_max;
|
||||||
extern qboolean gl_Anisotropy;
|
extern bool gl_Anisotropy;
|
||||||
extern float gl_aniso;
|
extern float gl_aniso;
|
||||||
extern GLuint gl_part_tex;
|
extern GLuint gl_part_tex;
|
||||||
struct tex_s;
|
struct tex_s;
|
||||||
|
|
||||||
void GL_Upload8 (const byte *data, int width, int height, qboolean mipmap, qboolean alpha);
|
void GL_Upload8 (const byte *data, int width, int height, bool mipmap, bool alpha);
|
||||||
void GL_Upload8_EXT (const byte *data, int width, int height, qboolean mipmap, qboolean alpha);
|
void GL_Upload8_EXT (const byte *data, int width, int height, bool mipmap, bool alpha);
|
||||||
int GL_LoadTexture (const char *identifier, int width, int height, const byte *data, qboolean mipmap, qboolean alpha, int bytesperpixel);
|
int GL_LoadTexture (const char *identifier, int width, int height, const byte *data, bool mipmap, bool alpha, int bytesperpixel);
|
||||||
int GL_LoadTex (const char *identifier, int mips, struct tex_s *tex);
|
int GL_LoadTex (const char *identifier, int mips, struct tex_s *tex);
|
||||||
int GL_FindTexture (const char *identifier);
|
int GL_FindTexture (const char *identifier);
|
||||||
|
|
||||||
|
|
|
@ -39,13 +39,13 @@ extern QF_glActiveTexture qglActiveTexture;
|
||||||
extern QF_glMultiTexCoord2f qglMultiTexCoord2f;
|
extern QF_glMultiTexCoord2f qglMultiTexCoord2f;
|
||||||
extern QF_glMultiTexCoord2fv qglMultiTexCoord2fv;
|
extern QF_glMultiTexCoord2fv qglMultiTexCoord2fv;
|
||||||
extern int gl_mtex_active_tmus;
|
extern int gl_mtex_active_tmus;
|
||||||
extern qboolean gl_mtex_capable;
|
extern bool gl_mtex_capable;
|
||||||
extern qboolean gl_mtex_fullbright;
|
extern bool gl_mtex_fullbright;
|
||||||
extern GLenum gl_mtex_enum;
|
extern GLenum gl_mtex_enum;
|
||||||
extern qboolean gl_combine_capable;
|
extern bool gl_combine_capable;
|
||||||
extern float gl_rgb_scale;
|
extern float gl_rgb_scale;
|
||||||
|
|
||||||
extern qboolean gl_feature_mach64;
|
extern bool gl_feature_mach64;
|
||||||
extern float gldepthmin, gldepthmax;
|
extern float gldepthmin, gldepthmax;
|
||||||
extern int gl_use_bgra;
|
extern int gl_use_bgra;
|
||||||
extern int gl_tess;
|
extern int gl_tess;
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#undef QFGL_NEED
|
#undef QFGL_NEED
|
||||||
#undef QFGL_WANT
|
#undef QFGL_WANT
|
||||||
|
|
||||||
qboolean EGLF_FindFunctions (void);
|
bool EGLF_FindFunctions (void);
|
||||||
void *QFEGL_ProcAddress (void *handle, const char *name, qboolean);
|
void *QFEGL_ProcAddress (void *handle, const char *name, bool);
|
||||||
|
|
||||||
#endif // __QF_GLSL_funcs_h_
|
#endif // __QF_GLSL_funcs_h_
|
||||||
|
|
|
@ -50,7 +50,7 @@ void glsl_LineGraph (int x, int y, int *h_vals, int count, int height);
|
||||||
void glsl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
void glsl_Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
||||||
void glsl_Draw_FadeScreen (void);
|
void glsl_Draw_FadeScreen (void);
|
||||||
void glsl_Draw_BlendScreen (quat_t color);
|
void glsl_Draw_BlendScreen (quat_t color);
|
||||||
struct qpic_s *glsl_Draw_CachePic (const char *path, qboolean alpha);
|
struct qpic_s *glsl_Draw_CachePic (const char *path, bool alpha);
|
||||||
void glsl_Draw_UncachePic (const char *path);
|
void glsl_Draw_UncachePic (const char *path);
|
||||||
struct qpic_s *glsl_Draw_MakePic (int width, int height, const byte *data);
|
struct qpic_s *glsl_Draw_MakePic (int width, int height, const byte *data);
|
||||||
void glsl_Draw_DestroyPic (struct qpic_s *pic);
|
void glsl_Draw_DestroyPic (struct qpic_s *pic);
|
||||||
|
|
|
@ -38,7 +38,7 @@ typedef struct shader_s {
|
||||||
|
|
||||||
typedef struct shaderparam_s {
|
typedef struct shaderparam_s {
|
||||||
const char *name;
|
const char *name;
|
||||||
qboolean uniform;
|
bool uniform;
|
||||||
int location;
|
int location;
|
||||||
} shaderparam_t;
|
} shaderparam_t;
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ void Vulkan_Draw_TextBox (int x, int y, int width, int lines, byte alpha,
|
||||||
struct vulkan_ctx_s *ctx);
|
struct vulkan_ctx_s *ctx);
|
||||||
void Vulkan_Draw_FadeScreen (struct vulkan_ctx_s *ctx);
|
void Vulkan_Draw_FadeScreen (struct vulkan_ctx_s *ctx);
|
||||||
void Vulkan_Draw_BlendScreen (quat_t color, struct vulkan_ctx_s *ctx);
|
void Vulkan_Draw_BlendScreen (quat_t color, struct vulkan_ctx_s *ctx);
|
||||||
struct qpic_s *Vulkan_Draw_CachePic (const char *path, qboolean alpha,
|
struct qpic_s *Vulkan_Draw_CachePic (const char *path, bool alpha,
|
||||||
struct vulkan_ctx_s *ctx);
|
struct vulkan_ctx_s *ctx);
|
||||||
void Vulkan_Draw_UncachePic (const char *path, struct vulkan_ctx_s *ctx);
|
void Vulkan_Draw_UncachePic (const char *path, struct vulkan_ctx_s *ctx);
|
||||||
struct qpic_s *Vulkan_Draw_MakePic (int width, int height, const byte *data,
|
struct qpic_s *Vulkan_Draw_MakePic (int width, int height, const byte *data,
|
||||||
|
|
|
@ -65,7 +65,7 @@ typedef struct cbuf_s {
|
||||||
} state;
|
} state;
|
||||||
|
|
||||||
int (*unknown_command)(void); // handle unkown commands. !0 = handled
|
int (*unknown_command)(void); // handle unkown commands. !0 = handled
|
||||||
qboolean strict; // Should we tolerate unknown commands?
|
bool strict; // Should we tolerate unknown commands?
|
||||||
double resumetime; // Time when stack can be executed again
|
double resumetime; // Time when stack can be executed again
|
||||||
|
|
||||||
void *data; // Pointer to interpreter data
|
void *data; // Pointer to interpreter data
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "QF/qtypes.h"
|
#include "QF/qtypes.h"
|
||||||
|
|
||||||
int CDAudio_Init(void);
|
int CDAudio_Init(void);
|
||||||
void CDAudio_Play(int track, qboolean looping);
|
void CDAudio_Play(int track, bool looping);
|
||||||
void CDAudio_Stop(void);
|
void CDAudio_Stop(void);
|
||||||
void CDAudio_Pause(void);
|
void CDAudio_Pause(void);
|
||||||
void CDAudio_Resume(void);
|
void CDAudio_Resume(void);
|
||||||
|
|
|
@ -44,7 +44,7 @@ classDecl (ArrayListIterator, Iterator,
|
||||||
ArrayList *list;
|
ArrayList *list;
|
||||||
unsigned int pos;
|
unsigned int pos;
|
||||||
unsigned int smods;
|
unsigned int smods;
|
||||||
qboolean alive;
|
bool alive;
|
||||||
ObjRefs_t allrefs;
|
ObjRefs_t allrefs;
|
||||||
);
|
);
|
||||||
#define ARRAYLISTITERATOR(o) ((ArrayListIterator *)(o))
|
#define ARRAYLISTITERATOR(o) ((ArrayListIterator *)(o))
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
classDecl (Collection, Object,
|
classDecl (Collection, Object,
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
Class *type;
|
Class *type;
|
||||||
qboolean methodDecl (Collection, add, Object *o);
|
bool methodDecl (Collection, add, Object *o);
|
||||||
Object * methodDecl (Collection, remove, Object *o);
|
Object * methodDecl (Collection, remove, Object *o);
|
||||||
qboolean methodDecl (Collection, contains, Object *o);
|
bool methodDecl (Collection, contains, Object *o);
|
||||||
Iterator * methodDecl (Collection, iterator);
|
Iterator * methodDecl (Collection, iterator);
|
||||||
);
|
);
|
||||||
#define COLLECTION(o) ((Collection *)(o))
|
#define COLLECTION(o) ((Collection *)(o))
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
classDecl (Iterator, Object,
|
classDecl (Iterator, Object,
|
||||||
Object * methodDecl (Iterator, next);
|
Object * methodDecl (Iterator, next);
|
||||||
qboolean methodDecl (Iterator, hasNext);
|
bool methodDecl (Iterator, hasNext);
|
||||||
);
|
);
|
||||||
#define ITERATOR(o) ((Iterator *)(o))
|
#define ITERATOR(o) ((Iterator *)(o))
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
|
|
||||||
classDecl (List, Collection,
|
classDecl (List, Collection,
|
||||||
unsigned int smods;
|
unsigned int smods;
|
||||||
qboolean methodDecl (List, set, unsigned int index, Object *o);
|
bool methodDecl (List, set, unsigned int index, Object *o);
|
||||||
Object * methodDecl (List, get, unsigned int index);
|
Object * methodDecl (List, get, unsigned int index);
|
||||||
qboolean methodDecl (List, insertAt, unsigned int index, Object *o);
|
bool methodDecl (List, insertAt, unsigned int index, Object *o);
|
||||||
Object * methodDecl (List, removeAt, unsigned int index);
|
Object * methodDecl (List, removeAt, unsigned int index);
|
||||||
);
|
);
|
||||||
#define LIST(o) ((List *)(o))
|
#define LIST(o) ((List *)(o))
|
||||||
|
|
|
@ -65,7 +65,7 @@ int Cmd_AddDataCommand (const char *cmd_name, xdatacmd_t function,
|
||||||
void *data, const char *description);
|
void *data, const char *description);
|
||||||
int Cmd_RemoveCommand (const char *cmd_name);
|
int Cmd_RemoveCommand (const char *cmd_name);
|
||||||
|
|
||||||
qboolean Cmd_Exists (const char *cmd_name);
|
bool Cmd_Exists (const char *cmd_name);
|
||||||
const char *Cmd_CompleteCommand (const char *partial) __attribute__((pure));
|
const char *Cmd_CompleteCommand (const char *partial) __attribute__((pure));
|
||||||
int Cmd_CompleteCountPossible (const char *partial) __attribute__((pure));
|
int Cmd_CompleteCountPossible (const char *partial) __attribute__((pure));
|
||||||
const char **Cmd_CompleteBuildList (const char *partial);
|
const char **Cmd_CompleteBuildList (const char *partial);
|
||||||
|
|
|
@ -62,7 +62,7 @@ extern struct plugin_s *con_module;
|
||||||
extern struct console_data_s con_data;
|
extern struct console_data_s con_data;
|
||||||
|
|
||||||
//extern int con_totallines;
|
//extern int con_totallines;
|
||||||
//extern qboolean con_initialized;
|
//extern bool con_initialized;
|
||||||
//extern byte *con_chars;
|
//extern byte *con_chars;
|
||||||
|
|
||||||
void Con_DrawConsole (void);
|
void Con_DrawConsole (void);
|
||||||
|
|
|
@ -110,7 +110,7 @@ const char *Cvar_VarString (const cvar_t *var);
|
||||||
// called by Cmd_ExecuteString when Cmd_Argv(0) doesn't match a known
|
// called by Cmd_ExecuteString when Cmd_Argv(0) doesn't match a known
|
||||||
// command. Returns true if the command was a variable reference that
|
// command. Returns true if the command was a variable reference that
|
||||||
// was handled. (print or change)
|
// was handled. (print or change)
|
||||||
qboolean Cvar_Command (void);
|
bool Cvar_Command (void);
|
||||||
|
|
||||||
// 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.
|
||||||
|
|
|
@ -206,7 +206,7 @@ void Draw_BlendScreen (quat_t color);
|
||||||
\return pointer qpic data.
|
\return pointer qpic data.
|
||||||
\note Up to MAX_CACHED_PICS qpics can be loaded at a time this way
|
\note Up to MAX_CACHED_PICS qpics can be loaded at a time this way
|
||||||
*/
|
*/
|
||||||
qpic_t *Draw_CachePic (const char *path, qboolean alpha);
|
qpic_t *Draw_CachePic (const char *path, bool alpha);
|
||||||
|
|
||||||
/** Remove a qpic from the qpic cache.
|
/** Remove a qpic from the qpic cache.
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef struct gib_classdesc_s {
|
||||||
(obj), (mesg)))
|
(obj), (mesg)))
|
||||||
|
|
||||||
void GIB_Class_Create (gib_classdesc_t *desc);
|
void GIB_Class_Create (gib_classdesc_t *desc);
|
||||||
gib_object_t *GIB_Object_Create (const char *classname, qboolean classobj);
|
gib_object_t *GIB_Object_Create (const char *classname, bool classobj);
|
||||||
void GIB_Object_Destroy (gib_object_t *obj);
|
void GIB_Object_Destroy (gib_object_t *obj);
|
||||||
void GIB_Object_Incref (gib_object_t *obj);
|
void GIB_Object_Incref (gib_object_t *obj);
|
||||||
void GIB_Object_Decref (gib_object_t *obj);
|
void GIB_Object_Decref (gib_object_t *obj);
|
||||||
|
@ -142,7 +142,7 @@ typedef struct gib_buffer_data_s {
|
||||||
struct gib_script_s *script;
|
struct gib_script_s *script;
|
||||||
struct gib_tree_s *program, *ip;
|
struct gib_tree_s *program, *ip;
|
||||||
struct dstring_s *arg_composite;
|
struct dstring_s *arg_composite;
|
||||||
qboolean waitret;
|
bool waitret;
|
||||||
struct gib_sstack_s {
|
struct gib_sstack_s {
|
||||||
struct gib_dsarray_s {
|
struct gib_dsarray_s {
|
||||||
struct dstring_s **dstrs;
|
struct dstring_s **dstrs;
|
||||||
|
@ -179,7 +179,7 @@ struct dstring_s *GIB_Return (const char *str);
|
||||||
void GIB_Error (const char *type, const char *fmt, ...) __attribute__((format(PRINTF, 2, 3)));
|
void GIB_Error (const char *type, const char *fmt, ...) __attribute__((format(PRINTF, 2, 3)));
|
||||||
void GIB_Builtin_Add (const char *name, void (*func) (void));
|
void GIB_Builtin_Add (const char *name, void (*func) (void));
|
||||||
void GIB_Builtin_Remove (const char *name);
|
void GIB_Builtin_Remove (const char *name);
|
||||||
qboolean GIB_Builtin_Exists (const char *name);
|
bool GIB_Builtin_Exists (const char *name);
|
||||||
|
|
||||||
// Event interface
|
// Event interface
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ unsigned int GIB_Thread_Count (void) __attribute__((pure));
|
||||||
|
|
||||||
// Init interface
|
// Init interface
|
||||||
|
|
||||||
void GIB_Init (qboolean sandbox);
|
void GIB_Init (bool sandbox);
|
||||||
|
|
||||||
// Handle interface
|
// Handle interface
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ typedef struct info_key_s {
|
||||||
const char *value;
|
const char *value;
|
||||||
} info_key_t;
|
} info_key_t;
|
||||||
|
|
||||||
qboolean Info_FilterForKey (const char *key, const char **filter_list) __attribute__((pure));
|
bool Info_FilterForKey (const char *key, const char **filter_list) __attribute__((pure));
|
||||||
|
|
||||||
void Info_Print (info_t *info);
|
void Info_Print (info_t *info);
|
||||||
int Info_CurrentSize (info_t *info) __attribute__((pure));
|
int Info_CurrentSize (info_t *info) __attribute__((pure));
|
||||||
|
|
|
@ -127,8 +127,8 @@ int IMT_CreateSwitcher (const char *switcher_name,
|
||||||
void IMT_BindAxis (imt_t *imt, int axis_num, in_axis_t *axis,
|
void IMT_BindAxis (imt_t *imt, int axis_num, in_axis_t *axis,
|
||||||
const in_recipe_t *recipe);
|
const in_recipe_t *recipe);
|
||||||
void IMT_BindButton (imt_t *imt, int button, const char *binding);
|
void IMT_BindButton (imt_t *imt, int button, const char *binding);
|
||||||
qboolean IMT_ProcessAxis (int axis, int value);
|
bool IMT_ProcessAxis (int axis, int value);
|
||||||
qboolean IMT_ProcessButton (int button, int state);
|
bool IMT_ProcessButton (int button, int state);
|
||||||
void IMT_Init (void);
|
void IMT_Init (void);
|
||||||
void IMT_Shutdown (void);
|
void IMT_Shutdown (void);
|
||||||
struct plitem_s;
|
struct plitem_s;
|
||||||
|
|
|
@ -72,8 +72,8 @@ struct joy_axis {
|
||||||
struct joy_axis_button *axis_buttons; // if axis button
|
struct joy_axis_button *axis_buttons; // if axis button
|
||||||
};
|
};
|
||||||
|
|
||||||
extern qboolean joy_found; // Joystick present?
|
extern bool joy_found; // Joystick present?
|
||||||
extern qboolean joy_active; // Joystick in use?
|
extern bool joy_active; // Joystick in use?
|
||||||
|
|
||||||
struct joy_button {
|
struct joy_button {
|
||||||
int old;
|
int old;
|
||||||
|
|
|
@ -50,12 +50,12 @@ typedef struct llist_s {
|
||||||
/// \param element The item being deleted.
|
/// \param element The item being deleted.
|
||||||
/// \param userdata Pointer to user data supplied to llist_new().
|
/// \param userdata Pointer to user data supplied to llist_new().
|
||||||
void (*freedata)(void *element, void *userdata);
|
void (*freedata)(void *element, void *userdata);
|
||||||
qboolean (*cmpdata)(const void *element, const void *comparison,
|
bool (*cmpdata)(const void *element, const void *comparison,
|
||||||
void *userdata);
|
void *userdata);
|
||||||
void *userdata;
|
void *userdata;
|
||||||
} llist_t;
|
} llist_t;
|
||||||
|
|
||||||
typedef qboolean (*llist_iterator_t)(void *element, llist_node_t *node);
|
typedef bool (*llist_iterator_t)(void *element, llist_node_t *node);
|
||||||
|
|
||||||
#define LLIST_ICAST(x) (llist_iterator_t)(x)
|
#define LLIST_ICAST(x) (llist_iterator_t)(x)
|
||||||
#define LLIST_DATA(node, type) ((type *)((node)->data))
|
#define LLIST_DATA(node, type) ((type *)((node)->data))
|
||||||
|
@ -73,7 +73,7 @@ typedef qboolean (*llist_iterator_t)(void *element, llist_node_t *node);
|
||||||
passed to the other functions accessing the list.
|
passed to the other functions accessing the list.
|
||||||
*/
|
*/
|
||||||
llist_t *llist_new (void (*freedata)(void *element, void *userdata),
|
llist_t *llist_new (void (*freedata)(void *element, void *userdata),
|
||||||
qboolean (*cmpdata)(const void *element,
|
bool (*cmpdata)(const void *element,
|
||||||
const void *comparison,
|
const void *comparison,
|
||||||
void *userdata),
|
void *userdata),
|
||||||
void *userdata);
|
void *userdata);
|
||||||
|
|
|
@ -173,15 +173,15 @@ void RotatePointAroundVector (vec3_t dst, const vec3_t axis,
|
||||||
VectorNegate ((sp)->normal, (dp)->normal); \
|
VectorNegate ((sp)->normal, (dp)->normal); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
GNU89INLINE inline qboolean R_CullBox (const plane_t *frustum, const vec3_t mins, const vec3_t maxs) __attribute__((pure));
|
GNU89INLINE inline bool R_CullBox (const plane_t *frustum, const vec3_t mins, const vec3_t maxs) __attribute__((pure));
|
||||||
GNU89INLINE inline qboolean R_CullSphere (const plane_t *frustum, const vec3_t origin, const float radius);
|
GNU89INLINE inline bool R_CullSphere (const plane_t *frustum, const vec3_t origin, const float radius);
|
||||||
|
|
||||||
#ifndef IMPLEMENT_R_Cull
|
#ifndef IMPLEMENT_R_Cull
|
||||||
GNU89INLINE inline
|
GNU89INLINE inline
|
||||||
#else
|
#else
|
||||||
VISIBLE
|
VISIBLE
|
||||||
#endif
|
#endif
|
||||||
qboolean
|
bool
|
||||||
R_CullBox (const plane_t *frustum, const vec3_t mins, const vec3_t maxs)
|
R_CullBox (const plane_t *frustum, const vec3_t mins, const vec3_t maxs)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -200,7 +200,7 @@ GNU89INLINE inline
|
||||||
#else
|
#else
|
||||||
VISIBLE
|
VISIBLE
|
||||||
#endif
|
#endif
|
||||||
qboolean
|
bool
|
||||||
R_CullSphere (const plane_t *frustum, const vec3_t origin, const float radius)
|
R_CullSphere (const plane_t *frustum, const vec3_t origin, const float radius)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -161,7 +161,7 @@ typedef struct msurface_s {
|
||||||
|
|
||||||
byte styles[MAXLIGHTMAPS];
|
byte styles[MAXLIGHTMAPS];
|
||||||
int cached_light[MAXLIGHTMAPS]; // values currently used in lightmap
|
int cached_light[MAXLIGHTMAPS]; // values currently used in lightmap
|
||||||
qboolean cached_dlight; // true if dynamic light in cache
|
bool cached_dlight; // true if dynamic light in cache
|
||||||
|
|
||||||
int model_index; ///< < 0: instance, 0 main, > 0: sub
|
int model_index; ///< < 0: instance, 0 main, > 0: sub
|
||||||
} msurface_t;
|
} msurface_t;
|
||||||
|
@ -387,9 +387,9 @@ typedef struct model_s {
|
||||||
char path[MAX_QPATH];
|
char path[MAX_QPATH];
|
||||||
char name[MAX_QPATH];
|
char name[MAX_QPATH];
|
||||||
const struct vpath_s *vpath;// virtual path where this model was found
|
const struct vpath_s *vpath;// virtual path where this model was found
|
||||||
qboolean needload; // bmodels and sprites don't cache normally
|
bool needload; // bmodels and sprites don't cache normally
|
||||||
aliashdr_t *aliashdr; // if not null, alias model is not cached
|
aliashdr_t *aliashdr; // if not null, alias model is not cached
|
||||||
qboolean hasfullbrights;
|
bool hasfullbrights;
|
||||||
|
|
||||||
modtype_t type;
|
modtype_t type;
|
||||||
int numframes;
|
int numframes;
|
||||||
|
@ -408,7 +408,7 @@ typedef struct model_s {
|
||||||
vec3_t mins, maxs;
|
vec3_t mins, maxs;
|
||||||
|
|
||||||
// solid volume for clipping
|
// solid volume for clipping
|
||||||
qboolean clipbox;
|
bool clipbox;
|
||||||
vec3_t clipmins, clipmaxs;
|
vec3_t clipmins, clipmaxs;
|
||||||
|
|
||||||
// brush model
|
// brush model
|
||||||
|
@ -428,7 +428,7 @@ typedef struct model_s {
|
||||||
void Mod_Init (void);
|
void Mod_Init (void);
|
||||||
void Mod_Init_Cvars (void);
|
void Mod_Init_Cvars (void);
|
||||||
void Mod_ClearAll (void);
|
void Mod_ClearAll (void);
|
||||||
model_t *Mod_ForName (const char *name, qboolean crash);
|
model_t *Mod_ForName (const char *name, bool crash);
|
||||||
void Mod_TouchModel (const char *name);
|
void Mod_TouchModel (const char *name);
|
||||||
void Mod_UnloadModel (model_t *model);
|
void Mod_UnloadModel (model_t *model);
|
||||||
// brush specific
|
// brush specific
|
||||||
|
|
|
@ -59,7 +59,7 @@ void MSG_PokeLongBE (sizebuf_t *sb, unsigned offset, int c);
|
||||||
|
|
||||||
typedef struct msg_s {
|
typedef struct msg_s {
|
||||||
unsigned readcount;
|
unsigned readcount;
|
||||||
qboolean badread; // set if a read goes beyond end of message
|
bool badread; // set if a read goes beyond end of message
|
||||||
sizebuf_t *message;
|
sizebuf_t *message;
|
||||||
size_t badread_string_size;
|
size_t badread_string_size;
|
||||||
char *badread_string;
|
char *badread_string;
|
||||||
|
|
|
@ -81,7 +81,7 @@ typedef struct Object_s {
|
||||||
struct Object_s *next;
|
struct Object_s *next;
|
||||||
struct String_s * methodDecl(Object, toString);
|
struct String_s * methodDecl(Object, toString);
|
||||||
ObjRefs_t * methodDecl(Object, allRefs);
|
ObjRefs_t * methodDecl(Object, allRefs);
|
||||||
qboolean methodDecl(Object, finalize);
|
bool methodDecl(Object, finalize);
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
} Object;
|
} Object;
|
||||||
|
@ -103,11 +103,11 @@ classDecl (Class, Object,
|
||||||
);
|
);
|
||||||
#define CLASS(o) ((Class *)(o))
|
#define CLASS(o) ((Class *)(o))
|
||||||
|
|
||||||
Object *Object_Create (Class *cl, qboolean perm);
|
Object *Object_Create (Class *cl, bool perm);
|
||||||
void Object_Delete (Object *obj);
|
void Object_Delete (Object *obj);
|
||||||
Object *Object_Retain (Object *obj);
|
Object *Object_Retain (Object *obj);
|
||||||
Object *Object_Release (Object *obj);
|
Object *Object_Release (Object *obj);
|
||||||
qboolean Object_InstanceOf (Object *obj, Class *cl);
|
bool Object_InstanceOf (Object *obj, Class *cl);
|
||||||
void Object_AddToRoot (Object *obj);
|
void Object_AddToRoot (Object *obj);
|
||||||
void Object_RemoveFromRoot (Object *obj);
|
void Object_RemoveFromRoot (Object *obj);
|
||||||
void Object_Init (void);
|
void Object_Init (void);
|
||||||
|
|
|
@ -63,7 +63,7 @@ typedef struct
|
||||||
\warning Uses Hunk_TempAlloc() to allocate the output PCX content.
|
\warning Uses Hunk_TempAlloc() to allocate the output PCX content.
|
||||||
*/
|
*/
|
||||||
pcx_t *EncodePCX (const byte *data, int width, int height, int rowbytes,
|
pcx_t *EncodePCX (const byte *data, int width, int height, int rowbytes,
|
||||||
const byte *palette, qboolean flip, int *length);
|
const byte *palette, bool flip, int *length);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Load a texture from a PCX file.
|
Load a texture from a PCX file.
|
||||||
|
@ -76,6 +76,6 @@ pcx_t *EncodePCX (const byte *data, int width, int height, int rowbytes,
|
||||||
\return A pointer to the texture.
|
\return A pointer to the texture.
|
||||||
\warning Uses Hunk_TempAlloc() to allocate the texture.
|
\warning Uses Hunk_TempAlloc() to allocate the texture.
|
||||||
*/
|
*/
|
||||||
struct tex_s *LoadPCX (QFile *f, qboolean convert, const byte *pal, int load);
|
struct tex_s *LoadPCX (QFile *f, bool convert, const byte *pal, int load);
|
||||||
|
|
||||||
#endif//__QF_pcx_h
|
#endif//__QF_pcx_h
|
||||||
|
|
|
@ -292,7 +292,7 @@ int PL_D_NumKeys (const plitem_t *dict) __attribute__((pure));
|
||||||
|
|
||||||
\note the dictionary becomes the owner of the value.
|
\note the dictionary becomes the owner of the value.
|
||||||
*/
|
*/
|
||||||
qboolean PL_D_AddObject (plitem_t *dict, const char *key, plitem_t *value);
|
bool PL_D_AddObject (plitem_t *dict, const char *key, plitem_t *value);
|
||||||
|
|
||||||
/** Copy contents of one dictionary into another.
|
/** Copy contents of one dictionary into another.
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ qboolean PL_D_AddObject (plitem_t *dict, const char *key, plitem_t *value);
|
||||||
\return true if values were copied, false if nothing was copied (either
|
\return true if values were copied, false if nothing was copied (either
|
||||||
dictionary is null, or not a dictionary, or if \a srcDict was empty)
|
dictionary is null, or not a dictionary, or if \a srcDict was empty)
|
||||||
*/
|
*/
|
||||||
qboolean PL_D_Extend (plitem_t *dstDict, plitem_t *srcDict);
|
bool PL_D_Extend (plitem_t *dstDict, plitem_t *srcDict);
|
||||||
|
|
||||||
/** Add an item to an array.
|
/** Add an item to an array.
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ qboolean PL_D_Extend (plitem_t *dstDict, plitem_t *srcDict);
|
||||||
|
|
||||||
\note the array becomes the owner of the added item.
|
\note the array becomes the owner of the added item.
|
||||||
*/
|
*/
|
||||||
qboolean PL_A_AddObject (plitem_t *array, plitem_t *item);
|
bool PL_A_AddObject (plitem_t *array, plitem_t *item);
|
||||||
|
|
||||||
/** Append contents of one array to another.
|
/** Append contents of one array to another.
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ qboolean PL_A_AddObject (plitem_t *array, plitem_t *item);
|
||||||
\return true if values were copied, false if nothing was copied (either
|
\return true if values were copied, false if nothing was copied (either
|
||||||
array is null, or not an array, or if \a srcArray was empty)
|
array is null, or not an array, or if \a srcArray was empty)
|
||||||
*/
|
*/
|
||||||
qboolean PL_A_Extend (plitem_t *dstArray, plitem_t *srcArray);
|
bool PL_A_Extend (plitem_t *dstArray, plitem_t *srcArray);
|
||||||
|
|
||||||
/** Retrieve the number of items in an array.
|
/** Retrieve the number of items in an array.
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ int PL_A_NumObjects (const plitem_t *array) __attribute__((pure));
|
||||||
|
|
||||||
\note the array becomes the owner of the added item.
|
\note the array becomes the owner of the added item.
|
||||||
*/
|
*/
|
||||||
qboolean PL_A_InsertObjectAtIndex (plitem_t *array, plitem_t *item, int index);
|
bool PL_A_InsertObjectAtIndex (plitem_t *array, plitem_t *item, int index);
|
||||||
|
|
||||||
/** Remove a value from an array object.
|
/** Remove a value from an array object.
|
||||||
The array items will be shifted to fill the resulting hole.
|
The array items will be shifted to fill the resulting hole.
|
||||||
|
|
|
@ -104,7 +104,7 @@ extern char *fs_pluginpath;
|
||||||
Function prototypes
|
Function prototypes
|
||||||
*/
|
*/
|
||||||
plugin_t *PI_LoadPlugin (const char *, const char *);
|
plugin_t *PI_LoadPlugin (const char *, const char *);
|
||||||
qboolean PI_UnloadPlugin (plugin_t *);
|
bool PI_UnloadPlugin (plugin_t *);
|
||||||
void PI_RegisterPlugins (plugin_list_t *);
|
void PI_RegisterPlugins (plugin_list_t *);
|
||||||
void PI_Init (void);
|
void PI_Init (void);
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ typedef struct cd_funcs_s {
|
||||||
void (*init) (void);
|
void (*init) (void);
|
||||||
void (*cd_f) (void); //
|
void (*cd_f) (void); //
|
||||||
void (*pause) (void);
|
void (*pause) (void);
|
||||||
void (*play) (int, qboolean);
|
void (*play) (int, bool);
|
||||||
void (*resume) (void);
|
void (*resume) (void);
|
||||||
void (*update) (void);
|
void (*update) (void);
|
||||||
} cd_funcs_t;
|
} cd_funcs_t;
|
||||||
|
|
|
@ -104,7 +104,7 @@ typedef struct vid_render_funcs_s {
|
||||||
void (*Draw_TextBox) (int x, int y, int width, int lines, byte alpha);
|
void (*Draw_TextBox) (int x, int y, int width, int lines, byte alpha);
|
||||||
void (*Draw_FadeScreen) (void);
|
void (*Draw_FadeScreen) (void);
|
||||||
void (*Draw_BlendScreen) (quat_t color);
|
void (*Draw_BlendScreen) (quat_t color);
|
||||||
qpic_t *(*Draw_CachePic) (const char *path, qboolean alpha);
|
qpic_t *(*Draw_CachePic) (const char *path, bool alpha);
|
||||||
void (*Draw_UncachePic) (const char *path);
|
void (*Draw_UncachePic) (const char *path);
|
||||||
qpic_t *(*Draw_MakePic) (int width, int height, const byte *data);
|
qpic_t *(*Draw_MakePic) (int width, int height, const byte *data);
|
||||||
void (*Draw_DestroyPic) (qpic_t *pic);
|
void (*Draw_DestroyPic) (qpic_t *pic);
|
||||||
|
@ -155,9 +155,9 @@ typedef struct vid_render_data_s {
|
||||||
int *scr_viewsize;
|
int *scr_viewsize;
|
||||||
int *graphheight;
|
int *graphheight;
|
||||||
float min_wateralpha;
|
float min_wateralpha;
|
||||||
qboolean force_fullscreen;
|
bool force_fullscreen;
|
||||||
qboolean inhibit_viewmodel;
|
bool inhibit_viewmodel;
|
||||||
qboolean paused;
|
bool paused;
|
||||||
int lineadj;
|
int lineadj;
|
||||||
entity_t view_model; //FIXME still?!?
|
entity_t view_model; //FIXME still?!?
|
||||||
double frametime;
|
double frametime;
|
||||||
|
|
|
@ -321,7 +321,7 @@ void PR_BoundsCheck (progs_t *pr, int addr, etype_t type);
|
||||||
///@{
|
///@{
|
||||||
|
|
||||||
struct edict_s {
|
struct edict_s {
|
||||||
qboolean free;
|
bool free;
|
||||||
progs_t *pr; ///< progs owning this edict
|
progs_t *pr; ///< progs owning this edict
|
||||||
pr_uint_t entnum; ///< number of this entity
|
pr_uint_t entnum; ///< number of this entity
|
||||||
pr_uint_t edict; ///< offset of this entity in pr_edict_area
|
pr_uint_t edict; ///< offset of this entity in pr_edict_area
|
||||||
|
@ -336,7 +336,7 @@ void ED_Free (progs_t *pr, edict_t *ed);
|
||||||
edict_t *ED_EdictNum(progs_t *pr, pr_uint_t n) __attribute__((pure));
|
edict_t *ED_EdictNum(progs_t *pr, pr_uint_t n) __attribute__((pure));
|
||||||
pr_uint_t ED_NumForEdict(progs_t *pr, edict_t *e) __attribute__((pure));
|
pr_uint_t ED_NumForEdict(progs_t *pr, edict_t *e) __attribute__((pure));
|
||||||
void ED_Count (progs_t *pr);
|
void ED_Count (progs_t *pr);
|
||||||
qboolean PR_EdictValid (progs_t *pr, pr_uint_t e) __attribute__((pure));
|
bool PR_EdictValid (progs_t *pr, pr_uint_t e) __attribute__((pure));
|
||||||
|
|
||||||
// pr_debug.c
|
// pr_debug.c
|
||||||
void ED_Print (progs_t *pr, edict_t *ed, const char *fieldname);
|
void ED_Print (progs_t *pr, edict_t *ed, const char *fieldname);
|
||||||
|
@ -347,7 +347,7 @@ void ED_PrintNum (progs_t *pr, pr_int_t ent, const char *fieldname);
|
||||||
struct script_s;
|
struct script_s;
|
||||||
struct plitem_s;
|
struct plitem_s;
|
||||||
struct hashctx_s;
|
struct hashctx_s;
|
||||||
qboolean ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key,
|
bool ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key,
|
||||||
const char *s);
|
const char *s);
|
||||||
struct plitem_s *ED_EntityDict (progs_t *pr, edict_t *ed);
|
struct plitem_s *ED_EntityDict (progs_t *pr, edict_t *ed);
|
||||||
struct plitem_s *ED_GlobalsDict (progs_t *pr);
|
struct plitem_s *ED_GlobalsDict (progs_t *pr);
|
||||||
|
@ -1493,14 +1493,14 @@ int PR_LoadStrings (progs_t *pr);
|
||||||
\param num string index to be validated
|
\param num string index to be validated
|
||||||
\return true if the index is valid, false otherwise
|
\return true if the index is valid, false otherwise
|
||||||
*/
|
*/
|
||||||
qboolean PR_StringValid (progs_t *pr, pr_string_t num) __attribute__((pure));
|
bool PR_StringValid (progs_t *pr, pr_string_t num) __attribute__((pure));
|
||||||
|
|
||||||
/** Check if a string is valid and mutable.
|
/** Check if a string is valid and mutable.
|
||||||
\param pr pointer to ::progs_t VM struct
|
\param pr pointer to ::progs_t VM struct
|
||||||
\param num string index to be checked
|
\param num string index to be checked
|
||||||
\return true if the string is valid and mutable, false otherwise
|
\return true if the string is valid and mutable, false otherwise
|
||||||
*/
|
*/
|
||||||
qboolean PR_StringMutable (progs_t *pr, pr_string_t num) __attribute__((pure));
|
bool PR_StringMutable (progs_t *pr, pr_string_t num) __attribute__((pure));
|
||||||
|
|
||||||
/** Convert a string index to a C string.
|
/** Convert a string index to a C string.
|
||||||
\param pr pointer to ::progs_t VM struct
|
\param pr pointer to ::progs_t VM struct
|
||||||
|
@ -2170,7 +2170,7 @@ struct progs_s {
|
||||||
///@{
|
///@{
|
||||||
int pr_argc; //FIXME need a good way to ensure it is correct
|
int pr_argc; //FIXME need a good way to ensure it is correct
|
||||||
|
|
||||||
qboolean pr_trace;
|
bool pr_trace;
|
||||||
int pr_trace_depth;
|
int pr_trace_depth;
|
||||||
bfunction_t *pr_xfunction;
|
bfunction_t *pr_xfunction;
|
||||||
int pr_xstatement;
|
int pr_xstatement;
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
#define LittleFloat FloatSwap
|
#define LittleFloat FloatSwap
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern qboolean bigendien;
|
extern bool bigendien;
|
||||||
|
|
||||||
uint16_t _ShortSwap (uint16_t l) __attribute__((const));
|
uint16_t _ShortSwap (uint16_t l) __attribute__((const));
|
||||||
uint16_t _ShortNoSwap (uint16_t l) __attribute__((const));
|
uint16_t _ShortNoSwap (uint16_t l) __attribute__((const));
|
||||||
|
|
|
@ -52,20 +52,18 @@
|
||||||
typedef uint8_t byte;
|
typedef uint8_t byte;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __STDC_VERSION__ < 202000
|
||||||
#ifndef _DEF_BOOL_
|
#ifndef _DEF_BOOL_
|
||||||
# define _DEF_BOOL_
|
# define _DEF_BOOL_
|
||||||
// KJB Undefined true and false defined in SciTech's DEBUG.H header
|
// KJB Undefined true and false defined in SciTech's DEBUG.H header
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
# define __bool_true_false_are_defined
|
# define __bool_true_false_are_defined
|
||||||
# endif
|
# endif
|
||||||
# ifdef __bool_true_false_are_defined
|
# ifndef __bool_true_false_are_defined
|
||||||
typedef enum {q_false = false, q_true = true} qboolean;
|
|
||||||
//#define true q_true;
|
|
||||||
//#define false q_false;
|
|
||||||
# else
|
|
||||||
# undef true
|
# undef true
|
||||||
# undef false
|
# undef false
|
||||||
typedef enum {false, true} qboolean;
|
typedef enum {false, true} bool;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -71,11 +71,11 @@ typedef struct vpath_s vpath_t;
|
||||||
|
|
||||||
typedef struct findfile_s {
|
typedef struct findfile_s {
|
||||||
const vpath_t *vpath; ///< vpath in which file was found
|
const vpath_t *vpath; ///< vpath in which file was found
|
||||||
qboolean in_pak; ///< if true, path refers to a pak file rather
|
|
||||||
///< than a directory
|
|
||||||
const char *realname; ///< the name of the file as found (may have
|
const char *realname; ///< the name of the file as found (may have
|
||||||
///< .gz appended, or .ogg substituded for
|
///< .gz appended, or .ogg substituded for
|
||||||
///< .wav) does not include the path
|
///< .wav) does not include the path
|
||||||
|
bool in_pak; ///< if true, path refers to a pak file rather
|
||||||
|
///< than a directory
|
||||||
} findfile_t;
|
} findfile_t;
|
||||||
|
|
||||||
/** Cached information about the current game directory. \see \ref dirconf.
|
/** Cached information about the current game directory. \see \ref dirconf.
|
||||||
|
|
|
@ -44,7 +44,7 @@ void SCR_UpdateScreen_legacy (struct transform_s camera, double realtime,
|
||||||
SCR_Func *scr_funcs);
|
SCR_Func *scr_funcs);
|
||||||
void SCR_SetFOV (float fov);
|
void SCR_SetFOV (float fov);
|
||||||
// control whether the 3d viewport is user-controlled or always fullscreen
|
// control whether the 3d viewport is user-controlled or always fullscreen
|
||||||
void SCR_SetFullscreen (qboolean fullscreen);
|
void SCR_SetFullscreen (bool fullscreen);
|
||||||
void SCR_SetBottomMargin (int lines);
|
void SCR_SetBottomMargin (int lines);
|
||||||
|
|
||||||
void SCR_NewScene (struct scene_s *scene);
|
void SCR_NewScene (struct scene_s *scene);
|
||||||
|
@ -52,7 +52,7 @@ void SCR_NewScene (struct scene_s *scene);
|
||||||
extern int r_timegraph;
|
extern int r_timegraph;
|
||||||
extern int r_zgraph;
|
extern int r_zgraph;
|
||||||
extern int scr_copytop;
|
extern int scr_copytop;
|
||||||
extern qboolean scr_skipupdate;
|
extern bool scr_skipupdate;
|
||||||
|
|
||||||
struct view_pos_s;
|
struct view_pos_s;
|
||||||
void R_TimeGraph (struct view_pos_s abs, struct view_pos_s len);
|
void R_TimeGraph (struct view_pos_s abs, struct view_pos_s len);
|
||||||
|
|
|
@ -33,7 +33,7 @@ typedef struct script_s {
|
||||||
/// The current (or next when unget is true) token
|
/// The current (or next when unget is true) token
|
||||||
struct dstring_s *token;
|
struct dstring_s *token;
|
||||||
/// True if the last token has been pushed back.
|
/// True if the last token has been pushed back.
|
||||||
qboolean unget;
|
bool unget;
|
||||||
/// current position within the script
|
/// current position within the script
|
||||||
const char *p;
|
const char *p;
|
||||||
/// name of the file being processed. used only for error reporting
|
/// name of the file being processed. used only for error reporting
|
||||||
|
@ -79,7 +79,7 @@ void Script_Start (script_t *script, const char *file, const char *data);
|
||||||
\return True if a token is available, false if end of file
|
\return True if a token is available, false if end of file
|
||||||
or end of line (if crossline is false) has been hit
|
or end of line (if crossline is false) has been hit
|
||||||
*/
|
*/
|
||||||
qboolean Script_TokenAvailable (script_t *script, qboolean crossline);
|
bool Script_TokenAvailable (script_t *script, bool crossline);
|
||||||
|
|
||||||
/** Get the next token. Generates an error and exits the program if no token
|
/** Get the next token. Generates an error and exits the program if no token
|
||||||
is available and crossline is false.
|
is available and crossline is false.
|
||||||
|
@ -87,7 +87,7 @@ qboolean Script_TokenAvailable (script_t *script, qboolean crossline);
|
||||||
\param crossline True to allow passing \n
|
\param crossline True to allow passing \n
|
||||||
\return True on success, false on failure (no token available)
|
\return True on success, false on failure (no token available)
|
||||||
*/
|
*/
|
||||||
qboolean Script_GetToken (script_t *script, qboolean crossline);
|
bool Script_GetToken (script_t *script, bool crossline);
|
||||||
|
|
||||||
/** Unget the current token. Only one level of unget is supported.
|
/** Unget the current token. Only one level of unget is supported.
|
||||||
\param script The script_t object being parsed
|
\param script The script_t object being parsed
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
|
|
||||||
typedef struct sizebuf_s
|
typedef struct sizebuf_s
|
||||||
{
|
{
|
||||||
qboolean allowoverflow; // if false, do a Sys_Error
|
bool allowoverflow; // if false, do a Sys_Error
|
||||||
qboolean overflowed; // set to true if the buffer size failed
|
bool overflowed; // set to true if the buffer size failed
|
||||||
byte *data;
|
byte *data;
|
||||||
unsigned maxsize;
|
unsigned maxsize;
|
||||||
unsigned cursize;
|
unsigned cursize;
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
typedef struct skin_s {
|
typedef struct skin_s {
|
||||||
const char *name;
|
const char *name;
|
||||||
qboolean valid; // the skin was found
|
bool valid; // the skin was found
|
||||||
struct tex_s *texels;
|
struct tex_s *texels;
|
||||||
byte *colormap;
|
byte *colormap;
|
||||||
int texnum;
|
int texnum;
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
#define VID_GRADES (1 << VID_CBITS)
|
#define VID_GRADES (1 << VID_CBITS)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
qboolean initialized;
|
bool initialized;
|
||||||
qboolean is8bit;
|
bool is8bit;
|
||||||
byte *gammatable; // 256
|
byte *gammatable; // 256
|
||||||
const byte *basepal; // 256 * 3
|
const byte *basepal; // 256 * 3
|
||||||
byte *palette; // 256 * 3
|
byte *palette; // 256 * 3
|
||||||
|
@ -48,7 +48,7 @@ typedef struct {
|
||||||
unsigned width;
|
unsigned width;
|
||||||
unsigned height;
|
unsigned height;
|
||||||
int numpages;
|
int numpages;
|
||||||
qboolean recalc_refdef; // if true, recalc vid-based stuff
|
bool recalc_refdef; // if true, recalc vid-based stuff
|
||||||
struct vid_internal_s *vid_internal;
|
struct vid_internal_s *vid_internal;
|
||||||
|
|
||||||
struct viddef_listener_set_s *onPaletteChanged;
|
struct viddef_listener_set_s *onPaletteChanged;
|
||||||
|
@ -63,7 +63,7 @@ typedef void (*viddef_listener_t) (void *data, const viddef_t *viddef);
|
||||||
|
|
||||||
extern unsigned int d_8to24table[256]; //FIXME nq/qw uses
|
extern unsigned int d_8to24table[256]; //FIXME nq/qw uses
|
||||||
|
|
||||||
extern qboolean vid_gamma_avail;
|
extern bool vid_gamma_avail;
|
||||||
|
|
||||||
void VID_Init_Cvars (void);
|
void VID_Init_Cvars (void);
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ winding_t *WindingVectors (const winding_t *w, int unit);
|
||||||
on the font side of the plane, or NULL if the winding has
|
on the font side of the plane, or NULL if the winding has
|
||||||
been clipped away.
|
been clipped away.
|
||||||
*/
|
*/
|
||||||
winding_t *ClipWinding (winding_t *in, struct plane_s *split, qboolean keepon);
|
winding_t *ClipWinding (winding_t *in, struct plane_s *split, bool keepon);
|
||||||
|
|
||||||
/** Divide a winding by a plane, producing one or two windings.
|
/** Divide a winding by a plane, producing one or two windings.
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ void Z_SetTag (memzone_t *zone, void *ptr, int tag);
|
||||||
|
|
||||||
|
|
||||||
memhunk_t *Hunk_Init (void *buf, size_t size);
|
memhunk_t *Hunk_Init (void *buf, size_t size);
|
||||||
void Hunk_Print (memhunk_t *hunk, qboolean all);
|
void Hunk_Print (memhunk_t *hunk, bool all);
|
||||||
void Hunk_Check (memhunk_t *hunk);
|
void Hunk_Check (memhunk_t *hunk);
|
||||||
void *Hunk_RawAlloc (memhunk_t *hunk, size_t size) __attribute__((nonnull(1)));
|
void *Hunk_RawAlloc (memhunk_t *hunk, size_t size) __attribute__((nonnull(1)));
|
||||||
void *Hunk_RawAllocName (memhunk_t *hunk, size_t size, const char *name) __attribute__((nonnull(1)));
|
void *Hunk_RawAllocName (memhunk_t *hunk, size_t size, const char *name) __attribute__((nonnull(1)));
|
||||||
|
|
|
@ -45,7 +45,7 @@ void locs_load(const char *filename);
|
||||||
void locs_mark (vec4f_t loc, const char *desc);
|
void locs_mark (vec4f_t loc, const char *desc);
|
||||||
int locs_nearest (vec4f_t loc) __attribute__((pure));
|
int locs_nearest (vec4f_t loc) __attribute__((pure));
|
||||||
void locs_reset (void);
|
void locs_reset (void);
|
||||||
void locs_save (const char *filename, qboolean gz);
|
void locs_save (const char *filename, bool gz);
|
||||||
void map_to_loc (const char *mapname, char *filename);
|
void map_to_loc (const char *mapname, char *filename);
|
||||||
void locs_draw (double time, vec4f_t simorg);
|
void locs_draw (double time, vec4f_t simorg);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#ifndef __client_sbar_h
|
#ifndef __client_sbar_h
|
||||||
#define __client_sbar_h
|
#define __client_sbar_h
|
||||||
|
|
||||||
extern qboolean sbar_showscores;
|
extern bool sbar_showscores;
|
||||||
|
|
||||||
struct player_info_s;
|
struct player_info_s;
|
||||||
void Sbar_Init (int *stats, float *item_gettime);
|
void Sbar_Init (int *stats, float *item_gettime);
|
||||||
|
|
|
@ -114,7 +114,7 @@ void CL_ParseTEnt_qw (struct msg_s *net_message, double time,
|
||||||
TEntContext_t *ctx);
|
TEntContext_t *ctx);
|
||||||
void CL_ParseParticleEffect (struct msg_s *net_message);
|
void CL_ParseParticleEffect (struct msg_s *net_message);
|
||||||
void CL_ClearProjectiles (void);
|
void CL_ClearProjectiles (void);
|
||||||
void CL_ParseProjectiles (struct msg_s *net_message, qboolean nail2,
|
void CL_ParseProjectiles (struct msg_s *net_message, bool nail2,
|
||||||
TEntContext_t *ctx);
|
TEntContext_t *ctx);
|
||||||
|
|
||||||
#endif//__client_temp_entities_h
|
#endif//__client_temp_entities_h
|
||||||
|
|
|
@ -86,7 +86,7 @@ typedef struct viewstate_s {
|
||||||
// pitch drifting vars
|
// pitch drifting vars
|
||||||
float idealpitch;
|
float idealpitch;
|
||||||
float pitchvel;
|
float pitchvel;
|
||||||
qboolean nodrift;
|
bool nodrift;
|
||||||
float driftmove;
|
float driftmove;
|
||||||
double laststop;
|
double laststop;
|
||||||
|
|
||||||
|
@ -112,6 +112,6 @@ void V_SetContentsColor (viewstate_t *vs, int contents);
|
||||||
void V_ParseDamage (struct msg_s *net_message, viewstate_t *vs);
|
void V_ParseDamage (struct msg_s *net_message, viewstate_t *vs);
|
||||||
void V_PrepBlend (viewstate_t *vs);
|
void V_PrepBlend (viewstate_t *vs);
|
||||||
|
|
||||||
extern qboolean noclip_anglehack;
|
extern bool noclip_anglehack;
|
||||||
|
|
||||||
#endif // __client_view_h
|
#endif // __client_view_h
|
||||||
|
|
|
@ -55,7 +55,7 @@ void Win_CreateWindow (int width, int height);
|
||||||
void Win_Init_Cvars (void);
|
void Win_Init_Cvars (void);
|
||||||
void Win_UpdateWindowStatus (int x, int y);
|
void Win_UpdateWindowStatus (int x, int y);
|
||||||
void Win_SetCaption (const char *text);
|
void Win_SetCaption (const char *text);
|
||||||
qboolean Win_SetGamma (double gamma);
|
bool Win_SetGamma (double gamma);
|
||||||
|
|
||||||
struct vid_internal_s;
|
struct vid_internal_s;
|
||||||
struct gl_ctx_s *Win_GL_Context (struct vid_internal_s *);
|
struct gl_ctx_s *Win_GL_Context (struct vid_internal_s *);
|
||||||
|
|
|
@ -57,12 +57,12 @@ extern int x_height;
|
||||||
extern int x_shmeventtype;
|
extern int x_shmeventtype;
|
||||||
extern Time x_time;
|
extern Time x_time;
|
||||||
extern Time x_mouse_time;
|
extern Time x_mouse_time;
|
||||||
extern qboolean oktodraw;
|
extern bool oktodraw;
|
||||||
extern qboolean x_have_focus;
|
extern bool x_have_focus;
|
||||||
|
|
||||||
qboolean X11_AddEvent (int event, void (*event_handler)(XEvent *));
|
bool X11_AddEvent (int event, void (*event_handler)(XEvent *));
|
||||||
qboolean X11_RemoveEvent (int event, void (*event_handler)(XEvent *));
|
bool X11_RemoveEvent (int event, void (*event_handler)(XEvent *));
|
||||||
qboolean X11_SetGamma (double);
|
bool X11_SetGamma (double);
|
||||||
void X11_CloseDisplay (void);
|
void X11_CloseDisplay (void);
|
||||||
void X11_CreateNullCursor (void);
|
void X11_CreateNullCursor (void);
|
||||||
void X11_CreateWindow (int, int);
|
void X11_CreateWindow (int, int);
|
||||||
|
|
|
@ -115,21 +115,21 @@ typedef struct
|
||||||
extern int r_drawflat;
|
extern int r_drawflat;
|
||||||
extern int r_framecount; // sequence # of current frame since Quake
|
extern int r_framecount; // sequence # of current frame since Quake
|
||||||
// started
|
// started
|
||||||
extern qboolean r_drawpolys; // 1 if driver wants clipped polygons
|
extern bool r_drawpolys; // 1 if driver wants clipped polygons
|
||||||
// rather than a span list
|
// rather than a span list
|
||||||
extern qboolean r_drawculledpolys; // 1 if driver wants clipped polygons that
|
extern bool r_drawculledpolys; // 1 if driver wants clipped polygons that
|
||||||
// have been culled by the edge list
|
// have been culled by the edge list
|
||||||
extern qboolean r_worldpolysbacktofront; // 1 if driver wants polygons
|
extern bool r_worldpolysbacktofront; // 1 if driver wants polygons
|
||||||
// delivered back to front rather
|
// delivered back to front rather
|
||||||
// than front to back
|
// than front to back
|
||||||
extern qboolean r_recursiveaffinetriangles; // true if a driver wants to use
|
extern bool r_recursiveaffinetriangles; // true if a driver wants to use
|
||||||
// recursive triangular subdivison
|
// recursive triangular subdivison
|
||||||
// and vertex drawing via
|
// and vertex drawing via
|
||||||
// D_PolysetDrawFinalVerts() past
|
// D_PolysetDrawFinalVerts() past
|
||||||
// a certain distance (normally
|
// a certain distance (normally
|
||||||
// used only by the software
|
// used only by the software
|
||||||
// driver)
|
// driver)
|
||||||
extern qboolean r_dowarp;
|
extern bool r_dowarp;
|
||||||
|
|
||||||
extern affinetridesc_t r_affinetridesc;
|
extern affinetridesc_t r_affinetridesc;
|
||||||
extern spritedesc_t r_spritedesc;
|
extern spritedesc_t r_spritedesc;
|
||||||
|
|
|
@ -65,7 +65,7 @@ typedef struct sspan_s {
|
||||||
|
|
||||||
extern float scale_for_mip;
|
extern float scale_for_mip;
|
||||||
|
|
||||||
extern qboolean d_roverwrapped;
|
extern bool d_roverwrapped;
|
||||||
extern surfcache_t *sc_rover;
|
extern surfcache_t *sc_rover;
|
||||||
extern surfcache_t *d_initial_rover;
|
extern surfcache_t *d_initial_rover;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
Check for the presence of the XFree86-DGA support in the X server
|
Check for the presence of the XFree86-DGA support in the X server
|
||||||
*/
|
*/
|
||||||
qboolean VID_CheckDGA (Display *, int *, int *, int *)
|
bool VID_CheckDGA (Display *, int *, int *, int *)
|
||||||
#ifndef HAVE_DGA // FIXME
|
#ifndef HAVE_DGA // FIXME
|
||||||
__attribute__((const))
|
__attribute__((const))
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,7 +50,7 @@ qboolean VID_CheckDGA (Display *, int *, int *, int *)
|
||||||
|
|
||||||
Check for the presence of the XFree86-VMode X server extension
|
Check for the presence of the XFree86-VMode X server extension
|
||||||
*/
|
*/
|
||||||
qboolean VID_CheckVMode (Display *, int *, int *)
|
bool VID_CheckVMode (Display *, int *, int *)
|
||||||
#ifndef HAVE_DGA // FIXME
|
#ifndef HAVE_DGA // FIXME
|
||||||
__attribute__((const))
|
__attribute__((const))
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,4 +36,4 @@ typedef struct gib_builtin_s {
|
||||||
} gib_builtin_t;
|
} gib_builtin_t;
|
||||||
|
|
||||||
gib_builtin_t *GIB_Builtin_Find (const char *name);
|
gib_builtin_t *GIB_Builtin_Find (const char *name);
|
||||||
void GIB_Builtin_Init (qboolean sandbox);
|
void GIB_Builtin_Init (bool sandbox);
|
||||||
|
|
|
@ -44,7 +44,7 @@ typedef struct gib_function_s {
|
||||||
struct hashtab_s *globals;
|
struct hashtab_s *globals;
|
||||||
struct llist_s *arglist;
|
struct llist_s *arglist;
|
||||||
unsigned int minargs;
|
unsigned int minargs;
|
||||||
qboolean exported;
|
bool exported;
|
||||||
} gib_function_t;
|
} gib_function_t;
|
||||||
|
|
||||||
gib_function_t *GIB_Function_Define (const char *name, const char *text, gib_tree_t *program, gib_script_t *script, hashtab_t *globals);
|
gib_function_t *GIB_Function_Define (const char *name, const char *text, gib_tree_t *program, gib_script_t *script, hashtab_t *globals);
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "gib_tree.h"
|
#include "gib_tree.h"
|
||||||
|
|
||||||
qboolean GIB_Escaped (const char *str, int i);
|
bool GIB_Escaped (const char *str, int i);
|
||||||
|
|
||||||
char GIB_Parse_Match_Brace (const char *str, unsigned int *i);
|
char GIB_Parse_Match_Brace (const char *str, unsigned int *i);
|
||||||
char GIB_Parse_Match_Backtick (const char *str, unsigned int *i);
|
char GIB_Parse_Match_Backtick (const char *str, unsigned int *i);
|
||||||
|
@ -41,7 +41,7 @@ char GIB_Parse_Match_Var (const char *str, unsigned int *i);
|
||||||
gib_tree_t *GIB_Parse_Lines (const char *program, unsigned int pofs);
|
gib_tree_t *GIB_Parse_Lines (const char *program, unsigned int pofs);
|
||||||
gib_tree_t *GIB_Parse_Embedded (gib_tree_t *token);
|
gib_tree_t *GIB_Parse_Embedded (gib_tree_t *token);
|
||||||
|
|
||||||
extern qboolean gib_parse_error;
|
extern bool gib_parse_error;
|
||||||
void GIB_Parse_Error (const char *msg, unsigned int pos);
|
void GIB_Parse_Error (const char *msg, unsigned int pos);
|
||||||
const char *GIB_Parse_ErrorMsg (void) __attribute__((pure));
|
const char *GIB_Parse_ErrorMsg (void) __attribute__((pure));
|
||||||
unsigned int GIB_Parse_ErrorPos (void) __attribute__((pure));
|
unsigned int GIB_Parse_ErrorPos (void) __attribute__((pure));
|
||||||
|
|
|
@ -48,9 +48,9 @@ typedef struct gib_domain_s {
|
||||||
} gib_domain_t;
|
} gib_domain_t;
|
||||||
|
|
||||||
gib_var_t *GIB_Var_Get (hashtab_t *first, hashtab_t *second, const char *key);
|
gib_var_t *GIB_Var_Get (hashtab_t *first, hashtab_t *second, const char *key);
|
||||||
gib_var_t *GIB_Var_Get_Complex (hashtab_t **first, hashtab_t **second, char *key, unsigned int *ind, qboolean create);
|
gib_var_t *GIB_Var_Get_Complex (hashtab_t **first, hashtab_t **second, char *key, unsigned int *ind, bool create);
|
||||||
gib_var_t *GIB_Var_Get_Very_Complex (hashtab_t ** first, hashtab_t ** second, dstring_t *key, unsigned int start, unsigned int *ind, qboolean create);
|
gib_var_t *GIB_Var_Get_Very_Complex (hashtab_t ** first, hashtab_t ** second, dstring_t *key, unsigned int start, unsigned int *ind, bool create);
|
||||||
void GIB_Var_Assign (gib_var_t *var, unsigned int index, dstring_t **values, unsigned int numv, qboolean shrink);
|
void GIB_Var_Assign (gib_var_t *var, unsigned int index, dstring_t **values, unsigned int numv, bool shrink);
|
||||||
hashtab_t *GIB_Domain_Get (const char *name);
|
hashtab_t *GIB_Domain_Get (const char *name);
|
||||||
hashtab_t *GIB_Var_Hash_New (void);
|
hashtab_t *GIB_Var_Hash_New (void);
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "QF/qtypes.h"
|
#include "QF/qtypes.h"
|
||||||
|
|
||||||
extern qboolean mouseactive;
|
extern bool mouseactive;
|
||||||
extern float mouse_x, mouse_y;
|
extern float mouse_x, mouse_y;
|
||||||
|
|
||||||
void IN_UpdateClipCursor (void);
|
void IN_UpdateClipCursor (void);
|
||||||
|
|
|
@ -43,7 +43,7 @@ int Datagram_Init (void);
|
||||||
|
|
||||||
\param state True to enable, false to disable.
|
\param state True to enable, false to disable.
|
||||||
*/
|
*/
|
||||||
void Datagram_Listen (qboolean state);
|
void Datagram_Listen (bool state);
|
||||||
|
|
||||||
/** Search for hosts (servers) on the local network.
|
/** Search for hosts (servers) on the local network.
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ void Datagram_Listen (qboolean state);
|
||||||
|
|
||||||
\param xmit True to send the broadcast, falst to only listen.
|
\param xmit True to send the broadcast, falst to only listen.
|
||||||
*/
|
*/
|
||||||
void Datagram_SearchForHosts (qboolean xmit);
|
void Datagram_SearchForHosts (bool xmit);
|
||||||
|
|
||||||
/** Connect to the specified host.
|
/** Connect to the specified host.
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ int Datagram_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data);
|
||||||
\param sock The socket to check.
|
\param sock The socket to check.
|
||||||
\return True if the packet can be sent.
|
\return True if the packet can be sent.
|
||||||
*/
|
*/
|
||||||
qboolean Datagram_CanSendMessage (qsocket_t *sock);
|
bool Datagram_CanSendMessage (qsocket_t *sock);
|
||||||
|
|
||||||
/** Check if an unreliable message can be sent to the socket.
|
/** Check if an unreliable message can be sent to the socket.
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ qboolean Datagram_CanSendMessage (qsocket_t *sock);
|
||||||
\param sock The socket to check.
|
\param sock The socket to check.
|
||||||
\return True if the packet can be sent.
|
\return True if the packet can be sent.
|
||||||
*/
|
*/
|
||||||
qboolean Datagram_CanSendUnreliableMessage (qsocket_t *sock);
|
bool Datagram_CanSendUnreliableMessage (qsocket_t *sock);
|
||||||
|
|
||||||
/** Close the socket.
|
/** Close the socket.
|
||||||
|
|
||||||
|
|
|
@ -37,15 +37,15 @@
|
||||||
///@{
|
///@{
|
||||||
|
|
||||||
int Loop_Init (void);
|
int Loop_Init (void);
|
||||||
void Loop_Listen (qboolean state);
|
void Loop_Listen (bool state);
|
||||||
void Loop_SearchForHosts (qboolean xmit);
|
void Loop_SearchForHosts (bool xmit);
|
||||||
qsocket_t *Loop_Connect (const char *host);
|
qsocket_t *Loop_Connect (const char *host);
|
||||||
qsocket_t *Loop_CheckNewConnections (void);
|
qsocket_t *Loop_CheckNewConnections (void);
|
||||||
int Loop_GetMessage (qsocket_t *sock);
|
int Loop_GetMessage (qsocket_t *sock);
|
||||||
int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data);
|
int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data);
|
||||||
int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data);
|
int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data);
|
||||||
qboolean Loop_CanSendMessage (qsocket_t *sock);
|
bool Loop_CanSendMessage (qsocket_t *sock);
|
||||||
qboolean Loop_CanSendUnreliableMessage (qsocket_t *sock);
|
bool Loop_CanSendUnreliableMessage (qsocket_t *sock);
|
||||||
void Loop_Close (qsocket_t *sock);
|
void Loop_Close (qsocket_t *sock);
|
||||||
void Loop_Shutdown (void);
|
void Loop_Shutdown (void);
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void UDP_Shutdown (void);
|
||||||
|
|
||||||
\param state True to open the socket, false to close it.
|
\param state True to open the socket, false to close it.
|
||||||
*/
|
*/
|
||||||
void UDP_Listen (qboolean state);
|
void UDP_Listen (bool state);
|
||||||
|
|
||||||
/** Open a single socket on the specified port.
|
/** Open a single socket on the specified port.
|
||||||
|
|
||||||
|
|
|
@ -38,13 +38,13 @@
|
||||||
#define VCR_MAX_MESSAGE 4
|
#define VCR_MAX_MESSAGE 4
|
||||||
|
|
||||||
int VCR_Init (void);
|
int VCR_Init (void);
|
||||||
void VCR_Listen (qboolean state);
|
void VCR_Listen (bool state);
|
||||||
void VCR_SearchForHosts (qboolean xmit);
|
void VCR_SearchForHosts (bool xmit);
|
||||||
qsocket_t *VCR_Connect (const char *host);
|
qsocket_t *VCR_Connect (const char *host);
|
||||||
qsocket_t *VCR_CheckNewConnections (void);
|
qsocket_t *VCR_CheckNewConnections (void);
|
||||||
int VCR_GetMessage (qsocket_t *sock);
|
int VCR_GetMessage (qsocket_t *sock);
|
||||||
int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data);
|
int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data);
|
||||||
qboolean VCR_CanSendMessage (qsocket_t *sock);
|
bool VCR_CanSendMessage (qsocket_t *sock);
|
||||||
void VCR_Close (qsocket_t *sock);
|
void VCR_Close (qsocket_t *sock);
|
||||||
void VCR_Shutdown (void);
|
void VCR_Shutdown (void);
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ extern WSADATA winsockdata;
|
||||||
|
|
||||||
int WINS_Init (void);
|
int WINS_Init (void);
|
||||||
void WINS_Shutdown (void);
|
void WINS_Shutdown (void);
|
||||||
void WINS_Listen (qboolean state);
|
void WINS_Listen (bool state);
|
||||||
int WINS_OpenSocket (int port);
|
int WINS_OpenSocket (int port);
|
||||||
int WINS_CloseSocket (int socket);
|
int WINS_CloseSocket (int socket);
|
||||||
int WINS_Connect (int socket, netadr_t *addr);
|
int WINS_Connect (int socket, netadr_t *addr);
|
||||||
|
|
|
@ -92,7 +92,7 @@ void NET_Init (int port);
|
||||||
|
|
||||||
\return True if successfully read, otherwise false.
|
\return True if successfully read, otherwise false.
|
||||||
*/
|
*/
|
||||||
qboolean NET_GetPacket (void);
|
bool NET_GetPacket (void);
|
||||||
|
|
||||||
/** Send a data packet out to the network.
|
/** Send a data packet out to the network.
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ void NET_SendPacket (int length, const void *data, netadr_t to);
|
||||||
\param b The second address to compare.
|
\param b The second address to compare.
|
||||||
\return True of the addresses match, otherwise false.
|
\return True of the addresses match, otherwise false.
|
||||||
*/
|
*/
|
||||||
qboolean NET_CompareAdr (netadr_t a, netadr_t b) __attribute__((const));
|
bool NET_CompareAdr (netadr_t a, netadr_t b) __attribute__((const));
|
||||||
|
|
||||||
/** Compare two network addresses.
|
/** Compare two network addresses.
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ qboolean NET_CompareAdr (netadr_t a, netadr_t b) __attribute__((const));
|
||||||
\param b The second address to compare.
|
\param b The second address to compare.
|
||||||
\return True of the addresses match, otherwise false.
|
\return True of the addresses match, otherwise false.
|
||||||
*/
|
*/
|
||||||
qboolean NET_CompareBaseAdr (netadr_t a, netadr_t b) __attribute__((const));
|
bool NET_CompareBaseAdr (netadr_t a, netadr_t b) __attribute__((const));
|
||||||
|
|
||||||
/** Convert an address to a string.
|
/** Convert an address to a string.
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ const char *NET_BaseAdrToString (netadr_t a);
|
||||||
\param[out] a The resulting address of the conversion.
|
\param[out] a The resulting address of the conversion.
|
||||||
\return True if the conversion is successful, otherwise false.
|
\return True if the conversion is successful, otherwise false.
|
||||||
*/
|
*/
|
||||||
qboolean NET_StringToAdr (const char *s, netadr_t *a);
|
bool NET_StringToAdr (const char *s, netadr_t *a);
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ typedef enum {
|
||||||
} ncqport_e;
|
} ncqport_e;
|
||||||
|
|
||||||
typedef struct netchan_s {
|
typedef struct netchan_s {
|
||||||
qboolean fatal_error; ///< True if the message overflowed
|
bool fatal_error; ///< True if the message overflowed
|
||||||
|
|
||||||
double last_received; ///< Time the last packet was received.
|
double last_received; ///< Time the last packet was received.
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ void Netchan_OutOfBandPrint (netadr_t adr, const char *format, ...)
|
||||||
|
|
||||||
\param chan The netchan representing the connection.
|
\param chan The netchan representing the connection.
|
||||||
*/
|
*/
|
||||||
qboolean Netchan_Process (netchan_t *chan);
|
bool Netchan_Process (netchan_t *chan);
|
||||||
|
|
||||||
/** Initialize a new connection.
|
/** Initialize a new connection.
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ void Netchan_Setup (netchan_t *chan, netadr_t adr, int qport, ncqport_e flags);
|
||||||
\param chan The netchan representing the connection.
|
\param chan The netchan representing the connection.
|
||||||
\return True if the connection isn't chocked.
|
\return True if the connection isn't chocked.
|
||||||
*/
|
*/
|
||||||
qboolean Netchan_CanPacket (netchan_t *chan) __attribute__((pure));
|
bool Netchan_CanPacket (netchan_t *chan) __attribute__((pure));
|
||||||
|
|
||||||
/** Check if a reliable packet can be sent to the connection.
|
/** Check if a reliable packet can be sent to the connection.
|
||||||
|
|
||||||
|
@ -368,7 +368,7 @@ qboolean Netchan_CanPacket (netchan_t *chan) __attribute__((pure));
|
||||||
\return True if there is no outstanding reliable packet and the
|
\return True if there is no outstanding reliable packet and the
|
||||||
connection isn't chocked.
|
connection isn't chocked.
|
||||||
*/
|
*/
|
||||||
qboolean Netchan_CanReliable (netchan_t *chan) __attribute__((pure));
|
bool Netchan_CanReliable (netchan_t *chan) __attribute__((pure));
|
||||||
|
|
||||||
/** Send a packet.
|
/** Send a packet.
|
||||||
|
|
||||||
|
|
|
@ -166,9 +166,9 @@ typedef struct qsocket_s {
|
||||||
|
|
||||||
/// \name socket status
|
/// \name socket status
|
||||||
//@{
|
//@{
|
||||||
qboolean disconnected; ///< Socket is not in use.
|
bool disconnected; ///< Socket is not in use.
|
||||||
qboolean canSend; ///< Socket can send a message.
|
bool canSend; ///< Socket can send a message.
|
||||||
qboolean sendNext;
|
bool sendNext;
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/// \name socket drivers
|
/// \name socket drivers
|
||||||
|
@ -296,7 +296,7 @@ struct qsocket_s *NET_Connect (const char *host);
|
||||||
\param sock The qsocket representing the connection.
|
\param sock The qsocket representing the connection.
|
||||||
\return True if the message can be sent.
|
\return True if the message can be sent.
|
||||||
*/
|
*/
|
||||||
qboolean NET_CanSendMessage (qsocket_t *sock);
|
bool NET_CanSendMessage (qsocket_t *sock);
|
||||||
|
|
||||||
/** Read a single message from the connection into net_message.
|
/** Read a single message from the connection into net_message.
|
||||||
|
|
||||||
|
@ -378,12 +378,12 @@ typedef struct _PollProcedure {
|
||||||
*/
|
*/
|
||||||
void SchedulePollProcedure(PollProcedure *pp, double timeOffset);
|
void SchedulePollProcedure(PollProcedure *pp, double timeOffset);
|
||||||
|
|
||||||
extern qboolean tcpipAvailable;
|
extern bool tcpipAvailable;
|
||||||
extern char my_tcpip_address[NET_NAMELEN];
|
extern char my_tcpip_address[NET_NAMELEN];
|
||||||
|
|
||||||
extern qboolean slistInProgress;
|
extern bool slistInProgress;
|
||||||
extern qboolean slistSilent;
|
extern bool slistSilent;
|
||||||
extern qboolean slistLocal;
|
extern bool slistLocal;
|
||||||
|
|
||||||
extern char *hostname;
|
extern char *hostname;
|
||||||
|
|
||||||
|
@ -398,11 +398,11 @@ extern QFile *vcrFile;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
qboolean initialized;
|
bool initialized;
|
||||||
int controlSock;
|
int controlSock;
|
||||||
int (*Init) (void);
|
int (*Init) (void);
|
||||||
void (*Shutdown) (void);
|
void (*Shutdown) (void);
|
||||||
void (*Listen) (qboolean state);
|
void (*Listen) (bool state);
|
||||||
int (*OpenSocket) (int port);
|
int (*OpenSocket) (int port);
|
||||||
int (*CloseSocket) (int socket);
|
int (*CloseSocket) (int socket);
|
||||||
int (*Connect) (int socket, netadr_t *addr);
|
int (*Connect) (int socket, netadr_t *addr);
|
||||||
|
@ -431,17 +431,17 @@ extern net_landriver_t net_landrivers[MAX_NET_DRIVERS];
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
qboolean initialized;
|
bool initialized;
|
||||||
int (*Init) (void);
|
int (*Init) (void);
|
||||||
void (*Listen) (qboolean state);
|
void (*Listen) (bool state);
|
||||||
void (*SearchForHosts) (qboolean xmit);
|
void (*SearchForHosts) (bool xmit);
|
||||||
qsocket_t *(*Connect) (const char *host);
|
qsocket_t *(*Connect) (const char *host);
|
||||||
qsocket_t *(*CheckNewConnections) (void);
|
qsocket_t *(*CheckNewConnections) (void);
|
||||||
int (*QGetMessage) (qsocket_t *sock);
|
int (*QGetMessage) (qsocket_t *sock);
|
||||||
int (*QSendMessage) (qsocket_t *sock, sizebuf_t *data);
|
int (*QSendMessage) (qsocket_t *sock, sizebuf_t *data);
|
||||||
int (*SendUnreliableMessage) (qsocket_t *sock, sizebuf_t *data);
|
int (*SendUnreliableMessage) (qsocket_t *sock, sizebuf_t *data);
|
||||||
qboolean (*CanSendMessage) (qsocket_t *sock);
|
bool (*CanSendMessage) (qsocket_t *sock);
|
||||||
qboolean (*CanSendUnreliableMessage) (qsocket_t *sock);
|
bool (*CanSendUnreliableMessage) (qsocket_t *sock);
|
||||||
void (*Close) (qsocket_t *sock);
|
void (*Close) (qsocket_t *sock);
|
||||||
void (*Shutdown) (void);
|
void (*Shutdown) (void);
|
||||||
int controlSock;
|
int controlSock;
|
||||||
|
|
|
@ -58,9 +58,9 @@ typedef struct {
|
||||||
int oldbuttons;
|
int oldbuttons;
|
||||||
int oldonground;
|
int oldonground;
|
||||||
float waterjumptime;
|
float waterjumptime;
|
||||||
qboolean dead;
|
bool dead;
|
||||||
qboolean flying;
|
bool flying;
|
||||||
qboolean add_grav;
|
bool add_grav;
|
||||||
int spectator;
|
int spectator;
|
||||||
|
|
||||||
// world state
|
// world state
|
||||||
|
@ -109,7 +109,7 @@ void Pmove_Init_Cvars (void);
|
||||||
int PM_HullPointContents (hull_t *hull, int num, const vec3_t p) __attribute__((pure));
|
int PM_HullPointContents (hull_t *hull, int num, const vec3_t p) __attribute__((pure));
|
||||||
|
|
||||||
int PM_PointContents (const vec3_t point) __attribute__((pure));
|
int PM_PointContents (const vec3_t point) __attribute__((pure));
|
||||||
qboolean PM_TestPlayerPosition (const vec3_t point);
|
bool PM_TestPlayerPosition (const vec3_t point);
|
||||||
trace_t PM_PlayerMove (const vec3_t start, const vec3_t stop);
|
trace_t PM_PlayerMove (const vec3_t start, const vec3_t stop);
|
||||||
|
|
||||||
#endif // _PMOVE_H
|
#endif // _PMOVE_H
|
||||||
|
|
|
@ -131,10 +131,10 @@ void R_ClearPolyList (void);
|
||||||
void R_DrawPolyList (void);
|
void R_DrawPolyList (void);
|
||||||
|
|
||||||
// Surface cache related ==========
|
// Surface cache related ==========
|
||||||
extern qboolean r_cache_thrash; // set if thrashing the surface cache
|
extern bool r_cache_thrash; // set if thrashing the surface cache
|
||||||
|
|
||||||
// current entity info
|
// current entity info
|
||||||
extern qboolean insubmodel;
|
extern bool insubmodel;
|
||||||
extern vec3_t r_worldmodelorg;
|
extern vec3_t r_worldmodelorg;
|
||||||
|
|
||||||
extern mat4f_t glsl_projection;
|
extern mat4f_t glsl_projection;
|
||||||
|
@ -245,7 +245,7 @@ extern auxvert_t *pauxverts;
|
||||||
extern float ziscale;
|
extern float ziscale;
|
||||||
extern float aliastransform[3][4];
|
extern float aliastransform[3][4];
|
||||||
|
|
||||||
qboolean R_AliasCheckBBox (struct entity_s ent);
|
bool R_AliasCheckBBox (struct entity_s ent);
|
||||||
|
|
||||||
// turbulence stuff =======================================
|
// turbulence stuff =======================================
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ void R_AliasClipTriangle (mtriangle_t *ptri);
|
||||||
extern double r_time1;
|
extern double r_time1;
|
||||||
extern int r_frustum_indexes[4*6];
|
extern int r_frustum_indexes[4*6];
|
||||||
extern int r_maxsurfsseen, r_maxedgesseen;
|
extern int r_maxsurfsseen, r_maxedgesseen;
|
||||||
extern qboolean r_dowarpold, r_viewchanged;
|
extern bool r_dowarpold, r_viewchanged;
|
||||||
|
|
||||||
extern int r_clipflags;
|
extern int r_clipflags;
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ typedef struct surf_s {
|
||||||
void *data; // associated data like msurface_t
|
void *data; // associated data like msurface_t
|
||||||
uint32_t render_id;
|
uint32_t render_id;
|
||||||
float nearzi; // nearest 1/z on surface, for mipmapping
|
float nearzi; // nearest 1/z on surface, for mipmapping
|
||||||
qboolean insubmodel;
|
bool insubmodel;
|
||||||
float d_ziorigin, d_zistepu, d_zistepv;
|
float d_ziorigin, d_zistepu, d_zistepv;
|
||||||
|
|
||||||
int pad[2]; // to 64 bytes (FIXME not for 64-bit)
|
int pad[2]; // to 64 bytes (FIXME not for 64-bit)
|
||||||
|
|
|
@ -47,7 +47,7 @@ typedef struct varray_t2f_c4f_n3f_v3f_s {
|
||||||
GLfloat vertex[3];
|
GLfloat vertex[3];
|
||||||
} varray_t2f_c4f_n3f_v3f_t;
|
} varray_t2f_c4f_n3f_v3f_t;
|
||||||
|
|
||||||
extern qboolean gl_va_capable;
|
extern bool gl_va_capable;
|
||||||
extern int vaelements;
|
extern int vaelements;
|
||||||
|
|
||||||
extern varray_t2f_c4ub_v3f_t *gl_spriteVertexArray;
|
extern varray_t2f_c4ub_v3f_t *gl_spriteVertexArray;
|
||||||
|
|
|
@ -12,7 +12,7 @@ typedef struct gl_ctx_s {
|
||||||
void (*choose_visual) (struct gl_ctx_s *ctx);
|
void (*choose_visual) (struct gl_ctx_s *ctx);
|
||||||
void (*create_context) (struct gl_ctx_s *ctx, int core);
|
void (*create_context) (struct gl_ctx_s *ctx, int core);
|
||||||
void (*init_gl) (void);
|
void (*init_gl) (void);
|
||||||
void *(*get_proc_address) (const char *name, qboolean crit);
|
void *(*get_proc_address) (const char *name, bool crit);
|
||||||
void (*end_rendering) (void);
|
void (*end_rendering) (void);
|
||||||
|
|
||||||
mat4f_t projection;
|
mat4f_t projection;
|
||||||
|
|
|
@ -40,7 +40,7 @@ void VID_GetWindowSize (int def_w, int def_h);
|
||||||
void VID_SetWindowSize (int width, int height);
|
void VID_SetWindowSize (int width, int height);
|
||||||
|
|
||||||
void VID_InitGamma (const byte *);
|
void VID_InitGamma (const byte *);
|
||||||
qboolean VID_SetGamma (double);
|
bool VID_SetGamma (double);
|
||||||
void VID_UpdateGamma (void);
|
void VID_UpdateGamma (void);
|
||||||
|
|
||||||
void VID_MakeColormaps (void);
|
void VID_MakeColormaps (void);
|
||||||
|
|
|
@ -76,9 +76,9 @@ typedef enum {MS_WINDOWED, MS_FULLSCREEN, MS_FULLDIB, MS_UNINIT} modestate_t;
|
||||||
|
|
||||||
extern modestate_t modestate;
|
extern modestate_t modestate;
|
||||||
|
|
||||||
extern qboolean WinNT;
|
extern bool WinNT;
|
||||||
|
|
||||||
extern qboolean winsock_lib_initialized;
|
extern bool winsock_lib_initialized;
|
||||||
|
|
||||||
#ifdef SPLASH_SCREEN
|
#ifdef SPLASH_SCREEN
|
||||||
extern HWND hwnd_dialog;
|
extern HWND hwnd_dialog;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include "QF/model.h"
|
#include "QF/model.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
qboolean present;
|
bool present;
|
||||||
vec3_t laggedpos;
|
vec3_t laggedpos;
|
||||||
} laggedentinfo_t;
|
} laggedentinfo_t;
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ typedef enum {
|
||||||
} trace_e;
|
} trace_e;
|
||||||
|
|
||||||
typedef struct trace_s {
|
typedef struct trace_s {
|
||||||
qboolean allsolid; // if true, plane is not valid
|
bool allsolid; // if true, plane is not valid
|
||||||
qboolean startsolid; // if true, the initial point was in a solid area
|
bool startsolid; // if true, the initial point was in a solid area
|
||||||
qboolean inopen, inwater;
|
bool inopen, inwater;
|
||||||
float fraction; // time completed, 1.0 = didn't hit anything
|
float fraction; // time completed, 1.0 = didn't hit anything
|
||||||
vec3_t extents; // 1/2 size of traced box
|
vec3_t extents; // 1/2 size of traced box
|
||||||
trace_e type; // type of trace to perform
|
trace_e type; // type of trace to perform
|
||||||
|
@ -92,7 +92,7 @@ void SV_UnlinkEdict (struct edict_s *ent);
|
||||||
// so it doesn't clip against itself
|
// so it doesn't clip against itself
|
||||||
// flags ent->v.modified
|
// flags ent->v.modified
|
||||||
|
|
||||||
void SV_LinkEdict (struct edict_s *ent, qboolean touch_triggers);
|
void SV_LinkEdict (struct edict_s *ent, bool touch_triggers);
|
||||||
// Needs to be called any time an entity changes origin, mins, maxs, or solid
|
// Needs to be called any time an entity changes origin, mins, maxs, or solid
|
||||||
// flags ent->v.modified
|
// flags ent->v.modified
|
||||||
// sets ent->v.absmin and ent->v.absmax
|
// sets ent->v.absmin and ent->v.absmax
|
||||||
|
|
|
@ -64,7 +64,7 @@ CDAudio_Pause (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
VISIBLE void
|
VISIBLE void
|
||||||
CDAudio_Play (int track, qboolean looping)
|
CDAudio_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
if (cdmodule)
|
if (cdmodule)
|
||||||
cdmodule->functions->cd->play (track, looping);
|
cdmodule->functions->cd->play (track, looping);
|
||||||
|
|
|
@ -71,10 +71,10 @@ static general_data_t plugin_info_general_data;
|
||||||
static general_funcs_t plugin_info_general_funcs;
|
static general_funcs_t plugin_info_general_funcs;
|
||||||
|
|
||||||
/* global status variables. */
|
/* global status variables. */
|
||||||
static qboolean playing = false;
|
static bool playing = false;
|
||||||
static qboolean wasPlaying = false;
|
static bool wasPlaying = false;
|
||||||
static qboolean mus_enabled = false;
|
static bool mus_enabled = false;
|
||||||
static qboolean ogglistvalid = false;
|
static bool ogglistvalid = false;
|
||||||
|
|
||||||
/* sound resources */
|
/* sound resources */
|
||||||
static channel_t *cd_channel;
|
static channel_t *cd_channel;
|
||||||
|
@ -294,7 +294,7 @@ I_OGGMus_Resume (void)
|
||||||
/* start playing, if we've got a play_list.
|
/* start playing, if we've got a play_list.
|
||||||
* cry if we can't find a file to play */
|
* cry if we can't find a file to play */
|
||||||
static void
|
static void
|
||||||
I_OGGMus_Play (int track, qboolean looping)
|
I_OGGMus_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
/* alrighty. grab the list, map track to filename. grab filename from data
|
/* alrighty. grab the list, map track to filename. grab filename from data
|
||||||
resources, attach sound to play, loop. */
|
resources, attach sound to play, loop. */
|
||||||
|
|
|
@ -66,11 +66,11 @@ static general_data_t plugin_info_general_data;
|
||||||
static general_funcs_t plugin_info_general_funcs;
|
static general_funcs_t plugin_info_general_funcs;
|
||||||
static cd_funcs_t plugin_info_cd_funcs;
|
static cd_funcs_t plugin_info_cd_funcs;
|
||||||
|
|
||||||
static qboolean cdValid = false;
|
static bool cdValid = false;
|
||||||
static qboolean playing = false;
|
static bool playing = false;
|
||||||
static qboolean wasPlaying = false;
|
static bool wasPlaying = false;
|
||||||
static qboolean mus_enabled = false;
|
static bool mus_enabled = false;
|
||||||
static qboolean playLooping = false;
|
static bool playLooping = false;
|
||||||
static float cdvolume;
|
static float cdvolume;
|
||||||
static byte remap[100];
|
static byte remap[100];
|
||||||
static byte playTrack;
|
static byte playTrack;
|
||||||
|
@ -174,7 +174,7 @@ I_CDAudio_Stop (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
I_CDAudio_Play (int track, qboolean looping)
|
I_CDAudio_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
struct cdrom_tocentry entry0;
|
struct cdrom_tocentry entry0;
|
||||||
struct cdrom_tocentry entry1;
|
struct cdrom_tocentry entry1;
|
||||||
|
|
|
@ -56,10 +56,10 @@ static general_data_t plugin_info_general_data;
|
||||||
static general_funcs_t plugin_info_general_funcs;
|
static general_funcs_t plugin_info_general_funcs;
|
||||||
static cd_funcs_t plugin_info_cd_funcs;
|
static cd_funcs_t plugin_info_cd_funcs;
|
||||||
|
|
||||||
static qboolean cdValid = false;
|
static bool cdValid = false;
|
||||||
static qboolean initialized = false;
|
static bool initialized = false;
|
||||||
static qboolean enabled = true;
|
static bool enabled = true;
|
||||||
static qboolean playLooping = false;
|
static bool playLooping = false;
|
||||||
|
|
||||||
static SDL_CD *cd_id;
|
static SDL_CD *cd_id;
|
||||||
static float cdvolume = 1.0;
|
static float cdvolume = 1.0;
|
||||||
|
@ -113,7 +113,7 @@ I_CDAudio_Stop (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
I_CDAudio_Play (int track, qboolean looping)
|
I_CDAudio_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
/* Initialize cd_stat to avoid warning */
|
/* Initialize cd_stat to avoid warning */
|
||||||
/* XXX - Does this default value make sense? */
|
/* XXX - Does this default value make sense? */
|
||||||
|
|
|
@ -53,9 +53,9 @@ static general_funcs_t plugin_info_general_funcs;
|
||||||
|
|
||||||
static cd_funcs_t plugin_info_cd_funcs;
|
static cd_funcs_t plugin_info_cd_funcs;
|
||||||
|
|
||||||
static qboolean initialized = false;
|
static bool initialized = false;
|
||||||
static qboolean enabled = true;
|
static bool enabled = true;
|
||||||
static qboolean playLooping = false;
|
static bool playLooping = false;
|
||||||
static float cdvolume;
|
static float cdvolume;
|
||||||
static byte remap[100];
|
static byte remap[100];
|
||||||
static byte playTrack;
|
static byte playTrack;
|
||||||
|
@ -126,7 +126,7 @@ I_SGI_Pause (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
I_SGI_Play (int track, qboolean looping)
|
I_SGI_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
int maxtrack = I_SGI_MaxTrack ();
|
int maxtrack = I_SGI_MaxTrack ();
|
||||||
|
|
||||||
|
|
|
@ -48,12 +48,12 @@ static general_data_t plugin_info_general_data;
|
||||||
static general_funcs_t plugin_info_general_funcs;
|
static general_funcs_t plugin_info_general_funcs;
|
||||||
static cd_funcs_t plugin_info_cd_funcs;
|
static cd_funcs_t plugin_info_cd_funcs;
|
||||||
|
|
||||||
static qboolean cdValid = false;
|
static bool cdValid = false;
|
||||||
static qboolean playing = false;
|
static bool playing = false;
|
||||||
static qboolean wasPlaying = false;
|
static bool wasPlaying = false;
|
||||||
static qboolean initialized = false;
|
static bool initialized = false;
|
||||||
static qboolean enabled = false;
|
static bool enabled = false;
|
||||||
static qboolean playLooping = false;
|
static bool playLooping = false;
|
||||||
static float cdvolume;
|
static float cdvolume;
|
||||||
static byte remap[100];
|
static byte remap[100];
|
||||||
static byte playTrack;
|
static byte playTrack;
|
||||||
|
@ -61,7 +61,7 @@ static byte maxTrack;
|
||||||
|
|
||||||
static UINT wDeviceID;
|
static UINT wDeviceID;
|
||||||
|
|
||||||
static void I_CDAudio_Play (int track, qboolean looping);
|
static void I_CDAudio_Play (int track, bool looping);
|
||||||
static void I_CDAudio_Stop (void);
|
static void I_CDAudio_Stop (void);
|
||||||
|
|
||||||
static float bgmvolume;
|
static float bgmvolume;
|
||||||
|
@ -201,7 +201,7 @@ I_CDAudio_Pause (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
I_CDAudio_Play (int track, qboolean looping)
|
I_CDAudio_Play (int track, bool looping)
|
||||||
{
|
{
|
||||||
DWORD dwReturn;
|
DWORD dwReturn;
|
||||||
MCI_PLAY_PARMS mciPlayParms;
|
MCI_PLAY_PARMS mciPlayParms;
|
||||||
|
|
|
@ -79,15 +79,15 @@ static int sessionNo;
|
||||||
//static int xmmsPid = '0';
|
//static int xmmsPid = '0';
|
||||||
//static int sigNo = '2';
|
//static int sigNo = '2';
|
||||||
|
|
||||||
static qboolean playing = false;
|
static bool playing = false;
|
||||||
|
|
||||||
// no idea why I have wasPlaying, pbly this code was based on cd_linux.c :/
|
// no idea why I have wasPlaying, pbly this code was based on cd_linux.c :/
|
||||||
static qboolean wasPlaying = false;
|
static bool wasPlaying = false;
|
||||||
static qboolean musEnabled = true;
|
static bool musEnabled = true;
|
||||||
|
|
||||||
static void I_XMMS_Running(void);
|
static void I_XMMS_Running(void);
|
||||||
static void I_XMMS_Stop(void);
|
static void I_XMMS_Stop(void);
|
||||||
static void I_XMMS_Play(int, qboolean);
|
static void I_XMMS_Play(int, bool);
|
||||||
static void I_XMMS_Pause(void);
|
static void I_XMMS_Pause(void);
|
||||||
static void I_XMMS_Resume(void);
|
static void I_XMMS_Resume(void);
|
||||||
static void I_XMMS_Next(void);
|
static void I_XMMS_Next(void);
|
||||||
|
@ -178,7 +178,7 @@ I_XMMS_Stop (void) // stop playing
|
||||||
// Play
|
// Play
|
||||||
// start it playing, (unless disabled)
|
// start it playing, (unless disabled)
|
||||||
static void
|
static void
|
||||||
I_XMMS_Play (int track, qboolean looping) // looping for compatability
|
I_XMMS_Play (int track, bool looping) // looping for compatability
|
||||||
{
|
{
|
||||||
if (!musEnabled)
|
if (!musEnabled)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -89,7 +89,7 @@ static set_t static_channels = SET_STATIC_ARRAY (static_channel_bits);
|
||||||
|
|
||||||
static channel_t *ambient_channels[NUM_AMBIENTS];
|
static channel_t *ambient_channels[NUM_AMBIENTS];
|
||||||
|
|
||||||
static qboolean snd_ambient = 1;
|
static bool snd_ambient = 1;
|
||||||
static sfx_t *ambient_sfx[NUM_AMBIENTS];
|
static sfx_t *ambient_sfx[NUM_AMBIENTS];
|
||||||
|
|
||||||
static vec_t sound_nominal_clip_dist = 1000.0;
|
static vec_t sound_nominal_clip_dist = 1000.0;
|
||||||
|
|
|
@ -99,7 +99,7 @@ static ret (*qf##func) params;
|
||||||
#include "alsa_funcs_list.h"
|
#include "alsa_funcs_list.h"
|
||||||
#undef QF_ALSA_NEED
|
#undef QF_ALSA_NEED
|
||||||
|
|
||||||
static qboolean
|
static bool
|
||||||
load_libasound (void)
|
load_libasound (void)
|
||||||
{
|
{
|
||||||
if (!(alsa_handle = dlopen ("libasound.so.2", RTLD_GLOBAL | RTLD_NOW))) {
|
if (!(alsa_handle = dlopen ("libasound.so.2", RTLD_GLOBAL | RTLD_NOW))) {
|
||||||
|
|
|
@ -51,9 +51,9 @@ HRESULT (WINAPI * pDirectSoundCreate) (GUID FAR * lpGUID,
|
||||||
|
|
||||||
typedef enum { SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL } sndinitstat;
|
typedef enum { SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL } sndinitstat;
|
||||||
|
|
||||||
static qboolean dsound_init;
|
static bool dsound_init;
|
||||||
static qboolean snd_firsttime = true;
|
static bool snd_firsttime = true;
|
||||||
static qboolean primary_format_set;
|
static bool primary_format_set;
|
||||||
|
|
||||||
static int sample16;
|
static int sample16;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ static cvar_t snd_bits_cvar = {
|
||||||
.value = { .type = &cexpr_int, .value = &snd_bits },
|
.value = { .type = &cexpr_int, .value = &snd_bits },
|
||||||
};
|
};
|
||||||
|
|
||||||
static DWORD *DSOUND_LockBuffer (snd_t *snd, qboolean lockit);
|
static DWORD *DSOUND_LockBuffer (snd_t *snd, bool lockit);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SNDDMA_Init_Cvars (void)
|
SNDDMA_Init_Cvars (void)
|
||||||
|
@ -436,7 +436,7 @@ SNDDMA_shutdown (snd_t *snd)
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD *
|
static DWORD *
|
||||||
DSOUND_LockBuffer (snd_t *snd, qboolean lockit)
|
DSOUND_LockBuffer (snd_t *snd, bool lockit)
|
||||||
{
|
{
|
||||||
int reps;
|
int reps;
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
typedef enum { SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL } sndinitstat;
|
typedef enum { SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL } sndinitstat;
|
||||||
|
|
||||||
static qboolean snd_firsttime = true;
|
static bool snd_firsttime = true;
|
||||||
|
|
||||||
static int sample16;
|
static int sample16;
|
||||||
static int snd_sent, snd_completed;
|
static int snd_sent, snd_completed;
|
||||||
|
@ -68,7 +68,7 @@ static HWAVEOUT hWaveOut;
|
||||||
|
|
||||||
static DWORD gSndBufSize;
|
static DWORD gSndBufSize;
|
||||||
|
|
||||||
static qboolean SNDDMA_InitWav (snd_t *snd);
|
static bool SNDDMA_InitWav (snd_t *snd);
|
||||||
|
|
||||||
static int snd_stereo;
|
static int snd_stereo;
|
||||||
static cvar_t snd_stereo_cvar = {
|
static cvar_t snd_stereo_cvar = {
|
||||||
|
@ -161,7 +161,7 @@ FreeSound (void)
|
||||||
|
|
||||||
Crappy windows multimedia base
|
Crappy windows multimedia base
|
||||||
*/
|
*/
|
||||||
static qboolean
|
static bool
|
||||||
SNDDMA_InitWav (snd_t *snd)
|
SNDDMA_InitWav (snd_t *snd)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -227,7 +227,7 @@ beam_clear (beam_t *b)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
beam_setup (beam_t *b, qboolean settransform, double time, TEntContext_t *ctx)
|
beam_setup (beam_t *b, bool settransform, double time, TEntContext_t *ctx)
|
||||||
{
|
{
|
||||||
tent_t *tent;
|
tent_t *tent;
|
||||||
float d;
|
float d;
|
||||||
|
@ -688,7 +688,7 @@ CL_ClearProjectiles (void)
|
||||||
Nails are passed as efficient temporary entities
|
Nails are passed as efficient temporary entities
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_ParseProjectiles (qmsg_t *net_message, qboolean nail2, TEntContext_t *ctx)
|
CL_ParseProjectiles (qmsg_t *net_message, bool nail2, TEntContext_t *ctx)
|
||||||
{
|
{
|
||||||
tent_t *tent;
|
tent_t *tent;
|
||||||
tent_t *head = 0, **tail = &head;
|
tent_t *head = 0, **tail = &head;
|
||||||
|
|
|
@ -638,7 +638,7 @@ V_PrepBlend (viewstate_t *vs)
|
||||||
|| (vs->force_cshifts & INFO_CSHIFT_POWERUP))
|
|| (vs->force_cshifts & INFO_CSHIFT_POWERUP))
|
||||||
V_CalcPowerupCshift (vs);
|
V_CalcPowerupCshift (vs);
|
||||||
|
|
||||||
qboolean cshift_changed = false;
|
bool cshift_changed = false;
|
||||||
|
|
||||||
for (i = 0; i < NUM_CSHIFTS; i++) {
|
for (i = 0; i < NUM_CSHIFTS; i++) {
|
||||||
if (vs->cshifts[i].percent != vs->prev_cshifts[i].percent) {
|
if (vs->cshifts[i].percent != vs->prev_cshifts[i].percent) {
|
||||||
|
|
|
@ -198,7 +198,7 @@ locs_reset (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
locs_save (const char *filename, qboolean gz)
|
locs_save (const char *filename, bool gz)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
QFile *locfd;
|
QFile *locfd;
|
||||||
|
|
|
@ -332,14 +332,14 @@ static qpic_t *sb_face_quad;
|
||||||
static qpic_t *sb_face_invuln;
|
static qpic_t *sb_face_invuln;
|
||||||
static qpic_t *sb_face_invis_invuln;
|
static qpic_t *sb_face_invis_invuln;
|
||||||
|
|
||||||
qboolean sbar_showscores;
|
bool sbar_showscores;
|
||||||
static qboolean sbar_showteamscores;
|
static bool sbar_showteamscores;
|
||||||
|
|
||||||
static int sb_lines; // scan lines to draw
|
static int sb_lines; // scan lines to draw
|
||||||
|
|
||||||
static qpic_t *rsb_teambord; // PGM 01/19/97 - team color border
|
static qpic_t *rsb_teambord; // PGM 01/19/97 - team color border
|
||||||
|
|
||||||
//static qboolean largegame = false;
|
//static bool largegame = false;
|
||||||
|
|
||||||
char *fs_fraglog;
|
char *fs_fraglog;
|
||||||
static cvar_t fs_fraglog_cvar = {
|
static cvar_t fs_fraglog_cvar = {
|
||||||
|
@ -662,7 +662,7 @@ static draw_charbuffer_t *sb_spectator;
|
||||||
int scoreboardlines, scoreboardteams;
|
int scoreboardlines, scoreboardteams;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Sbar_SortFrags (qboolean includespec)
|
Sbar_SortFrags (bool includespec)
|
||||||
{
|
{
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
|
||||||
|
|
|
@ -158,8 +158,8 @@ static con_state_t con_state;
|
||||||
static int con_event_id;
|
static int con_event_id;
|
||||||
static int con_saved_focos;
|
static int con_saved_focos;
|
||||||
|
|
||||||
static qboolean con_debuglog;
|
static bool con_debuglog;
|
||||||
static qboolean chat_team;
|
static bool chat_team;
|
||||||
static dstring_t *c_print_buffer;
|
static dstring_t *c_print_buffer;
|
||||||
static dstring_t *dlbar;
|
static dstring_t *dlbar;
|
||||||
static dstring_t *old_gamedir = 0;
|
static dstring_t *old_gamedir = 0;
|
||||||
|
@ -226,7 +226,7 @@ static float notify_times[NOTIFY_LINES + 1];
|
||||||
static int notify_head;
|
static int notify_head;
|
||||||
static int notify_tail;
|
static int notify_tail;
|
||||||
|
|
||||||
static qboolean con_initialized;
|
static bool con_initialized;
|
||||||
|
|
||||||
static inline void *
|
static inline void *
|
||||||
con_getcomponent (view_t view, uint32_t comp)
|
con_getcomponent (view_t view, uint32_t comp)
|
||||||
|
|
|
@ -137,7 +137,7 @@ static cvar_t sv_use_curses_cvar = {
|
||||||
|
|
||||||
#ifdef HAVE_NCURSES
|
#ifdef HAVE_NCURSES
|
||||||
|
|
||||||
static void key_event (knum_t key, short unicode, qboolean down);
|
static void key_event (knum_t key, short unicode, bool down);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
sv_resize_x = 1,
|
sv_resize_x = 1,
|
||||||
|
@ -563,7 +563,7 @@ process_input (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
key_event (knum_t key, short unicode, qboolean down)
|
key_event (knum_t key, short unicode, bool down)
|
||||||
{
|
{
|
||||||
int ovf = view_offset;
|
int ovf = view_offset;
|
||||||
sv_view_t *window;
|
sv_view_t *window;
|
||||||
|
|
|
@ -239,7 +239,7 @@ ED_NumForEdict (progs_t *pr, edict_t *e)
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean
|
bool
|
||||||
PR_EdictValid (progs_t *pr, pr_uint_t e)
|
PR_EdictValid (progs_t *pr, pr_uint_t e)
|
||||||
{
|
{
|
||||||
if (!pr->num_edicts) {
|
if (!pr->num_edicts) {
|
||||||
|
|
|
@ -212,7 +212,7 @@ ED_NewString (progs_t *pr, const char *string)
|
||||||
Can parse either fields or globals
|
Can parse either fields or globals
|
||||||
returns false if error
|
returns false if error
|
||||||
*/
|
*/
|
||||||
VISIBLE qboolean
|
VISIBLE bool
|
||||||
ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key, const char *s)
|
ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key, const char *s)
|
||||||
{
|
{
|
||||||
pr_def_t *def;
|
pr_def_t *def;
|
||||||
|
|
|
@ -377,7 +377,7 @@ get_string (progs_t *pr, pr_string_t num)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VISIBLE qboolean
|
VISIBLE bool
|
||||||
PR_StringValid (progs_t *pr, pr_string_t num)
|
PR_StringValid (progs_t *pr, pr_string_t num)
|
||||||
{
|
{
|
||||||
if (num >= 0) {
|
if (num >= 0) {
|
||||||
|
@ -386,7 +386,7 @@ PR_StringValid (progs_t *pr, pr_string_t num)
|
||||||
return get_strref (pr->pr_string_resources, num) != 0;
|
return get_strref (pr->pr_string_resources, num) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
VISIBLE qboolean
|
VISIBLE bool
|
||||||
PR_StringMutable (progs_t *pr, pr_string_t num)
|
PR_StringMutable (progs_t *pr, pr_string_t num)
|
||||||
{
|
{
|
||||||
strref_t *sr;
|
strref_t *sr;
|
||||||
|
@ -770,7 +770,7 @@ I_DoPrint (dstring_t *tmp, dstring_t *result, fmt_item_t *formatting)
|
||||||
fmt_item_t *current = formatting;
|
fmt_item_t *current = formatting;
|
||||||
|
|
||||||
while (current) {
|
while (current) {
|
||||||
qboolean doPrecision, doWidth;
|
bool doPrecision, doWidth;
|
||||||
|
|
||||||
doPrecision = -1 != current->precision;
|
doPrecision = -1 != current->precision;
|
||||||
doWidth = 0 != (current->flags & FMT_WIDTH);
|
doWidth = 0 != (current->flags & FMT_WIDTH);
|
||||||
|
|
|
@ -116,7 +116,7 @@ GIB_Builtin_Remove (const char *name)
|
||||||
Hash_Free (gib_builtins, del);
|
Hash_Free (gib_builtins, del);
|
||||||
}
|
}
|
||||||
|
|
||||||
VISIBLE qboolean
|
VISIBLE bool
|
||||||
GIB_Builtin_Exists (const char *name)
|
GIB_Builtin_Exists (const char *name)
|
||||||
{
|
{
|
||||||
return Hash_Find (gib_builtins, name) ? true : false;
|
return Hash_Find (gib_builtins, name) ? true : false;
|
||||||
|
@ -1046,7 +1046,7 @@ gib_builtin_shutdown (void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GIB_Builtin_Init (qboolean sandbox)
|
GIB_Builtin_Init (bool sandbox)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (sandbox)
|
if (sandbox)
|
||||||
|
|
|
@ -188,7 +188,7 @@ Object_Class_New_f (gib_object_t *obj, gib_method_t *method, void *data,
|
||||||
static const char **g_occ_reply;
|
static const char **g_occ_reply;
|
||||||
static unsigned int g_occ_i = 0;
|
static unsigned int g_occ_i = 0;
|
||||||
|
|
||||||
static qboolean occ_iterator (gib_class_t *class, void *unused)
|
static bool occ_iterator (gib_class_t *class, void *unused)
|
||||||
{
|
{
|
||||||
g_occ_reply[g_occ_i++] = class->name;
|
g_occ_reply[g_occ_i++] = class->name;
|
||||||
return false;
|
return false;
|
||||||
|
@ -282,7 +282,7 @@ typedef struct Thread_class_s {
|
||||||
typedef struct Thread_s {
|
typedef struct Thread_s {
|
||||||
gib_object_t *obj;
|
gib_object_t *obj;
|
||||||
cbuf_t *thread;
|
cbuf_t *thread;
|
||||||
qboolean ended;
|
bool ended;
|
||||||
} Thread_t;
|
} Thread_t;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -203,7 +203,7 @@ GIB_Execute (cbuf_t * cbuf)
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
gib_var_t *var;
|
gib_var_t *var;
|
||||||
int i;
|
int i;
|
||||||
qboolean super;
|
bool super;
|
||||||
|
|
||||||
static const char **mesg = NULL;
|
static const char **mesg = NULL;
|
||||||
static int maxmesg = 0;
|
static int maxmesg = 0;
|
||||||
|
|
|
@ -163,7 +163,7 @@ static unsigned int g_fpa_argc;
|
||||||
static hashtab_t *g_fpa_zero = 0;
|
static hashtab_t *g_fpa_zero = 0;
|
||||||
static unsigned int g_fpa_i, g_fpa_ind;
|
static unsigned int g_fpa_i, g_fpa_ind;
|
||||||
|
|
||||||
static qboolean fpa_iterate (char *arg, llist_node_t *node)
|
static bool fpa_iterate (char *arg, llist_node_t *node)
|
||||||
{
|
{
|
||||||
gib_var_t *var = GIB_Var_Get_Complex (&GIB_DATA(g_fpa_cbuf)->locals, &g_fpa_zero,
|
gib_var_t *var = GIB_Var_Get_Complex (&GIB_DATA(g_fpa_cbuf)->locals, &g_fpa_zero,
|
||||||
arg, &g_fpa_ind, true);
|
arg, &g_fpa_ind, true);
|
||||||
|
@ -210,7 +210,7 @@ static unsigned int g_fpad_argc;
|
||||||
static hashtab_t *g_fpad_zero = 0;
|
static hashtab_t *g_fpad_zero = 0;
|
||||||
static unsigned int g_fpad_i, g_fpad_ind;
|
static unsigned int g_fpad_i, g_fpad_ind;
|
||||||
|
|
||||||
static qboolean fpad_iterate (char *arg, llist_node_t *node)
|
static bool fpad_iterate (char *arg, llist_node_t *node)
|
||||||
{
|
{
|
||||||
gib_var_t *var;
|
gib_var_t *var;
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue