From: terencehill Date: Mon, 27 Mar 2017 22:08:44 +0000 (+0200) Subject: Don't autodetect map symmetry on maps with no flag X-Git-Tag: xonotic-v0.8.2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4168ca06080bc9797a09680875ead840dfc4afe;p=xonotic%2Fxonotic-data.pk3dir.git Don't autodetect map symmetry on maps with no flag --- 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) {