diff options
author | Simon Howard | 2008-09-25 19:31:14 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-25 19:31:14 +0000 |
commit | adc6a405ba0d2b77cf227184044186a84a971161 (patch) | |
tree | 3c1332cc038feb3d9d6f6e0d002b827d5349398f /src/heretic | |
parent | 80ef754afea340ed4f06c780b3a025f23538db04 (diff) | |
download | chocolate-doom-adc6a405ba0d2b77cf227184044186a84a971161.tar.gz chocolate-doom-adc6a405ba0d2b77cf227184044186a84a971161.tar.bz2 chocolate-doom-adc6a405ba0d2b77cf227184044186a84a971161.zip |
Make ENDOOM screen work on Heretic.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1284
Diffstat (limited to 'src/heretic')
-rw-r--r-- | src/heretic/d_main.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index 94d51851..54d51238 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -60,6 +60,8 @@ boolean advancedemo; FILE *debugfile; +static int show_endoom = 1; + void D_CheckNetGame(void); void D_ProcessEvents(void); void G_BuildTiccmd(ticcmd_t * cmd); @@ -746,6 +748,7 @@ void D_BindVariables(void) M_BindVariable("music_volume", &snd_MusicVolume); M_BindVariable("screenblocks", &screenblocks); M_BindVariable("snd_channels", &snd_Channels); + M_BindVariable("show_endoom", &show_endoom); for (i=0; i<10; ++i) { @@ -756,6 +759,26 @@ void D_BindVariables(void) } } +// +// Called at exit to display the ENDOOM screen (ENDTEXT in Heretic) +// + +static void D_Endoom(void) +{ + byte *endoom_data; + + // Disable ENDOOM? + + if (!show_endoom) + { + return; + } + + endoom_data = W_CacheLumpName("ENDTEXT", PU_STATIC); + + I_Endoom(endoom_data); +} + //--------------------------------------------------------------------------- // // PROC D_DoomMain @@ -771,7 +794,8 @@ void D_DoomMain(void) char file[256]; FILE *fp; boolean devMap; - //char *screen; + + I_AtExit(D_Endoom, false); M_FindResponseFile(); setbuf(stdout, NULL); |