From b206cb988bd5e9dee577f72fbbe7c28df0da1a7a Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 27 Aug 2018 23:21:03 +0200 Subject: [PATCH] Fix symmetrical editing of waypoints with custom origin (g_waypointeditor_symmetrical -1) not working --- qcsrc/server/bot/default/waypoints.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index bab99b304..f75829aec 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -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); -- 2.39.2