]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix g_waypointeditor_saveall saving each waypoint 32 times...
authorterencehill <piuntn@gmail.com>
Mon, 13 Feb 2017 17:15:21 +0000 (18:15 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 13 Feb 2017 17:15:21 +0000 (18:15 +0100)
qcsrc/server/bot/default/waypoints.qc

index 1e03bf5e1bd651e086ee22fdeef485bf76621ae6..bd920149b9e8a72f1d1840c48a6632e8a44ee510 100644 (file)
@@ -624,17 +624,14 @@ void waypoint_saveall()
                if(it.wpflags & WAYPOINTFLAG_GENERATED)
                        continue;
 
-               for(int j = 0; j < 32; ++j)
-               {
-                       string s;
-                       s = strcat(vtos(it.origin + it.mins), "\n");
-                       s = strcat(s, vtos(it.origin + it.maxs));
-                       s = strcat(s, "\n");
-                       s = strcat(s, ftos(it.wpflags));
-                       s = strcat(s, "\n");
-                       fputs(file, s);
-                       ++c;
-               }
+               string s;
+               s = strcat(vtos(it.origin + it.mins), "\n");
+               s = strcat(s, vtos(it.origin + it.maxs));
+               s = strcat(s, "\n");
+               s = strcat(s, ftos(it.wpflags));
+               s = strcat(s, "\n");
+               fputs(file, s);
+               c++;
        });
        fclose(file);
        waypoint_save_links();