diff options
author | Vincent Hamm | 2007-10-29 20:56:19 +0000 |
---|---|---|
committer | Vincent Hamm | 2007-10-29 20:56:19 +0000 |
commit | 234024f19ed075522fcdd7e9754e86350f0ec294 (patch) | |
tree | d1568d1e3bea0b2c9b7b15fad04e27e14b04eda3 /engines/cruise/menu.cpp | |
parent | 1fcbeda5fe8e7cda4397f27917aa5b5feb75f09a (diff) | |
download | scummvm-rg350-234024f19ed075522fcdd7e9754e86350f0ec294.tar.gz scummvm-rg350-234024f19ed075522fcdd7e9754e86350f0ec294.tar.bz2 scummvm-rg350-234024f19ed075522fcdd7e9754e86350f0ec294.zip |
Add more object menu controls
svn-id: r29312
Diffstat (limited to 'engines/cruise/menu.cpp')
-rw-r--r-- | engines/cruise/menu.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/cruise/menu.cpp b/engines/cruise/menu.cpp index 6a3fc4efea..ffbf287978 100644 --- a/engines/cruise/menu.cpp +++ b/engines/cruise/menu.cpp @@ -46,8 +46,7 @@ menuStruct *createMenu(int X, int Y, const char *menuName) { } // TODO: rewrite to remove the goto -void addSelectableMenuEntry(int param0, int param1, menuStruct *pMenu, - int param2, int color, const char *menuText) { +void addSelectableMenuEntry(int ovlIdx, int headerIdx, menuStruct *pMenu, int param2, int color, const char *menuText) { menuElementStruct *di; menuElementStruct *var_6; menuElementStruct *pNewElement; @@ -70,8 +69,8 @@ void addSelectableMenuEntry(int param0, int param1, menuStruct *pMenu, ASSERT(pSubStruct); pSubStruct->pNext = NULL; - pSubStruct->var2 = param0; - pSubStruct->var4 = param1; + pSubStruct->ovlIdx = ovlIdx; + pSubStruct->header = headerIdx; pSubStructCurrent = pNewElement->ptrSub; @@ -129,8 +128,8 @@ void addSelectableMenuEntry(int param0, int param1, menuStruct *pMenu, pNewElement->ptrSub = pSubStruct; pSubStruct->pNext = NULL; - pSubStruct->var2 = param0; - pSubStruct->var4 = param1; + pSubStruct->ovlIdx = ovlIdx; + pSubStruct->header = headerIdx; pMenu->numElements++; } |