diff options
author | Andrew Kurushin | 2004-12-18 21:38:56 +0000 |
---|---|---|
committer | Andrew Kurushin | 2004-12-18 21:38:56 +0000 |
commit | 34dd84f339851e06ac8f389ba7a9621890a84bf1 (patch) | |
tree | c514b3a69f9d9e967412db71f8fe722d577517a4 /saga/actor.h | |
parent | 62224e135b8e788564ef49676b790ca651b95fcd (diff) | |
download | scummvm-rg350-34dd84f339851e06ac8f389ba7a9621890a84bf1.tar.gz scummvm-rg350-34dd84f339851e06ac8f389ba7a9621890a84bf1.tar.bz2 scummvm-rg350-34dd84f339851e06ac8f389ba7a9621890a84bf1.zip |
now actors will not stuck in the middle of dialog
svn-id: r16123
Diffstat (limited to 'saga/actor.h')
-rw-r--r-- | saga/actor.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/saga/actor.h b/saga/actor.h index 3d48ff4b85..545a130a75 100644 --- a/saga/actor.h +++ b/saga/actor.h @@ -148,29 +148,27 @@ struct ACTORDIALOGUE { typedef Common::List<ACTORDIALOGUE> ActorDialogList; -struct SPEAKINTENT { - int si_init; - uint16 si_flags; - int si_last_action; - ActorDialogList si_diaglist; /* Actor dialogue list */ - SPEAKINTENT() { - si_init = 0; - si_flags = 0; - si_last_action = 0; - } -}; struct ACTORINTENT { int a_itype; uint16 a_iflags; int a_idone; - SPEAKINTENT speakIntent; + + int si_init; + uint16 si_flags; + int si_last_action; + ActorDialogList si_diaglist; /* Actor dialogue list */ + WALKINTENT walkIntent; ACTORINTENT() { a_itype = 0; a_iflags = 0; a_idone = 0; + + si_init = 0; + si_flags = 0; + si_last_action = 0; } }; @@ -295,7 +293,7 @@ public: private: int handleWalkIntent(ActorData *actor, WALKINTENT *a_walk_int, int *complete_p, int msec); - int handleSpeakIntent(ActorData *actor, SPEAKINTENT *a_speakint, int *complete_p, int msec); + int handleSpeakIntent(ActorData *actor, ACTORINTENT *a_aintent, int *complete_p, int msec); int setPathNode(WALKINTENT *walk_int, Point *src_pt, Point *dst_pt, SEMAPHORE *sem); ActorData *getActor(uint16 actorId); |