mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Forced text is now handled correctly. It's now possible to interact with the video screen in the elder's cave
svn-id: r27410
This commit is contained in:
parent
3b78d79ec0
commit
4f8f854ee6
@ -41,7 +41,7 @@ namespace Saga {
|
||||
class HitZone;
|
||||
|
||||
|
||||
//#define ACTOR_DEBUG //only for actor pathfinding debug!
|
||||
// #define ACTOR_DEBUG 1 //only for actor pathfinding debug!
|
||||
|
||||
#define ACTOR_BARRIERS_MAX 16
|
||||
|
||||
@ -97,7 +97,8 @@ enum ActorActions {
|
||||
enum SpeechFlags {
|
||||
kSpeakNoAnimate = 1,
|
||||
kSpeakAsync = 2,
|
||||
kSpeakSlow = 4
|
||||
kSpeakSlow = 4,
|
||||
kSpeakForceText = 8
|
||||
};
|
||||
|
||||
enum ActorFrameTypes {
|
||||
@ -592,6 +593,10 @@ public:
|
||||
return _activeSpeech.stringsCount > 0;
|
||||
}
|
||||
|
||||
int isForcedTextShown() {
|
||||
return _activeSpeech.speechFlags & kSpeakForceText;
|
||||
}
|
||||
|
||||
void saveState(Common::OutSaveFile *out);
|
||||
void loadState(Common::InSaveFile *in);
|
||||
|
||||
|
@ -289,8 +289,8 @@ int SagaEngine::go() {
|
||||
msec = MAX_TIME_DELTA;
|
||||
}
|
||||
|
||||
// Since Puzzle is actorless, we do it here
|
||||
if (_puzzle->isActive()) {
|
||||
// Since Puzzle and forced text are actorless, we do them here
|
||||
if (_puzzle->isActive() || _actor->isForcedTextShown()) {
|
||||
_actor->handleSpeech(msec);
|
||||
} else if (!_scene->isInIntro()) {
|
||||
if (_interface->getMode() == kPanelMain ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user