mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
SCUMM: Clean up resetSentence
This commit is contained in:
parent
7da29858e7
commit
3f5aaa0ca5
@ -873,7 +873,7 @@ void ScummEngine_v2::o2_doSentence() {
|
||||
return;
|
||||
}
|
||||
if (a == 0xFB) {
|
||||
resetSentence(false);
|
||||
resetSentence();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1411,7 +1411,7 @@ void ScummEngine_v2::o2_loadRoomWithEgo() {
|
||||
|
||||
_fullRedraw = true;
|
||||
|
||||
resetSentence(false);
|
||||
resetSentence();
|
||||
|
||||
if (x >= 0 && y >= 0) {
|
||||
a->startWalkActor(x, y, -1);
|
||||
@ -1492,7 +1492,7 @@ void ScummEngine_v2::o2_cutscene() {
|
||||
|
||||
_sentenceNum = 0;
|
||||
stopScript(SENTENCE_SCRIPT);
|
||||
resetSentence(false);
|
||||
resetSentence();
|
||||
|
||||
vm.cutScenePtr[0] = 0;
|
||||
}
|
||||
@ -1640,7 +1640,7 @@ void ScummEngine_v2::o2_switchCostumeSet() {
|
||||
o2_dummy();
|
||||
}
|
||||
|
||||
void ScummEngine_v2::resetSentence(bool walking) {
|
||||
void ScummEngine_v2::resetSentence() {
|
||||
VAR(VAR_SENTENCE_VERB) = VAR(VAR_BACKUP_VERB);
|
||||
VAR(VAR_SENTENCE_OBJECT1) = 0;
|
||||
VAR(VAR_SENTENCE_OBJECT2) = 0;
|
||||
|
@ -87,7 +87,7 @@ protected:
|
||||
void clearStateCommon(byte type);
|
||||
void stopScriptCommon(int script);
|
||||
|
||||
virtual void resetSentence(bool walking);
|
||||
void resetSentence();
|
||||
void setUserState(byte state);
|
||||
|
||||
virtual void handleMouseOver(bool updateInventory);
|
||||
|
Loading…
Reference in New Issue
Block a user