summaryrefslogtreecommitdiff
path: root/src/strife/f_finale.c
diff options
context:
space:
mode:
authorJames Haley2010-09-13 03:27:49 +0000
committerJames Haley2010-09-13 03:27:49 +0000
commit7298899199a5bb750c66c4b52227e9e979f8d260 (patch)
tree497ac394220584a4ee38cd7be38b31bf40cdd02e /src/strife/f_finale.c
parent2016bb4f4b3c00b6d037727d0a5f4e7e6847fc0b (diff)
downloadchocolate-doom-7298899199a5bb750c66c4b52227e9e979f8d260.tar.gz
chocolate-doom-7298899199a5bb750c66c4b52227e9e979f8d260.tar.bz2
chocolate-doom-7298899199a5bb750c66c4b52227e9e979f8d260.zip
Started finale slideshow stuff, added/tweaked quest flags, and did some
elimination of tabs in altered functions. Also refactored a few strings to use DEH_String. Subversion-branch: /branches/strife-branch Subversion-revision: 2082
Diffstat (limited to 'src/strife/f_finale.c')
-rw-r--r--src/strife/f_finale.c41
1 files changed, 35 insertions, 6 deletions
diff --git a/src/strife/f_finale.c b/src/strife/f_finale.c
index 68c07af1..e2294847 100644
--- a/src/strife/f_finale.c
+++ b/src/strife/f_finale.c
@@ -62,6 +62,11 @@ finalestage_t finalestage;
unsigned int finalecount;
+// haleyjd 09/12/10: [STRIFE] Slideshow variables
+char *slideshow_panel;
+int slideshow_tics;
+int slideshow_state;
+
#define TEXTSPEED 3
#define TEXTWAIT 250
@@ -115,21 +120,45 @@ void F_CastDrawer (void);
//
void F_StartFinale (void)
{
+ patch_t *panel;
size_t i;
gameaction = ga_nothing;
gamestate = GS_FINALE;
viewactive = false;
automapactive = false;
+ wipegamestate = -1; // [STRIFE]
- if (gamemission == doom)
- {
- S_ChangeMusic(mus_logo, true); // villsa [STRIFE] TODO - fix music
- }
- else
+ // [STRIFE] Setup the slide show
+ slideshow_panel = DEH_String("PANEL0");
+
+ panel = (patch_t *)W_CacheLumpName(slideshow_panel, PU_CACHE);
+ V_DrawPatch(0, 0, panel);
+
+ // haleyjd: NOT FINISHED
+#if 0
+ switch(gamemap)
{
- S_ChangeMusic(mus_logo, true); // villsa [STRIFE] TODO - fix music
+ case 3:
+ slideshow_state = 1;
+ break;
+ case 9:
+ slideshow_state = -99;
+ break;
+ case 10:
+ slideshow_state = 5;
+ break;
+ case 29:
+ if(!netgame)
+ {
+ if(players[0].health < 0)
+ slideshow_state = 17;
+ else
+ {
+ }
+ }
}
+#endif
// Find the right screen and set the text and background