Skip to content

Commit

Permalink
MORTEVIELLE: Fix invert in Dep menu. Still a bit short due to Invento…
Browse files Browse the repository at this point in the history
…ry width too small. Also add some ingame same/load slots
  • Loading branch information
Strangerke committed Apr 6, 2012
1 parent edbeb90 commit 5b4327a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions engines/mortevielle/menu.cpp
Expand Up @@ -43,8 +43,8 @@ const byte _menuConstants[8][4] = {
{43, 25, 11, 5},
{55, 37, 5, 8},
{64, 13, 11, 2},
{62, 22, 13, 4},
{62, 25, 13, 5}
{62, 42, 13, 9},
{62, 46, 13, 10}
};

/**
Expand All @@ -56,7 +56,7 @@ void Menu::setText(int menuId, Common::String name) {
byte l = lo(menuId);
Common::String s = name;

while (s.size() < 30)
while (s.size() < 20)
s += ' ';

switch (h) {
Expand Down Expand Up @@ -313,8 +313,6 @@ void Menu::menuDown(int ii) {
int cx, xcc, xco;
int lignNumb;

/* debug('menuDown'); */

// Make a copy of the current screen surface for later restore
g_vm->_backgroundSurface.copyFrom(g_vm->_screenSurface);

Expand Down
6 changes: 3 additions & 3 deletions engines/mortevielle/mortevielle.cpp
Expand Up @@ -636,11 +636,11 @@ void MortevielleEngine::handleAction() {
return;
}
if (_menu._menuSelected && (_msg[3] == MENU_SAVE)) {
Common::String saveName = Common::String::format("Savegame #%d", _msg[4] & 7);
_savegameManager.saveGame(_msg[4] & 7, saveName);
Common::String saveName = Common::String::format("Savegame #%d", _msg[4] & 15);
_savegameManager.saveGame(_msg[4] & 15, saveName);
}
if (_menu._menuSelected && (_msg[3] == MENU_LOAD))
_savegameManager.loadGame((_msg[4] & 7) - 1);
_savegameManager.loadGame((_msg[4] & 15) - 1);
if (inkey == '\103') { /* F9 */
temps = Alert::show(_hintPctMessage, 1);
return;
Expand Down

0 comments on commit 5b4327a

Please sign in to comment.