]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
fix aim command use
authorRudolf Polzer <divverent@xonotic.org>
Sat, 10 Dec 2011 11:34:08 +0000 (12:34 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 10 Dec 2011 11:34:08 +0000 (12:34 +0100)
misc/tools/midi2cfg-ng.pl

index 83550b007787d3fcb26cc17e543539cb96f84480..58b4097065280f6bdd0648be09e93502ac3eb494 100755 (executable)
@@ -344,7 +344,7 @@ sub busybot_cmd_bot_execute($$@)
                }
                elsif($_->[0] eq 'aim_random')
                {
-                       $commands .= sprintf "sv_cmd bot_cmd %d aim %f 0 %f\n", $bot->{id}, $_->[1] + rand($_->[2] - $_->[1]), $_->[3];
+                       $commands .= sprintf "sv_cmd bot_cmd %d aim \"%f 0 %f\"\n", $bot->{id}, $_->[1] + rand($_->[2] - $_->[1]), $_->[3];
                }
                elsif($_->[0] eq 'barrier')
                {