From c4d79c7fe0a11fcd4d53f3bd4ab2f227895b66e6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 18 Oct 2008 07:24:21 +0000 Subject: [PATCH] afterdisconnect cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3119 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/menus_bot.cfg | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/config/menus_bot.cfg b/config/menus_bot.cfg index 9d8e7a9d..2881efd0 100644 --- a/config/menus_bot.cfg +++ b/config/menus_bot.cfg @@ -43,21 +43,24 @@ alias preparebotmatch [ map $tmp_botmap ] +alias afterdisconnect [ + if $connected [ + alias mapstartonce $arg1 + disconnect + ] $arg1 +] + // register events and change map alias startbotmap [ - if $connected [ - alias mapstartonce [ preparebotmatch ] - disconnect - ] [ - preparebotmatch - ] + afterdisconnect [preparebotmatch] ] -alias emptymap [ if $connected [ disconnect; alias mapstartonce [ emptymap2 ] ] [ emptymap2 ] ] -alias emptymap2 [ - mode 0 - showmenu maps +alias emptymap [ + afterdisconnect [ + mode 0 + showmenu maps + ] ] newmenu singleplayer