]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/gtkgensurf/dec.cpp
Remove some commented-out code
[xonotic/netradiant.git] / contrib / gtkgensurf / dec.cpp
index 3a96410e13640ea772781a090046a4896c905cd9..dda98a02581bffcf1089ff46f9d12cb54ce62406 100644 (file)
@@ -158,7 +158,7 @@ void MakeDecimatedMap( int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri ){
                                 */
                                g_FuncTable.m_pfnMessageBox( g_pRadiantWnd,
                                                                                         "Error: Couldn't find the triangle bounding a point.",
-                                                                                        "Decimation Error",MB_ICONEXCLAMATION, NULL );
+                                                                                        "Decimation Error", eMB_OK, eMB_ICONWARNING );
                                return;
                        }
                        if ( !Tri[Node[i].tri].flag ) {
@@ -217,8 +217,6 @@ void MakeDecimatedMap( int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri ){
        }
        free( TriTable );
        // One last time (because we're pessimistic), check border triangles
-//     CheckBorders(&NumNodesUsed,NumNodes[0],Node,NumTris,pTri);
-//     Tri = *pTri;
 
        // Check that all fixed points are exact. If not, add them to the mix.
        // First check to see if we have any fixed points that aren't already used.
@@ -272,7 +270,7 @@ void MakeDecimatedMap( int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri ){
                                 */
                                g_FuncTable.m_pfnMessageBox( g_pRadiantWnd,
                                                                                         "Error: Couldn't find the triangle bounding a point.",
-                                                                                        "Decimation Error",MB_ICONEXCLAMATION, NULL );
+                                                                                        "Decimation Error", eMB_OK, eMB_ICONWARNING );
                                return;
                        }
                        if ( !Tri[Node[i].tri].flag ) {
@@ -459,7 +457,7 @@ int tricall( int NumNodes, NODE *Node, int *NumTris, TRI **inTri, TRI **Tri, con
        out.edgelist           = (int *) NULL;   /* Needed only if -e switch used. */
        out.edgemarkerlist     = (int *) NULL;   /* Needed if -e used and -B not used. */
 
-       triangulate( (char *) Options, &in, &out, NULL );
+       triangulate( Options, &in, &out, NULL );
 
        NumTris[0] = out.numberoftriangles;
        *Tri = (TRI *) malloc( NumTris[0] * sizeof( TRI ) );