diff options
author | Oystein Eftevaag | 2006-02-09 07:37:19 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-02-09 07:37:19 +0000 |
commit | 56d918edbe5feecb4c0239a8927adb60602ae154 (patch) | |
tree | d1e167b1b890d3718d60c734149518f9d75a3907 /kyra/gui.cpp | |
parent | 91222cc6acacc2a399ac982eae61d5c0f204bbb9 (diff) | |
download | scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.tar.gz scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.tar.bz2 scummvm-rg350-56d918edbe5feecb4c0239a8927adb60602ae154.zip |
Moved tons of code out of kyra.cpp, and removed three redundant functions (two stubs
to sound functions, and one duplicate function (one with 'posion' in the name, one with 'poison').
The bulk of the moved code is moved to the newly created files items.cpp, scene.cpp and
sequences.cpp
svn-id: r20437
Diffstat (limited to 'kyra/gui.cpp')
-rw-r--r-- | kyra/gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kyra/gui.cpp b/kyra/gui.cpp index 668e33459d..990b91cf6b 100644 --- a/kyra/gui.cpp +++ b/kyra/gui.cpp @@ -29,6 +29,14 @@ #include "common/system.h" namespace Kyra { + +void KyraEngine::initMainButtonList() { + _buttonList = &_buttonData[0]; + for (int i = 0; _buttonDataListPtr[i]; ++i) { + _buttonList = initButton(_buttonList, _buttonDataListPtr[i]); + } +} + Button *KyraEngine::initButton(Button *list, Button *newButton) { if (!newButton) return list; |