]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix variable name
authorterencehill <piuntn@gmail.com>
Mon, 31 Jul 2017 13:39:59 +0000 (15:39 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 31 Jul 2017 13:39:59 +0000 (15:39 +0200)
qcsrc/server/bot/default/navigation.qc

index fc993400e2845a2da9404964810e099afb63d6fb..073943f4eb2cfdb5bcf0b41b6fa57ecefe5a2d38 100644 (file)
@@ -301,7 +301,7 @@ bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float e
                        {
                                tracebox(org, m1, m2, move, movemode, e); // swim
 
-                               bool stepswimmed = false;
+                               bool stepswum = false;
 
                                // hit something
                                if (trace_fraction < 1)
@@ -356,14 +356,14 @@ bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float e
                                                continue;
                                        }
 
-                                       stepswimmed = true;
+                                       stepswum = true;
                                }
 
                                if (!WETFEET(trace_endpos))
                                {
                                        tracebox(trace_endpos, m1, m2, trace_endpos - eZ * (stepdist + (m2.z - m1.z)), movemode, e);
-                                       // if stepswimmed we'll land on the obstacle, avoid the SUBMERGED check
-                                       if (!stepswimmed && SUBMERGED(trace_endpos))
+                                       // if stepswum we'll land on the obstacle, avoid the SUBMERGED check
+                                       if (!stepswum && SUBMERGED(trace_endpos))
                                        {
                                                RESURFACE_LIMITED(trace_endpos, end2.z);
                                                org = trace_endpos;