From cbfd12e0f13ba75c10e3db4b99b7a9a56eb6d1f1 Mon Sep 17 00:00:00 2001 From: Christian Hammacher Date: Tue, 2 Jan 2007 13:17:33 +0000 Subject: [PATCH] fixed am49040 --- plugins/cmdmenu.sma | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/cmdmenu.sma b/plugins/cmdmenu.sma index db507849..04e8f789 100755 --- a/plugins/cmdmenu.sma +++ b/plugins/cmdmenu.sma @@ -159,8 +159,9 @@ displayCmdMenu(id, pos) if (start >= g_menuSelectNum[id]) start = pos = g_menuPosition[id] = 0 - - new len = format(menuBody, 511, g_coloredMenus ? "\y%L\R%d/%d^n\w^n" : "%L %d/%d^n^n", id, g_cmdMenuName[g_menuLayer[id]], pos + 1, (g_menuSelectNum[id] / 8 + ((g_menuSelectNum[id] % 8) ? 1 : 0))) + + new limit = (g_menuSelectNum[id] / 8 + ((g_menuSelectNum[id] % 8))) + new len = format(menuBody, 511, g_coloredMenus ? "\y%L\R%d/%d^n\w^n" : "%L %d/%d^n^n", id, g_cmdMenuName[g_menuLayer[id]], pos + 1, (limit == 0) ? 1 : limit) new end = start + 8 new keys = MENU_KEY_0