From c4168ca06080bc9797a09680875ead840dfc4afe Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 28 Mar 2017 00:08:44 +0200 Subject: [PATCH] Don't autodetect map symmetry on maps with no flag --- qcsrc/server/impulse.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/impulse.qc b/qcsrc/server/impulse.qc index 80da8a4dc..35134798c 100644 --- a/qcsrc/server/impulse.qc +++ b/qcsrc/server/impulse.qc @@ -604,8 +604,9 @@ IMPULSE(navwaypoint_spawn) if (!autocvar_g_waypointeditor) return; entity e; vector org = this.origin; - bool sym = boolean(autocvar_g_waypointeditor_symmetrical); int ctf_flags = havocbot_symmetryaxis_equation.z; + bool sym = ((autocvar_g_waypointeditor_symmetrical > 0 && ctf_flags >= 2) + || (autocvar_g_waypointeditor_symmetrical < 0)); int order = ctf_flags; if(autocvar_g_waypointeditor_symmetrical_order >= 2) { @@ -635,8 +636,9 @@ IMPULSE(navwaypoint_remove) { if (!autocvar_g_waypointeditor) return; entity e = navigation_findnearestwaypoint(this, false); - bool sym = boolean(autocvar_g_waypointeditor_symmetrical); int ctf_flags = havocbot_symmetryaxis_equation.z; + bool sym = ((autocvar_g_waypointeditor_symmetrical > 0 && ctf_flags >= 2) + || (autocvar_g_waypointeditor_symmetrical < 0)); int order = ctf_flags; if(autocvar_g_waypointeditor_symmetrical_order >= 2) { -- 2.39.2