summaryrefslogtreecommitdiff
path: root/src/heretic/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2010-02-08 21:14:30 +0000
committerSimon Howard2010-02-08 21:14:30 +0000
commit56412813c70ba44a6f6a74cee5bf460ca6a31402 (patch)
tree0770e771e2a03defd6668531fe8125afa4a526b8 /src/heretic/g_game.c
parent08e0b1471b357ae22a632d1752919d973db8983e (diff)
downloadchocolate-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/g_game.c')
-rw-r--r--src/heretic/g_game.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c
index a256b63b..4d1e63c3 100644
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "doomdef.h"
#include "doomkeys.h"
+#include "deh_str.h"
#include "i_timer.h"
#include "i_system.h"
#include "m_controls.h"
@@ -862,11 +863,11 @@ void G_Ticker(void)
{
if (netgame)
{
- strcpy(savedescription, "NET GAME");
+ strcpy(savedescription, DEH_String("NET GAME"));
}
else
{
- strcpy(savedescription, "SAVE GAME");
+ strcpy(savedescription, DEH_String("SAVE GAME"));
}
}
savegameslot =
@@ -1320,7 +1321,7 @@ void G_DoLoadGame(void)
save_p = savebuffer + SAVESTRINGSIZE;
// Skip the description field
memset(vcheck, 0, sizeof(vcheck));
- sprintf(vcheck, "version %i", HERETIC_VERSION);
+ sprintf(vcheck, DEH_String("version %i"), HERETIC_VERSION);
if (strcmp((char *) save_p, vcheck) != 0)
{ // Bad version
return;
@@ -1449,11 +1450,11 @@ void G_InitNew(skill_t skill, int episode, int map)
// Set the sky map
if (episode > 5)
{
- skytexture = R_TextureNumForName("SKY1");
+ skytexture = R_TextureNumForName(DEH_String("SKY1"));
}
else
{
- skytexture = R_TextureNumForName(skyLumpNames[episode - 1]);
+ skytexture = R_TextureNumForName(DEH_String(skyLumpNames[episode - 1]));
}
//
@@ -1694,7 +1695,7 @@ void G_DoSaveGame(void)
SV_Open(name);
SV_Write(description, SAVESTRINGSIZE);
memset(verString, 0, sizeof(verString));
- sprintf(verString, "version %i", HERETIC_VERSION);
+ sprintf(verString, DEH_String("version %i"), HERETIC_VERSION);
SV_Write(verString, VERSIONSIZE);
SV_WriteByte(gameskill);
SV_WriteByte(gameepisode);