diff --git a/contrib/prtview/portals.cpp b/contrib/prtview/portals.cpp index e5dea30..d3bef1b 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 48ba7ce..ae0ed5a 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 b0a932d..8d31d3e 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);