diff options
author | Johannes Schickel | 2007-12-24 02:42:58 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-12-24 02:42:58 +0000 |
commit | def62fef5e819efe4ff9400eb061e87f6a059dc0 (patch) | |
tree | 3da1a184f02617c9049b29d5c0a2ec66ff042667 /engines/kyra | |
parent | 2d9d0f1b1ff9c76aedb587b89bc4e87d81f87ae2 (diff) | |
download | scummvm-rg350-def62fef5e819efe4ff9400eb061e87f6a059dc0.tar.gz scummvm-rg350-def62fef5e819efe4ff9400eb061e87f6a059dc0.tar.bz2 scummvm-rg350-def62fef5e819efe4ff9400eb061e87f6a059dc0.zip |
MenuItem member renaming.
svn-id: r29969
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/gui_v1.cpp | 10 | ||||
-rw-r--r-- | engines/kyra/kyra_v1.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/kyra/gui_v1.cpp b/engines/kyra/gui_v1.cpp index 0d9d8224cd..b4bc8e8cf0 100644 --- a/engines/kyra/gui_v1.cpp +++ b/engines/kyra/gui_v1.cpp @@ -669,7 +669,7 @@ void KyraEngine_v1::initMenu(Menu &menu) { _menuButtonData[i].width = menu.item[i].width - 1; _menuButtonData[i].height = menu.item[i].height - 1; _menuButtonData[i].buttonCallback = menu.item[i].callback; - _menuButtonData[i].specialValue = menu.item[i].field_1b; + _menuButtonData[i].specialValue = menu.item[i].saveSlot; //_menuButtonData[i].field_6 = menu.item[i].field_25; //_menuButtonData[i].field_8 = 0; @@ -878,7 +878,7 @@ void KyraEngine_v1::setupSavegames(Menu &menu, int num) { if (_savegameOffset == 0) { menu.item[0].itemString = _specialSavegameString; menu.item[0].enabled = 1; - menu.item[0].field_1b = 0; + menu.item[0].saveSlot = 0; startSlot = 1; } else { startSlot = 0; @@ -890,12 +890,12 @@ void KyraEngine_v1::setupSavegames(Menu &menu, int num) { in->read(savenames[i], 31); menu.item[i].itemString = savenames[i]; menu.item[i].enabled = 1; - menu.item[i].field_1b = i + _savegameOffset; + menu.item[i].saveSlot = i + _savegameOffset; delete in; } else { menu.item[i].enabled = 0; //menu.item[i].itemString = ""; - //menu.item[i].field_1b = -1; + //menu.item[i].saveSlot = -1; } } } @@ -1044,7 +1044,7 @@ int KyraEngine_v1::gui_saveGame(Button *button) { _savegameName[0] = 0; } else { for (int i = 0; i < 5; i++) { - if (_menu[2].item[i].field_1b == _gameToLoad) { + if (_menu[2].item[i].saveSlot == _gameToLoad) { strncpy(_savegameName, _menu[2].item[i].itemString, 31); break; } diff --git a/engines/kyra/kyra_v1.h b/engines/kyra/kyra_v1.h index 734d81505e..f4ff4a4daf 100644 --- a/engines/kyra/kyra_v1.h +++ b/engines/kyra/kyra_v1.h @@ -150,7 +150,7 @@ struct MenuItem { uint8 color1; uint8 color2; int (KyraEngine_v1::*callback)(Button*); - int16 field_1b; + int16 saveSlot; const char *labelString; uint16 labelX; uint8 labelY; |