mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
Only needed for V1 Maniac.
svn-id: r12431
This commit is contained in:
parent
ac5b7036c2
commit
9a8aac9e63
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user