From: spog <spog@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Date: Mon, 10 Apr 2006 21:29:49 +0000 (+0000)
Subject: fixed compile errors
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=70b29651628db3ee3023cdd9a8d2f5c4a2ced210;p=xonotic%2Fnetradiant.git

fixed compile errors

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@54 8a3a26a2-13c4-0310-b231-cf6edde360e5
---

diff --git a/contrib/prtview/portals.cpp b/contrib/prtview/portals.cpp
index e5dea308..d3bef1b6 100644
--- a/contrib/prtview/portals.cpp
+++ b/contrib/prtview/portals.cpp
@@ -247,7 +247,7 @@ void CPortals::Load()
 		return;
 	}
 
-	if(portal_count < 0)
+	if(portal_count == 0)
 	{
 		fclose(in);
 
diff --git a/libs/gtkutil/glfont.cpp b/libs/gtkutil/glfont.cpp
index 48ba7ce8..ae0ed5a2 100644
--- a/libs/gtkutil/glfont.cpp
+++ b/libs/gtkutil/glfont.cpp
@@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "glfont.h"
 
 #include "igl.h"
-#include <gtk/gtkglwidget.h>
+//#include <gtk/gtkglwidget.h>
 
 GLFont glfont_create(const char* font_string)
 {
diff --git a/radiant/brush.h b/radiant/brush.h
index b0a932d8..8d31d3e7 100644
--- a/radiant/brush.h
+++ b/radiant/brush.h
@@ -4101,7 +4101,7 @@ public:
 template<typename Functor>
 inline const Functor& Brush_ForEachFaceInstance(BrushInstance& brush, const Functor& functor)
 {
-  brush.forEachFaceInstance(FaceInstanceVisitAll<Functor>(functor)));
+  brush.forEachFaceInstance(FaceInstanceVisitAll<Functor>(functor));
   return functor;
 }
 
@@ -4140,7 +4140,7 @@ public:
   {
     if(path.top().get().visible())
     {
-      BrushInstance* brush = Instance_getIBrush(instance);
+      BrushInstance* brush = Instance_getBrush(instance);
       if(brush != 0)
       {
         m_functor(*brush);