]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/portals.cpp
fixed compile errors
[xonotic/netradiant.git] / contrib / prtview / portals.cpp
index bc56c1987a8c3e97bb3a3f80c83e169d7c4db67d..d3bef1b6bee63e0f29e90d83a6060b18e9c1daf1 100644 (file)
@@ -17,7 +17,7 @@ License along with this library; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include "Portals.h"
+#include "portals.h"
 #include <string.h>
 #include <stdlib.h>
 #ifndef __APPLE__
@@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #include "iglrender.h"
 #include "cullable.h"
 
-#include "PrtView.h"
+#include "prtview.h"
 
 #define LINE_BUF 1000
 
@@ -247,7 +247,7 @@ void CPortals::Load()
                return;
        }
 
-       if(portal_count < 0)
+       if(portal_count == 0)
        {
                fclose(in);
 
@@ -337,7 +337,7 @@ void Portals_constructShaders()
   GlobalOpenGLStateLibrary().insert(g_state_wireframe, state);
 
   GlobalOpenGLStateLibrary().getDefaultState(state);
-  state.m_state = RENDER_FILL|RENDER_BLEND|RENDER_COLOURWRITE|RENDER_COLOURCHANGE|RENDER_SMOOTH|RENDER_POLYGONSMOOTH;
+  state.m_state = RENDER_FILL|RENDER_BLEND|RENDER_COLOURWRITE|RENDER_COLOURCHANGE|RENDER_SMOOTH;
 
        if(portals.aa_3d)
   {