From 37239efadb7a29d959fbbb48366ff9186319ac11 Mon Sep 17 00:00:00 2001 From: Sam V Date: Tue, 15 Mar 2022 21:20:30 +0100 Subject: [PATCH] Fix "C4013: 'function' undefined; assuming extern returning int" warnings #138 --- utils/qbsp2/bsp5.h | 4 ++++ utils/qcsg/csg.h | 16 +++++++++++++++- utils/visx2/flow.c | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/utils/qbsp2/bsp5.h b/utils/qbsp2/bsp5.h index 427966e31..37b96980f 100644 --- a/utils/qbsp2/bsp5.h +++ b/utils/qbsp2/bsp5.h @@ -108,6 +108,7 @@ typedef struct node_s face_t *NewFaceFromFace (face_t *in); void SplitFace (face_t *in, dplane_t *split, face_t **front, face_t **back); +void SplitFaceTmp(face_t* in, dplane_t* split, face_t** front, face_t** back); //============================================================================= @@ -117,6 +118,7 @@ void DivideFacet (face_t *in, dplane_t *split, face_t **front, face_t **back); void CalcSurfaceInfo (surface_t *surf); void SubdivideFace (face_t *f, face_t **prevptr); node_t *SolidBSP (surfchain_t *surfhead); +int FaceSide(face_t* in, dplane_t* split); //============================================================================= @@ -143,6 +145,7 @@ void SubdivideFaces (surface_t *surfhead); surfchain_t *GatherNodeFaces (node_t *headnode); void MakeFaceEdges (node_t *headnode); +int GetEdge(vec3_t p1, vec3_t p2, face_t* f); //============================================================================= @@ -162,6 +165,7 @@ extern node_t outside_node; // portals outside the world face this void AddPortalToNodes (portal_t *p, node_t *front, node_t *back); void RemovePortalFromNode (portal_t *portal, node_t *l); void MakeHeadnodePortals (node_t *node, vec3_t mins, vec3_t maxs); +void FreePortals(node_t* node); void WritePortalfile (node_t *headnode); diff --git a/utils/qcsg/csg.h b/utils/qcsg/csg.h index feca3d7bb..8608f93b6 100644 --- a/utils/qcsg/csg.h +++ b/utils/qcsg/csg.h @@ -112,7 +112,8 @@ void LoadMapFile (char *filename); extern int nummiptex; void WriteMiptex (void); -int TexinfoForBrushTexture (plane_t *plane, brush_texture_t *bt, vec3_t origin); +int FindMiptex(char* name); +int TexinfoForBrushTexture(plane_t* plane, brush_texture_t* bt, vec3_t origin); //============================================================================= @@ -125,6 +126,8 @@ int PlaneTypeForNormal (vec3_t normal); void CreateBrush (int brushnum); +int BrushContents(brush_t* b); + //============================================================================= // csg.c @@ -142,3 +145,14 @@ extern qboolean drawflag; void Draw_ClearWindow (void); void DrawWinding (winding_t *w); +//============================================================================= + +// map.c + +void TextureAxisFromPlane(plane_t* pln, vec3_t xv, vec3_t yv); + +//============================================================================= + +// hullfile.c + +void CheckHullFile(qboolean hullfile, char* filename); diff --git a/utils/visx2/flow.c b/utils/visx2/flow.c index a17899dde..e0cbe4c4c 100644 --- a/utils/visx2/flow.c +++ b/utils/visx2/flow.c @@ -9,6 +9,7 @@ ****/ #include "vis.h" +#include "threads.h" int c_fullskip; int c_chains;