diff options
author | Torbjörn Andersson | 2005-04-19 07:44:01 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-04-19 07:44:01 +0000 |
commit | 90886d950642d155f44777e8cfe0ace6e277ac4a (patch) | |
tree | 50ab3bf75c0d8dc003f1d6b2bf44d956bc3f62da /saga | |
parent | e5f66f38b8a06366cbc64d693e2f4dd74e00a8f5 (diff) | |
download | scummvm-rg350-90886d950642d155f44777e8cfe0ace6e277ac4a.tar.gz scummvm-rg350-90886d950642d155f44777e8cfe0ace6e277ac4a.tar.bz2 scummvm-rg350-90886d950642d155f44777e8cfe0ace6e277ac4a.zip |
Fixed warnings.
svn-id: r17682
Diffstat (limited to 'saga')
-rw-r--r-- | saga/game.cpp | 32 | ||||
-rw-r--r-- | saga/interface.cpp | 4 |
2 files changed, 16 insertions, 20 deletions
diff --git a/saga/game.cpp b/saga/game.cpp index 3e663bd22d..a28e9119b6 100644 --- a/saga/game.cpp +++ b/saga/game.cpp @@ -42,23 +42,23 @@ static int detectGame(const FSList &fslist, bool mode = false); // ITE section static PanelButton ITE_MainPanelButtons[] = { - {kPanelButtonVerb, 52, 4, 57, 10, kVerbWalkTo, 'w', 0, 1}, - {kPanelButtonVerb, 52, 15, 57, 10, kVerbLookAt, 'l', 2, 3}, - {kPanelButtonVerb, 52, 26, 57, 10, kVerbPickUp, 'p', 4, 5}, - {kPanelButtonVerb, 52, 37, 57, 10, kVerbTalkTo, 't', 0, 1}, - {kPanelButtonVerb, 110, 4, 56, 10, kVerbOpen, 'o', 6, 7}, - {kPanelButtonVerb, 110, 15, 56, 10, kVerbClose, 'c', 8, 9}, - {kPanelButtonVerb, 110, 26, 56, 10, kVerbUse, 'u', 10, 11}, - {kPanelButtonVerb, 110, 37, 56, 10, kVerbGive, 'g', 12, 13}, - {kPanelButtonArrow, 306, 6, 8, 5, 0, 'u', 0, 0}, - {kPanelButtonArrow, 306, 41, 8, 5, 1, 'd', 0, 0} + {kPanelButtonVerb, 52, 4, 57, 10, kVerbWalkTo, 'w', 0, 1, 0, 0}, + {kPanelButtonVerb, 52, 15, 57, 10, kVerbLookAt, 'l', 2, 3, 0, 0}, + {kPanelButtonVerb, 52, 26, 57, 10, kVerbPickUp, 'p', 4, 5, 0, 0}, + {kPanelButtonVerb, 52, 37, 57, 10, kVerbTalkTo, 't', 0, 1, 0, 0}, + {kPanelButtonVerb, 110, 4, 56, 10, kVerbOpen, 'o', 6, 7, 0, 0}, + {kPanelButtonVerb, 110, 15, 56, 10, kVerbClose, 'c', 8, 9, 0, 0}, + {kPanelButtonVerb, 110, 26, 56, 10, kVerbUse, 'u', 10, 11, 0, 0}, + {kPanelButtonVerb, 110, 37, 56, 10, kVerbGive, 'g', 12, 13, 0, 0}, + {kPanelButtonArrow, 306, 6, 8, 5, 0, 'u', 0, 0, 0, 0}, + {kPanelButtonArrow, 306, 41, 8, 5, 1, 'd', 0, 0, 0, 0} }; static PanelButton ITE_ConversePanelButtons[] = { - {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 0, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 0, '1', 0, 0}, - {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 1, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 1, '2', 0, 0}, - {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 2, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 2, '3', 0, 0}, - {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 3, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 3, '4', 0, 0}, + {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 0, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 0, '1', 0, 0, 0, 0}, + {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 1, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 1, '2', 0, 0, 0, 0}, + {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 2, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 2, '3', 0, 0, 0, 0}, + {kPanelButtonConverseText, 52, 6 + CONVERSE_TEXT_HEIGHT * 3, CONVERSE_MAX_TEXT_WIDTH, CONVERSE_TEXT_HEIGHT, 3, '4', 0, 0, 0, 0}, {kPanelButtonArrow, 257, 6, 9, 6, 0, 'u', 0, 4, 2, 0}, {kPanelButtonArrow, 257, 41, 9, 6, 1, 'd', 1, 5, 3, 0}, }; @@ -204,11 +204,11 @@ static GameSoundInfo ITECD_GameSound = { // IHNM section static PanelButton IHNM_MainPanelButtons[] = { - {kPanelButtonVerb, 0, 0, 0, 0, kVerbWalkTo, ' ', 0, 0}, //TODO + {kPanelButtonVerb, 0, 0, 0, 0, kVerbWalkTo, ' ', 0, 0, 0, 0}, //TODO }; static PanelButton IHNM_ConversePanelButtons[] = { - {kPanelButtonConverseText, 0, 0, 0, 0, 0, '1', 0, 0}, //TODO + {kPanelButtonConverseText, 0, 0, 0, 0, 0, '1', 0, 0, 0, 0}, //TODO }; static GameDisplayInfo IHNM_DisplayInfo = { diff --git a/saga/interface.cpp b/saga/interface.cpp index 01661262fb..3d5f779593 100644 --- a/saga/interface.cpp +++ b/saga/interface.cpp @@ -803,7 +803,6 @@ void Interface::converseDisplayTextLines(SURFACE *ds) { char bullet[2] = { (char)0xb7, 0 }; - Point point; Rect rect(8, CONVERSE_TEXT_LINES * CONVERSE_TEXT_HEIGHT); assert(_conversePanel.buttonsCount >= 6); @@ -898,7 +897,6 @@ PanelButton *Interface::converseHitTest(const Point& mousePoint) { } void Interface::handleConverseUpdate(const Point& mousePoint) { - Rect rect; bool changed; PanelButton *last = _conversePanel.currentButton; @@ -935,8 +933,6 @@ void Interface::handleConverseUpdate(const Point& mousePoint) { void Interface::handleConverseClick(const Point& mousePoint) { - Rect rect; - _conversePanel.currentButton = converseHitTest(mousePoint); if (_conversePanel.currentButton == NULL) { |