diff options
author | James Haley | 2013-03-02 06:35:52 +0000 |
---|---|---|
committer | James Haley | 2013-03-02 06:35:52 +0000 |
commit | 4e8d5dc97fe53f4ce110221c218f703834b3b9c2 (patch) | |
tree | 57c35c30fb64e062bbe37d8fc72fe80911b16c35 /src/strife/p_dialog.c | |
parent | 6a2255c70b882391931a7ef7ad9ada47a88b7c77 (diff) | |
download | chocolate-doom-4e8d5dc97fe53f4ce110221c218f703834b3b9c2.tar.gz chocolate-doom-4e8d5dc97fe53f4ce110221c218f703834b3b9c2.tar.bz2 chocolate-doom-4e8d5dc97fe53f4ce110221c218f703834b3b9c2.zip |
Complete support for v1.31 behaviors in addition to v1.2, including the
ability to save on multiple save slots.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2561
Diffstat (limited to 'src/strife/p_dialog.c')
-rw-r--r-- | src/strife/p_dialog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/strife/p_dialog.c b/src/strife/p_dialog.c index e1df1097..6e2044e2 100644 --- a/src/strife/p_dialog.c +++ b/src/strife/p_dialog.c @@ -33,6 +33,7 @@ #include "w_wad.h"
#include "deh_str.h"
#include "d_main.h"
+#include "d_mode.h"
#include "d_player.h"
#include "doomstat.h"
#include "m_random.h"
@@ -1229,6 +1230,10 @@ void P_DialogDoChoice(int choice) objlump = W_CacheLumpName(mission_objective, PU_CACHE);
strncpy(mission_objective, objlump, OBJECTIVE_LEN);
}
+ // haleyjd 20130301: v1.31 hack: if first char of message is a period,
+ // clear the player's message. Is this actually used anywhere?
+ if(gameversion == exe_strife_1_31 && message[0] == '.')
+ message = NULL;
dialogplayer->message = message;
}
|