]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.cpp
Merge commit 'cac514541c3ae6f72c4c00c19c215ff62a023df4' into garux-merge
[xonotic/netradiant.git] / radiant / patch.cpp
index f99e65451d52f90aadcf9df69afc448e799fa198..a92597d4c95e461a9d1b5773b8fcea2b7bd3e267 100644 (file)
@@ -812,20 +812,20 @@ void Patch::InsertPoints( EMatrixMajor mt, bool bFirst ){
                return;
        }
        if ( bFirst ) {
-               pos = height - 1;
+               pos = 2;
        }
        else
        {
-               pos = 2;
+               pos = height - 1;
        }
 
        if ( pos >= height ) {
                if ( bFirst ) {
-                       pos = height - 1;
+                       pos = 2;
                }
                else
                {
-                       pos = 2;
+                       pos = height - 1;
                }
        }
        else if ( pos == 0 ) {
@@ -956,19 +956,19 @@ void Patch::RemovePoints( EMatrixMajor mt, bool bFirst ){
                return;
        }
        if ( bFirst ) {
-               pos = height - 3;
+               pos = 2;
        }
        else
        {
-               pos = 2;
+               pos = height - 3;
        }
        if ( pos >= height ) {
                if ( bFirst ) {
-                       pos = height - 3;
+                       pos = 2;
                }
                else
                {
-                       pos = 2;
+                       pos = height - 3;
                }
        }
        else if ( pos == 0 ) {