From 91348eee11aa095348642b6d7923ed0b94fd1a13 Mon Sep 17 00:00:00 2001 From: wens Date: Sun, 20 Sep 2009 09:15:02 +0000 Subject: This goes with the previous revision git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4868 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/menu.c') diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 462134ac..f7a5d55a 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -356,10 +356,11 @@ static const int mode_map[] = { static void domenu(int cmdmode, const char *cmdtitle, int cmd, const commands_t cmdtable[]) { - int lastcmdptr; + int lastcmdptr, adbannermode; int n, pos, total, i; int err; + adbannermode = cmdmode; assert(cmdmode < M_XMAX); cmdmode = mode_map[cmdmode]; @@ -367,7 +368,7 @@ domenu(int cmdmode, const char *cmdtitle, int cmd, const commands_t cmdtable[]) showtitle(cmdtitle, BBSName); - total = show_menu(cmdmode, cmdtable); + total = show_menu(adbannermode, cmdtable); show_status(); lastcmdptr = pos = 0; -- cgit v1.2.3