diff options
author | Simon Howard | 2010-02-08 21:14:30 +0000 |
---|---|---|
committer | Simon Howard | 2010-02-08 21:14:30 +0000 |
commit | 56412813c70ba44a6f6a74cee5bf460ca6a31402 (patch) | |
tree | 0770e771e2a03defd6668531fe8125afa4a526b8 /src/heretic/ct_chat.c | |
parent | 08e0b1471b357ae22a632d1752919d973db8983e (diff) | |
download | chocolate-doom-56412813c70ba44a6f6a74cee5bf460ca6a31402.tar.gz chocolate-doom-56412813c70ba44a6f6a74cee5bf460ca6a31402.tar.bz2 chocolate-doom-56412813c70ba44a6f6a74cee5bf460ca6a31402.zip |
Add Heretic implementation of HHE "Text" section, add DEH_String()
around appropriate strings to allow string replacements.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1867
Diffstat (limited to 'src/heretic/ct_chat.c')
-rw-r--r-- | src/heretic/ct_chat.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/heretic/ct_chat.c b/src/heretic/ct_chat.c index 75fa6035..958d1fff 100644 --- a/src/heretic/ct_chat.c +++ b/src/heretic/ct_chat.c @@ -29,6 +29,7 @@ #include <ctype.h> #include "doomdef.h" #include "doomkeys.h" +#include "deh_str.h" #include "p_local.h" #include "s_sound.h" #include "v_video.h" @@ -115,7 +116,7 @@ void CT_Init(void) memset(plr_lastmsg[i], 0, MESSAGESIZE); memset(chat_msg[i], 0, MESSAGESIZE); } - FontABaseLump = W_GetNumForName("FONTA_S") + 1; + FontABaseLump = W_GetNumForName(DEH_String("FONTA_S")) + 1; return; } @@ -300,7 +301,7 @@ void CT_Ticker(void) CT_AddChar(i, 0); // set the end of message character if (numplayers > 2) { - strcpy(plr_lastmsg[i], CT_FromPlrText[i]); + strcpy(plr_lastmsg[i], DEH_String(CT_FromPlrText[i])); strcat(plr_lastmsg[i], chat_msg[i]); } else @@ -320,13 +321,13 @@ void CT_Ticker(void) if (numplayers > 1) { P_SetMessage(&players[consoleplayer], - "-MESSAGE SENT-", true); + DEH_String("-MESSAGE SENT-"), true); S_StartSound(NULL, sfx_chat); } else { P_SetMessage(&players[consoleplayer], - "THERE ARE NO OTHER PLAYERS IN THE GAME!", + DEH_String("THERE ARE NO OTHER PLAYERS IN THE GAME!"), true); S_StartSound(NULL, sfx_chat); } @@ -376,7 +377,7 @@ void CT_Drawer(void) x += patch->width; } } - V_DrawPatch(x, 10, W_CacheLumpName("FONTA59", PU_CACHE)); + V_DrawPatch(x, 10, W_CacheLumpName(DEH_String("FONTA59"), PU_CACHE)); BorderTopRefresh = true; UpdateState |= I_MESSAGES; } |