summaryrefslogtreecommitdiff
path: root/src/strife/p_dialog.h
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-08 05:24:40 +0000
committerSamuel Villareal2010-09-08 05:24:40 +0000
commit691f1b3acbe3e9f847b7ded5aac98425fea054f0 (patch)
tree34a5f8cb24ae70973e6bddbe5828352af86721b6 /src/strife/p_dialog.h
parentbdcfa27ef342b4e6b92be1481da8497a0d5cadb7 (diff)
downloadchocolate-doom-691f1b3acbe3e9f847b7ded5aac98425fea054f0.tar.gz
chocolate-doom-691f1b3acbe3e9f847b7ded5aac98425fea054f0.tar.bz2
chocolate-doom-691f1b3acbe3e9f847b7ded5aac98425fea054f0.zip
+ Converting needamountx and needitemx to arrays in choice struct
+ Dialog drawer updated to draw choices Subversion-branch: /branches/strife-branch Subversion-revision: 2041
Diffstat (limited to 'src/strife/p_dialog.h')
-rw-r--r--src/strife/p_dialog.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/strife/p_dialog.h b/src/strife/p_dialog.h
index e544d19c..638d79e6 100644
--- a/src/strife/p_dialog.h
+++ b/src/strife/p_dialog.h
@@ -41,18 +41,14 @@
typedef struct mapdlgchoice_s
{
- int giveitem; // item given when successful
- int needitem1; // first item needed for success
- int needitem2; // second item needed for success, if any
- int needitem3; // third item needed for success, if any
- int needamount1; // amount of first item needed
- int needamount2; // amount of second item needed
- int needamount3; // amount of third item needed
- char text[MDLG_CHOICELEN]; // normal text
- char textok[MDLG_MSGLEN]; // message given on success
- int next; // next dialog?
- int objective; // ???
- char textno[MDLG_MSGLEN]; // message given on failure
+ int giveitem; // item given when successful
+ int needitems[MDLG_MAXITEMS]; // item needed for success
+ int needamounts[MDLG_MAXITEMS]; // amount of items needed
+ char text[MDLG_CHOICELEN]; // normal text
+ char textok[MDLG_MSGLEN]; // message given on success
+ int next; // next dialog?
+ int objective; // ???
+ char textno[MDLG_MSGLEN]; // message given on failure
} mapdlgchoice_t;
typedef struct mapdialog_s