Only needed for V1 Maniac.

svn-id: r12431
This commit is contained in:
Travis Howell 2004-01-16 10:51:48 +00:00
parent ac5b7036c2
commit 9a8aac9e63
2 changed files with 4 additions and 4 deletions

View File

@ -781,17 +781,17 @@ void Actor::showActor() {
needRedraw = true;
}
// Maniac doesn't have a ScummVar for VAR_TALK_ACTOR, and just uses
// V1 Maniac doesn't have a ScummVar for VAR_TALK_ACTOR, and just uses
// an internal variable. Emulate this to prevent overwriting script vars...
int ScummEngine::talkingActor() {
if (_gameId == GID_MANIAC)
if (_gameId == GID_MANIAC && _version == 1)
return _V1_talkingActor;
else
return VAR(VAR_TALK_ACTOR);
};
void ScummEngine::talkingActor(int value) {
if (_gameId == GID_MANIAC)
if (_gameId == GID_MANIAC && _version == 1)
_V1_talkingActor = value;
else
VAR(VAR_TALK_ACTOR) = value;

View File

@ -778,7 +778,7 @@ public:
int16 _talkDelay;
void actorTalk();
void stopTalk();
int talkingActor(); // Wrapper around VAR_TALK_ACTOR for V1/V2 purposes
int talkingActor(); // Wrapper around VAR_TALK_ACTOR for V1 Maniac
void talkingActor(int variable);
// Costume class