]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/portals.h
Fixing Linux SCons build.
[xonotic/netradiant.git] / contrib / prtview / portals.h
index 23950abd7fabb2e3e68ead890e7bec566c3c43df..13c7b89fc23d357ef3983e4f3105ef50dbaf6799 100644 (file)
@@ -41,9 +41,9 @@ public:
        float min[3];
        float max[3];
        float dist;
-       bool hint;
+       qboolean hint;
 
-       bool Build(char *def);
+       qboolean Build(char *def);
 };
 
 class CPortals {
@@ -62,14 +62,14 @@ public:
 
        void FixColors();
 
-       char fn[PATH_MAX];
+       char fn[_MAX_PATH];
 
        int zbuffer;
        int polygons;
        int lines;
-       bool show_3d;
-       bool aa_3d;
-       bool fog;
+       qboolean show_3d;
+       qboolean aa_3d;
+       qboolean fog;
        COLORREF color_3d;
        float width_3d;  // in 8'ths
        float fp_color_3d[4];
@@ -77,17 +77,17 @@ public:
        float fp_color_fog[4];
        float trans_3d;
        float clip_range;
-       bool clip;
+       qboolean clip;
 
-       bool show_2d;
-       bool aa_2d;
+       qboolean show_2d;
+       qboolean aa_2d;
        COLORREF color_2d;
        float width_2d;  // in 8'ths
        float fp_color_2d[4];
 
        CBspPortal *portal;
        int *portal_sort;
-       bool hint_flags;
+       qboolean hint_flags;
 //     CBspNode *node;
 
        unsigned int node_count;
@@ -103,6 +103,9 @@ public:
 protected:
 
        int refCount;
+#ifdef _WIN32
+       CRITICAL_SECTION protect;
+#endif
 
 public: