From 4e149db02a7dc7060a779d4352ea66469b925deb Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 15 May 2008 19:40:37 +0000 Subject: [PATCH] properly disconnect before starting botmatch git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1980 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/menus_bot.cfg | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config/menus_bot.cfg b/config/menus_bot.cfg index 3c35e15a..24e897c4 100644 --- a/config/menus_bot.cfg +++ b/config/menus_bot.cfg @@ -12,12 +12,14 @@ alias startbotmatch [ ] alias startbotmap [ - if $connected [ disconnect ] - echo starting botmatch.. - kickallbots - sleep 5000 startbotmatch - mode $tmp_mode - map $tmp_botmap + if $connected [ disconnect ] // async + sleep 1000 [ + echo starting botmatch.. + mode $tmp_mode + map $tmp_botmap + ] + + sleep 5000 [ kickallbots; startbotmatch ] ] newmenu singleplayer