Skip to content

Commit

Permalink
MORTEVIELLE: Remove second parameter of show()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 21, 2013
1 parent 972cdf0 commit a710bb5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions engines/mortevielle/actions.cpp
Expand Up @@ -702,10 +702,10 @@ void MortevielleEngine::fctPlace() {
_soundManager.startSpeech(6, -9, 1);

// Do you want to enter the hidden passage?
int answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO));
if (answer == 1) {
Common::String alertTxt = getString(582);
_dialogManager.show(alertTxt, 1);
_dialogManager.show(alertTxt);

bool enterPassageFl = _dialogManager.showKnowledgeCheck();
_mouse.hideMouse();
Expand All @@ -732,7 +732,7 @@ void MortevielleEngine::fctPlace() {
displayAnimFrame(1, 2);
displayAnimFrame(1, 1);
alertTxt = getString(577);
_dialogManager.show(alertTxt, 1);
_dialogManager.show(alertTxt);
displayAnimFrame(2, 1);
_crep = 166;
}
Expand Down Expand Up @@ -801,7 +801,7 @@ void MortevielleEngine::fctTurn() {
if ((_coreVar._currPlace == ATTIC) && (_coreVar._atticRodHoleObjectId == 159) && (_coreVar._atticBallHoleObjectId == 141)) {
handleDescriptionText(2, 167);
_soundManager.startSpeech(7, 9, 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO));
if (answer == 1)
_endGame = true;
else
Expand All @@ -811,7 +811,7 @@ void MortevielleEngine::fctTurn() {
handleDescriptionText(2, 175);
clearVerbBar();
_soundManager.startSpeech(6, -9, 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO));
if (answer == 1) {
_coreVar._currPlace = CRYPT;
prepareDisplayText();
Expand Down Expand Up @@ -914,7 +914,7 @@ void MortevielleEngine::fctKnock() {
displayTextInVerbBar(getEngineString(S_HIT));

if (_coreVar._currPlace == LANDING) {
_dialogManager.show(getEngineString(S_BEFORE_USE_DEP_MENU), 1);
_dialogManager.show(getEngineString(S_BEFORE_USE_DEP_MENU));
return;
}

Expand Down Expand Up @@ -1223,7 +1223,7 @@ void MortevielleEngine::fctSleep() {
if (hour > 23)
hour = 0;
prepareRoom();
answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
answer = _dialogManager.show(getEngineString(S_YES_NO));
_anyone = false;
} while (answer != 1);
_crep = 998;
Expand Down Expand Up @@ -1313,7 +1313,7 @@ void MortevielleEngine::fctWait() {
return;
}
handleDescriptionText(2, 102);
answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
answer = _dialogManager.show(getEngineString(S_YES_NO));
} while (answer != 2);
_crep = 998;
if (!_anyone)
Expand Down Expand Up @@ -1629,7 +1629,7 @@ void MortevielleEngine::askRestart() {
_day = 0;
handleDescriptionText(2, 180);

int answer = _dialogManager.show(getEngineString(S_YES_NO), 1);
int answer = _dialogManager.show(getEngineString(S_YES_NO));
_quitGame = (answer != 1);
}

Expand Down
8 changes: 4 additions & 4 deletions engines/mortevielle/dialogs.cpp
Expand Up @@ -39,7 +39,7 @@ namespace Mortevielle {
* Alert function - Show
* @remarks Originally called 'do_alert'
*/
int DialogManager::show(const Common::String &msg, int n) {
int DialogManager::show(const Common::String &msg) {
// Make a copy of the current screen surface for later restore
_vm->_backgroundSurface.copyFrom(_vm->_screenSurface);

Expand Down Expand Up @@ -164,10 +164,10 @@ int DialogManager::show(const Common::String &msg, int n) {
_vm->setMouseClick(false);
_vm->_mouse.hideMouse();
if (!test3) {
id = n;
setPosition(n, coldep, esp);
id = 1;
setPosition(1, coldep, esp);
Common::String tmp4(" ");
tmp4 += buttonStr[n];
tmp4 += buttonStr[1];
tmp4 += " ";
_vm->_screenSurface.drawString(tmp4, 1);
}
Expand Down
2 changes: 1 addition & 1 deletion engines/mortevielle/dialogs.h
Expand Up @@ -52,7 +52,7 @@ class DialogManager {
void setButtonText(Common::String c, int coldep, int nbcase, Common::String *str, int esp);
public:
void setParent(MortevielleEngine *vm);
int show(const Common::String &msg, int n);
int show(const Common::String &msg);
void drawF3F8();
void checkForF8(int SpeechNum, bool drawFrame2Fl);
int waitForF3F8();
Expand Down
6 changes: 3 additions & 3 deletions engines/mortevielle/utils.cpp
Expand Up @@ -290,7 +290,7 @@ void MortevielleEngine::handleAction() {
if (_menu._menuSelected && (_currMenu == MENU_LOAD))
_savegameManager.loadGame((_currAction & 15) - 1);
if (inkey == '\103') { /* F9 */
temps = _dialogManager.show(_hintPctMessage, 1);
temps = _dialogManager.show(_hintPctMessage);
return;
} else if (inkey == '\77') {
if ((_menuOpcode != OPCODE_NONE) && ((_currMenu == MENU_ACTION) || (_currMenu == MENU_SELF))) {
Expand Down Expand Up @@ -1712,7 +1712,7 @@ int MortevielleEngine::getRandomNumber(int minval, int maxval) {
* @remarks Originally called 'aldepl'
*/
void MortevielleEngine::showMoveMenuAlert() {
_dialogManager.show(getEngineString(S_USE_DEP_MENU), 1);
_dialogManager.show(getEngineString(S_USE_DEP_MENU));
}

/**
Expand Down Expand Up @@ -3190,7 +3190,7 @@ void MortevielleEngine::displayStatusArrow() {
} while (!(qust || inRect || _anyone));

if (qust && (touch == '\103'))
_dialogManager.show(_hintPctMessage, 1);
_dialogManager.show(_hintPctMessage);
} while (!((touch == '\73') || ((touch == '\104') && (_x != 0) && (_y != 0)) || (_anyone) || (inRect)));

if (touch == '\73')
Expand Down

0 comments on commit a710bb5

Please sign in to comment.