]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix symmetrical editing of waypoints with custom origin (g_waypointeditor_symmetrical...
authorterencehill <piuntn@gmail.com>
Mon, 27 Aug 2018 21:21:03 +0000 (23:21 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 27 Aug 2018 21:21:03 +0000 (23:21 +0200)
qcsrc/server/bot/default/waypoints.qc

index bab99b30479e82bc61d90e4553335eb998e65647..f75829aecd8595d8a69087e9a035708d53cf14ef 100644 (file)
@@ -251,6 +251,8 @@ void waypoint_spawn_fromeditor(entity pl)
                   || (autocvar_g_waypointeditor_symmetrical < 0));
        if(autocvar_g_waypointeditor_symmetrical_order >= 2)
                ctf_flags = autocvar_g_waypointeditor_symmetrical_order;
+       if (sym && ctf_flags < 2)
+               ctf_flags = 2;
        int wp_num = ctf_flags;
 
        if(!PHYS_INPUT_BUTTON_CROUCH(pl))
@@ -310,6 +312,8 @@ void waypoint_remove_fromeditor(entity pl)
                   || (autocvar_g_waypointeditor_symmetrical < 0));
        if(autocvar_g_waypointeditor_symmetrical_order >= 2)
                ctf_flags = autocvar_g_waypointeditor_symmetrical_order;
+       if (sym && ctf_flags < 2)
+               ctf_flags = 2;
        int wp_num = ctf_flags;
 
        LABEL(remove_wp);