From: terencehill Date: Mon, 27 Aug 2018 21:21:03 +0000 (+0200) Subject: Fix symmetrical editing of waypoints with custom origin (g_waypointeditor_symmetrical... X-Git-Tag: xonotic-v0.8.5~1911 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b206cb988bd5e9dee577f72fbbe7c28df0da1a7a;p=xonotic%2Fxonotic-data.pk3dir.git Fix symmetrical editing of waypoints with custom origin (g_waypointeditor_symmetrical -1) not working --- 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);