From 3c382bc5b8276dc49fb4cbf66a6b3e83ccd13527 Mon Sep 17 00:00:00 2001 From: spog Date: Mon, 10 Apr 2006 21:29:49 +0000 Subject: [PATCH] fixed compile errors git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@54 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- contrib/prtview/portals.cpp | 2 +- libs/gtkutil/glfont.cpp | 2 +- radiant/brush.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 +//#include 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 inline const Functor& Brush_ForEachFaceInstance(BrushInstance& brush, const Functor& functor) { - brush.forEachFaceInstance(FaceInstanceVisitAll(functor))); + brush.forEachFaceInstance(FaceInstanceVisitAll(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); -- 2.39.2