[Super-tux-commit] supertux/lib/gui menu.cpp,1.11,1.12
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-08-18 10:38:31
|
Update of /cvsroot/super-tux/supertux/lib/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6037/lib/gui Modified Files: menu.cpp Log Message: Just got rid of the damn reference. Can anyone fix this hack with horizontal lines, titles...? Maybe we should just replace this code by the old one. Index: menu.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/gui/menu.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- menu.cpp 7 Aug 2004 11:34:41 -0000 1.11 +++ menu.cpp 18 Aug 2004 10:38:10 -0000 1.12 @@ -462,10 +462,9 @@ // FIXME: wtf?! having a hack to avoid horizontal lines... // Elegant solution would be to check for horizontal lines, right // when it was asked to move menu up and down - MenuItem& new_item = item[active_item]; - if(new_item.kind == MN_DEACTIVE || - new_item.kind == MN_LABEL || - new_item.kind == MN_HL) + if(item[active_item].kind == MN_DEACTIVE || + item[active_item].kind == MN_LABEL || + item[active_item].kind == MN_HL) { // Skip the horzontal line item if (menuaction != MENU_ACTION_UP && menuaction != MENU_ACTION_DOWN) |