From: Rudolf Polzer Date: Sat, 10 Dec 2011 11:34:08 +0000 (+0100) Subject: fix aim command use X-Git-Tag: xonotic-v0.6.0~38 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=179727e96bb36fc3529ead8339d835781942675c;p=xonotic%2Fxonotic.git fix aim command use --- diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 83550b00..58b40970 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -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') {