fixed compile errors

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@54 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog 2006-04-10 21:29:49 +00:00
parent ccdd63c15b
commit 3c382bc5b8
3 changed files with 4 additions and 4 deletions

View file

@ -247,7 +247,7 @@ void CPortals::Load()
return; return;
} }
if(portal_count < 0) if(portal_count == 0)
{ {
fclose(in); fclose(in);

View file

@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "glfont.h" #include "glfont.h"
#include "igl.h" #include "igl.h"
#include <gtk/gtkglwidget.h> //#include <gtk/gtkglwidget.h>
GLFont glfont_create(const char* font_string) GLFont glfont_create(const char* font_string)
{ {

View file

@ -4101,7 +4101,7 @@ public:
template<typename Functor> template<typename Functor>
inline const Functor& Brush_ForEachFaceInstance(BrushInstance& brush, const Functor& functor) inline const Functor& Brush_ForEachFaceInstance(BrushInstance& brush, const Functor& functor)
{ {
brush.forEachFaceInstance(FaceInstanceVisitAll<Functor>(functor))); brush.forEachFaceInstance(FaceInstanceVisitAll<Functor>(functor));
return functor; return functor;
} }
@ -4140,7 +4140,7 @@ public:
{ {
if(path.top().get().visible()) if(path.top().get().visible())
{ {
BrushInstance* brush = Instance_getIBrush(instance); BrushInstance* brush = Instance_getBrush(instance);
if(brush != 0) if(brush != 0)
{ {
m_functor(*brush); m_functor(*brush);