diff options
author | Nicola Mettifogo | 2007-07-03 19:44:31 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-07-03 19:44:31 +0000 |
commit | 87594aae7343a3540eb744bc49ec0ee390f7b27f (patch) | |
tree | 80718cf5026838f22d88f1a0f1e42a4b6ee38cab /engines/parallaction/zone.h | |
parent | e8e2ddc8e6abdb5a63faadf5430ec2841ed18f39 (diff) | |
download | scummvm-rg350-87594aae7343a3540eb744bc49ec0ee390f7b27f.tar.gz scummvm-rg350-87594aae7343a3540eb744bc49ec0ee390f7b27f.tar.bz2 scummvm-rg350-87594aae7343a3540eb744bc49ec0ee390f7b27f.zip |
Changed Dialogue from a typedef for an implicit n-tree of Questions to a plain-vanilla array. This greatly simplify management and doesn't require obscure flagging of tree leaves.
svn-id: r27887
Diffstat (limited to 'engines/parallaction/zone.h')
-rw-r--r-- | engines/parallaction/zone.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/parallaction/zone.h b/engines/parallaction/zone.h index 9cc0fd6767..634a1364aa 100644 --- a/engines/parallaction/zone.h +++ b/engines/parallaction/zone.h @@ -68,7 +68,8 @@ enum ZoneFlags { }; -#define NUM_ANSWERS 5 +#define NUM_QUESTIONS 20 +#define NUM_ANSWERS 5 struct Command; struct Question; @@ -97,7 +98,9 @@ struct Question { ~Question(); }; -typedef Question Dialogue; +struct Dialogue { + Question *_questions[NUM_QUESTIONS]; +}; struct GetData { // size = 24 uint32 _icon; |