Make titles.c more similar between D1X and D2X

This commit is contained in:
kreatordxx 2010-03-01 07:27:51 +00:00
parent 1dbd60254c
commit d7048c7664
6 changed files with 302 additions and 245 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20100301
--------
main/gameseq.c, main/inferno.c, main/state.c, main/titles.c, main/titles.h: Make titles.c more similar between D1X and D2X
20100227
--------
main/menu.c: Actually change to MIDI if Jukebox was selected

View file

@ -1262,7 +1262,7 @@ void StartNewLevel(int level_num)
load_custom_data(get_level_file(level_num));
if (!(Game_mode & GM_MULTI)) {
do_briefing_screens(level_num);
do_briefing_screens(Briefing_text_filename, level_num);
}
StartNewLevelSub(level_num, 1 );

View file

@ -310,20 +310,7 @@ int main(int argc, char *argv[])
Players[Player_num].callsign[0] = '\0';
if (!GameArg.SysNoTitles)
{
char publisher[16];
strcpy(publisher, "macplay.pcx"); // Mac Shareware
if (!PHYSFS_exists(publisher))
strcpy(publisher, "mplaycd.pcx"); // Mac Registered
if (!PHYSFS_exists(publisher))
strcpy(publisher, "iplogo1.pcx"); // PC. Only down here because it's lowres ;-)
show_title_screen( publisher, 1 );
show_title_screen( (((SWIDTH>=640&&SHEIGHT>=480) && cfexist("logoh.pcx"))?"logoh.pcx":"logo.pcx"), 1 );
show_title_screen( (((SWIDTH>=640&&SHEIGHT>=480) && cfexist("descenth.pcx"))?"descenth.pcx":"descent.pcx"), 1 );
}
show_titles();
key_flush();

View file

@ -720,7 +720,7 @@ int state_restore_all_sub(char *filename)
player_read_swap(&Players[Player_num], swap, fp);
saved_offset = PHYSFS_tell(fp);
PHYSFS_close( fp );
do_briefing_screens(next_level);
do_briefing_screens(Briefing_text_filename, next_level);
fp = PHYSFSX_openReadBuffered(filename);
PHYSFS_seek(fp, saved_offset);
StartNewLevelSub( next_level, 1);//use page_in_textures here to fix OGL texture precashing crash -MPM

View file

@ -11,6 +11,11 @@ AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* Routines to display title screens...
*
*/
#ifdef RCS
static char rcsid[] = "$Id: titles.c,v 1.2 2006/03/18 23:08:13 michaelstather Exp $";
@ -20,6 +25,10 @@ static char rcsid[] = "$Id: titles.c,v 1.2 2006/03/18 23:08:13 michaelstather Ex
#include <stdio.h>
#include <string.h>
#ifdef OGL
#include "ogl_init.h"
#endif
#include "pstypes.h"
#include "timer.h"
#include "key.h"
@ -38,25 +47,23 @@ static char rcsid[] = "$Id: titles.c,v 1.2 2006/03/18 23:08:13 michaelstather Ex
#include "multi.h"
#include "player.h"
#include "digi.h"
#include "compbit.h"
#include "text.h"
#include "kmatrix.h"
#include "piggy.h"
#include "songs.h"
#include "newmenu.h"
#include "state.h"
#include "gameseq.h"
#include "menu.h"
#include "mouse.h"
#include "console.h"
#ifdef OGL
#include "ogl_init.h"
#endif
void title_save_game();
void set_briefing_fontcolor ();
#define MAX_BRIEFING_COLORS 7
#define SHAREWARE_ENDING_FILENAME "ending.tex"
char CurBriefScreenName[15]="brief03.pcx";
char * Briefing_text;
int Briefing_text_colors[MAX_BRIEFING_COLORS];
int Current_color = 0;
@ -77,6 +84,7 @@ static int rescale_y(int y)
int local_key_inkey(void)
{
int rval;
rval = key_inkey();
if ( rval==KEY_ALTED+KEY_F2 ) {
@ -89,21 +97,31 @@ int local_key_inkey(void)
return 0; //say no key pressed
}
else if (mouse_button_state(0))
rval = KEY_SPACEBAR;
return rval;
}
int show_title_screen( char * filename, int allow_keys )
int show_title_screen( char * filename, int allow_keys, int from_hog_only )
{
fix timer;
int pcx_error;
grs_bitmap title_bm;
char new_filename[FILENAME_LEN+1] = "";
#ifdef RELEASE
if (from_hog_only)
strcpy(new_filename,"\x01"); //only read from hog file
#endif
strcat(new_filename,filename);
filename = new_filename;
gr_init_bitmap_data (&title_bm);
if ((pcx_error=pcx_read_bitmap( filename, &title_bm, BM_LINEAR, gr_palette ))!=PCX_ERROR_NONE) {
Int3();
gr_free_bitmap_data (&title_bm);
return 0;
Error( "Error loading briefing screen <%s>, PCX load error: %s (%i)\n",filename, pcx_errormsg(pcx_error), pcx_error);
}
gr_set_current_canvas( NULL );
@ -129,8 +147,26 @@ int show_title_screen( char * filename, int allow_keys )
return 0;
}
void show_titles(void)
{
char publisher[16];
if (GameArg.SysNoTitles)
return;
strcpy(publisher, "macplay.pcx"); // Mac Shareware
if (!PHYSFS_exists(publisher))
strcpy(publisher, "mplaycd.pcx"); // Mac Registered
if (!PHYSFS_exists(publisher))
strcpy(publisher, "iplogo1.pcx"); // PC. Only down here because it's lowres ;-)
show_title_screen( publisher, 1, 1 );
show_title_screen( (((SWIDTH>=640&&SHEIGHT>=480) && cfexist("logoh.pcx"))?"logoh.pcx":"logo.pcx"), 1, 1 );
show_title_screen( (((SWIDTH>=640&&SHEIGHT>=480) && cfexist("descenth.pcx"))?"descenth.pcx":"descent.pcx"), 1, 1 );
}
typedef struct {
char bs_name[255]; // filename, eg merc01. Assumes .lbm suffix.
char bs_name[14]; // filename, eg merc01. Assumes .lbm suffix.
sbyte level_num;
sbyte message_num;
short text_ulx, text_uly; // upper left x,y of text window
@ -139,6 +175,7 @@ typedef struct {
#define BRIEFING_SECRET_NUM 31 // This must correspond to the first secret level which must come at the end of the list.
#define BRIEFING_OFFSET_NUM 4 // This must correspond to the first level screen (ie, past the bald guy briefing screens)
#define SHAREWARE_ENDING_LEVEL_NUM 0x7f
#define REGISTERED_ENDING_LEVEL_NUM 0x7e
#define Briefing_screens_LH ((SWIDTH >= 640 && SHEIGHT >= 480 && cfexist( "brief01h.pcx"))?Briefing_screens_h:Briefing_screens)
@ -310,7 +347,6 @@ void show_animated_bitmap(void)
// Only plot every nth frame.
if (Door_div_count) {
if (Bitmap_name[0] != 0) {
bitmap_index bi;
bi = piggy_find_bitmap(Bitmap_name);
@ -405,7 +441,6 @@ void show_animated_bitmap(void)
break;
}
}
}
//-----------------------------------------------------------------------------
@ -413,15 +448,17 @@ void show_briefing_bitmap(grs_bitmap *bmp)
{
grs_canvas *curcanv_save, *bitmap_canv;
bitmap_canv = gr_create_sub_canvas(grd_curcanv, 220*((double)SWIDTH/320), 45*((double)SHEIGHT/200), 166, 138);
bitmap_canv = gr_create_sub_canvas(grd_curcanv, 220*((double)SWIDTH/(HIRESMODE ? 640 : 320)), 45*((double)SHEIGHT/(HIRESMODE ? 480 : 200)),
bmp->bm_w, bmp->bm_h);
curcanv_save = grd_curcanv;
grd_curcanv = bitmap_canv;
gr_set_current_canvas(bitmap_canv);
#ifdef OGL
ogl_ubitmapm_cs(0,0,(bmp->bm_w*(SWIDTH/320)),(bmp->bm_h*(SHEIGHT/200)),bmp,255,F1_0);
ogl_ubitmapm_cs(0,0,(bmp->bm_w*(SWIDTH/(HIRESMODE ? 640 : 320))),(bmp->bm_h*(SHEIGHT/(HIRESMODE ? 480 : 200))),bmp,255,F1_0);
#else
gr_bitmapm(0, 0, bmp);
#endif
grd_curcanv = curcanv_save;
gr_set_current_canvas(curcanv_save);
d_free(bitmap_canv);
}
@ -432,70 +469,75 @@ void show_spinning_robot_frame(int robot_num)
if (robot_num != -1) {
Robot_angles.h += 150;
curcanv_save = grd_curcanv;
grd_curcanv = Robot_canv;
Assert(Robot_info[robot_num].model_num != -1);
draw_model_picture(Robot_info[robot_num].model_num, &Robot_angles);
grd_curcanv = curcanv_save;
}
}
//-----------------------------------------------------------------------------
void init_spinning_robot(void)
void init_spinning_robot(void) //(int x,int y,int w,int h)
{
int x = rescale_x(138);
int y = rescale_y(55);
int w = rescale_x(162);
int h = rescale_y(134);
int w = rescale_x(166);
int h = rescale_y(138);
Robot_canv = gr_create_sub_canvas(grd_curcanv, x, y, w, h);
}
// -----------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Returns char width.
// If show_robot_flag set, then show a frame of the spinning robot.
int show_char_delay(char the_char, int delay, int robot_num, int cursor_flag)
{
int w, h, aw;
char message[2];
fix start_time;
static fix start_time = 0;
int i;
start_time = timer_get_fixed_seconds();
message[0] = the_char;
message[1] = 0;
if (start_time==0 && timer_get_fixed_seconds()<0)
start_time=timer_get_fixed_seconds();
gr_get_string_size(message, &w, &h, &aw );
Assert((Current_color >= 0) && (Current_color < MAX_BRIEFING_COLORS));
// Draw cursor if there is some delay and caller says to draw cursor
if (delay)
{
if (cursor_flag && delay) {
if (cursor_flag)
{
gr_set_fontcolor(Briefing_text_colors[Current_color], -1);
gr_printf(Briefing_text_x, Briefing_text_y, "_" );
}
for (i=0; i<2; i++) {
if (robot_num != -1)
show_spinning_robot_frame(robot_num);
for (i=0; i<2; i++)
{
if (Bitmap_name[0] != 0)
show_animated_bitmap();
while (timer_get_fixed_seconds() < start_time + delay/2);
if (robot_num != -1)
show_spinning_robot_frame(robot_num);
start_time = timer_get_fixed_seconds();
}
// Erase cursor
if (cursor_flag) {
if (cursor_flag)
{
gr_set_fontcolor(Erase_color, -1);
gr_printf(Briefing_text_x, Briefing_text_y, "_" );
}
}
// end additions/changed - adb
// Draw the character
gr_set_fontcolor(Briefing_text_colors[Current_color], -1);
@ -534,7 +576,7 @@ void bald_guy_cheat(int key)
// -----------------------------------------------------------------------------
// loads a briefing screen
int load_briefing_screen( int screen_num )
int load_briefing_screen( char *fname )
{
int pcx_error;
@ -543,14 +585,14 @@ int load_briefing_screen( int screen_num )
gr_init_bitmap_data(&briefing_bm);
if ( ((screen_num == NEW_END_GUY1) || (screen_num == NEW_END_GUY2)) && baldguy_cheat) {
strcpy (CurBriefScreenName,fname);
if (!stricmp(fname, "brief02h.pcx") && baldguy_cheat)
if ( bald_guy_load(new_baldguy_pcx, &briefing_bm, BM_LINEAR, gr_palette) == 0)
return 0;
}
if ((pcx_error=pcx_read_bitmap( Briefing_screens_LH[screen_num].bs_name, &briefing_bm, BM_LINEAR, gr_palette ))!=PCX_ERROR_NONE) {
Int3();
return 0;
}
if ((pcx_error = pcx_read_bitmap(fname, &briefing_bm, BM_LINEAR, gr_palette))!=PCX_ERROR_NONE)
Error( "Error loading briefing screen <%s>, PCX load error: %s (%i)\n",fname, pcx_errormsg(pcx_error), pcx_error);
show_fullscr(&briefing_bm);
@ -558,10 +600,12 @@ int load_briefing_screen( int screen_num )
set_briefing_fontcolor();
return 0;
return 1;
}
#define KEY_DELAY_DEFAULT ((F1_0*28)/1000)
#define KEY_DELAY_DEFAULT ((F1_0*20)/1000)
//-----------------------------------------------------------------------------
int get_message_num(char **message)
@ -619,7 +663,7 @@ void get_message_name(char **message, char *result)
(*message)++;
while (strlen(*message) > 0 && (**message != ' ') && (**message != 10)) {
if (**message != 13)
if (**message != '\n')
*result++ = **message;
(*message)++;
}
@ -643,7 +687,6 @@ void flash_cursor(int cursor_flag)
gr_set_fontcolor(Erase_color, -1);
gr_printf(Briefing_text_x, Briefing_text_y, "_" );
}
typedef struct msgstream {
@ -676,26 +719,31 @@ int show_briefing(int screen_num, char *message)
{
int prev_ch=-1;
int ch, done=0;
briefing_screen *bsp = &Briefing_screens[screen_num];
briefing_screen *bsp;
int delay_count = KEY_DELAY_DEFAULT;
int key_check;
int robot_num=-1;
int rval=0;
int tab_stop=0;
static int tab_stop=0;
int flashing_cursor=0;
int new_page=0;
int text_ulx = rescale_x(bsp->text_ulx);
int text_uly = rescale_y(bsp->text_uly);
char fname[15];
grs_bitmap guy_bitmap;
int streamcount=0, guy_bitmap_show=0;
strncpy(fname, CurBriefScreenName, 15);//fname = CurBriefScreenName;
Bitmap_name[0] = 0;
Current_color = 0;
gr_set_curfont( GAME_FONT );
init_char_pos(text_ulx, text_uly);
MALLOC(bsp, briefing_screen, 1);
memcpy(bsp, &Briefing_screens[screen_num], sizeof(briefing_screen));
bsp->text_ulx = rescale_x(bsp->text_ulx);
bsp->text_uly = rescale_y(bsp->text_uly);
bsp->text_width = rescale_x(bsp->text_width);
bsp->text_height = rescale_y(bsp->text_height);
init_char_pos(bsp->text_ulx, bsp->text_uly);
while (!done) {
ch = *message++;
@ -716,14 +764,22 @@ int show_briefing(int screen_num, char *message)
prev_ch = 10; // read to eoln
} else if (ch == 'R') {
if (Robot_canv != NULL)
{d_free(Robot_canv); Robot_canv=NULL;}
{
d_free(Robot_canv);
Robot_canv=NULL;
}
init_spinning_robot();
robot_num = get_message_num(&message);
while (*message++ != 10)
;
prev_ch = 10; // read to eoln
} else if (ch == 'N') {
if (Robot_canv != NULL)
{d_free(Robot_canv); Robot_canv=NULL;}
{
d_free(Robot_canv);
Robot_canv=NULL;
}
get_message_name(&message, Bitmap_name);
strcat(Bitmap_name, "#0");
@ -731,7 +787,10 @@ int show_briefing(int screen_num, char *message)
prev_ch = 10;
} else if (ch == 'O') {
if (Robot_canv != NULL)
{d_free(Robot_canv); Robot_canv=NULL;}
{
d_free(Robot_canv);
Robot_canv=NULL;
}
get_message_name(&message, Bitmap_name);
strcat(Bitmap_name, "#0");
@ -743,30 +802,28 @@ int show_briefing(int screen_num, char *message)
int iff_error;
if (Robot_canv != NULL)
{d_free(Robot_canv); Robot_canv=NULL;}
{
d_free(Robot_canv);
Robot_canv=NULL;
}
get_message_name(&message, bitmap_name);
strcat(bitmap_name, ".bbm");
gr_init_bitmap_data (&guy_bitmap);
iff_error = iff_read_bitmap(bitmap_name, &guy_bitmap, BM_LINEAR, temp_palette);
Assert(iff_error == IFF_NO_ERROR);
gr_remap_bitmap_good( &guy_bitmap, temp_palette, -1, -1 );
show_briefing_bitmap(&guy_bitmap);
guy_bitmap_show=1;
prev_ch = 10;
} else if (ch == 'S') {
int keypress;
fix start_time;
fix time_out_value;
start_time = timer_get_fixed_seconds();
start_time = timer_get_fixed_seconds();
time_out_value = start_time + i2f(60*5); // Wait 1 minute...
while ( (keypress = local_key_inkey()) == 0 ) { // Wait for a key
if ( timer_get_fixed_seconds() > time_out_value ) {
keypress = 0;
break; // Time out after 1 minute..
}
while (timer_get_fixed_seconds() < start_time + KEY_DELAY_DEFAULT/2)
;
timer_delay2(50);
@ -776,9 +833,11 @@ int show_briefing(int screen_num, char *message)
if (guy_bitmap_show)
show_briefing_bitmap(&guy_bitmap);
flash_cursor(flashing_cursor);
if (robot_num != -1)
show_spinning_robot_frame(robot_num);
show_animated_bitmap();
if (Bitmap_name[0] != 0)
show_animated_bitmap();
start_time += KEY_DELAY_DEFAULT/2;
}
@ -794,6 +853,7 @@ int show_briefing(int screen_num, char *message)
} else if (ch == 'P') { // New page.
new_page = 1;
while (*message != 10) {
message++; // drop carriage return after special escape sequence
}
@ -804,8 +864,8 @@ int show_briefing(int screen_num, char *message)
Briefing_text_x += show_char_delay(ch, delay_count, robot_num, flashing_cursor);
}
} else if (ch == '\t') { // Tab
if (Briefing_text_x - text_ulx < tab_stop)
Briefing_text_x = text_ulx + tab_stop;
if (Briefing_text_x - bsp->text_ulx < tab_stop)
Briefing_text_x = bsp->text_ulx + tab_stop;
} else if ((ch == ';') && (prev_ch == 10)) {
while (*message++ != 10)
;
@ -816,13 +876,14 @@ int show_briefing(int screen_num, char *message)
if (prev_ch != '\\') {
prev_ch = ch;
Briefing_text_y += FSPACY(5)+FSPACY(5)*3/5;
Briefing_text_x = text_ulx;
if (Briefing_text_y > text_uly + rescale_y(bsp->text_height)) {
Briefing_text_x = text_ulx;
Briefing_text_y = text_uly;
Briefing_text_x = bsp->text_ulx;
if (Briefing_text_y > bsp->text_uly + bsp->text_height) {
load_briefing_screen(Briefing_screens[screen_num].bs_name);
Briefing_text_x = bsp->text_ulx;
Briefing_text_y = bsp->text_uly;
}
} else {
if (ch == 13)
if (ch == 13) //Can this happen? Above says ch==10
Int3();
prev_ch = ch;
}
@ -841,6 +902,7 @@ int show_briefing(int screen_num, char *message)
if (guy_bitmap_show)
show_briefing_bitmap(&guy_bitmap);
streamcount++;
prev_ch = ch;
Briefing_text_x += show_char_delay(ch, delay_count, robot_num, flashing_cursor);
@ -863,25 +925,18 @@ int show_briefing(int screen_num, char *message)
if ((key_check == KEY_SPACEBAR) || (key_check == KEY_ENTER))
delay_count = 0;
if (Briefing_text_x > text_ulx + rescale_x(bsp->text_width)) {
Briefing_text_x = text_ulx;
Briefing_text_y += GAME_FONT->ft_h+GAME_FONT->ft_h*3/5;
if (Briefing_text_x > bsp->text_ulx + bsp->text_width) {
Briefing_text_x = bsp->text_ulx;
Briefing_text_y += bsp->text_uly;
}
if ((new_page) || (Briefing_text_y > text_uly + rescale_y(bsp->text_height))) {
if ((new_page) || (Briefing_text_y > bsp->text_uly + bsp->text_height)) {
fix start_time = 0;
fix time_out_value = 0;
int keypress;
new_page = 0;
start_time = timer_get_fixed_seconds();
time_out_value = start_time + i2f(60*5); // Wait 1 minute...
while ( (keypress = local_key_inkey()) == 0 ) { // Wait for a key
if ( timer_get_fixed_seconds() > time_out_value ) {
keypress = 0;
break; // Time out after 1 minute..
}
while (timer_get_fixed_seconds() < start_time + KEY_DELAY_DEFAULT/2)
;
timer_delay2(50);
@ -891,9 +946,10 @@ int show_briefing(int screen_num, char *message)
if (guy_bitmap_show)
show_briefing_bitmap(&guy_bitmap);
flash_cursor(flashing_cursor);
if (robot_num != -1)
show_spinning_robot_frame(robot_num);
if (Bitmap_name[0] != 0)
show_animated_bitmap();
start_time += KEY_DELAY_DEFAULT/2;
}
@ -907,25 +963,27 @@ int show_briefing(int screen_num, char *message)
rval = 1;
done = 1;
}
load_briefing_screen(fname);
Briefing_text_x = bsp->text_ulx;
Briefing_text_y = bsp->text_uly;
Briefing_text_x = text_ulx;
Briefing_text_y = text_uly;
streamcount=0;
if (guy_bitmap_show) {
gr_free_bitmap_data (&guy_bitmap);
guy_bitmap_show=0;
}
delay_count = KEY_DELAY_DEFAULT;
}
}
if (briefing_bm.bm_data != NULL)
gr_free_bitmap_data (&briefing_bm);
if (Robot_canv != NULL)
{d_free(Robot_canv); Robot_canv=NULL;}
d_free(bsp);
if (briefing_bm.bm_data != NULL)
gr_free_bitmap_data (&briefing_bm);
return rval;
}
@ -948,12 +1006,15 @@ char * get_briefing_message(int screen_num)
}
}
if (screen_num!=cur_screen)
return (NULL);
return tptr;
}
//-----------------------------------------------------------------------------
// Load Descent briefing text.
void load_screen_text(char *filename, char **buf)
int load_screen_text(char *filename, char **buf)
{
CFILE *tfile;
CFILE *ifile;
@ -967,8 +1028,11 @@ void load_screen_text(char *filename, char **buf)
if ((ptr = strrchr(nfilename, '.')))
*ptr = '\0';
strcat(nfilename, ".txb");
if ((ifile = cfopen(nfilename, "rb")) == NULL)
Error("Cannot open file %s or %s", filename, nfilename);
if ((ifile = cfopen(nfilename, "rb")) == NULL) {
return (0);
//Error("Cannot open file %s or %s", filename, nfilename);
}
have_binary = 1;
len = cfilelength(ifile);
@ -986,6 +1050,8 @@ void load_screen_text(char *filename, char **buf)
decode_text(*buf, len);
*(*buf+len)='\0';
return (1);
}
//-----------------------------------------------------------------------------
@ -1007,9 +1073,7 @@ int show_briefing_text(int screen_num)
void set_briefing_fontcolor ()
{
Briefing_text_colors[0] = gr_find_closest_color_current( 0, 40, 0);
Briefing_text_colors[1] = gr_find_closest_color_current( 40, 33, 35);
Briefing_text_colors[2] = gr_find_closest_color_current( 8, 31, 54);
//green
@ -1042,8 +1106,8 @@ int show_briefing_screen( int screen_num, int allow_keys)
gr_init_bitmap_data (&briefing_bm);
load_briefing_screen(screen_num);
load_briefing_screen(Briefing_screens_LH[screen_num].bs_name);
show_fullscr(&briefing_bm );
gr_palette_load(gr_palette);
rval = show_briefing_text(screen_num);
@ -1053,12 +1117,15 @@ int show_briefing_screen( int screen_num, int allow_keys)
//-----------------------------------------------------------------------------
void do_briefing_screens(int level_num)
void do_briefing_screens(char *filename, int level_num)
{
int abort_briefing_screens = 0;
int cur_briefing_screen = 0;
if (!Briefing_text_filename[0]) //no filename?
if (!filename || !*filename)
return;
if (!load_screen_text(filename, &Briefing_text))
return;
songs_play_song( SONG_BRIEFING, 1 );
@ -1068,8 +1135,6 @@ void do_briefing_screens(int level_num)
key_flush();
load_screen_text(Briefing_text_filename, &Briefing_text);
if (level_num == 1) {
while ((!abort_briefing_screens) && (Briefing_screens[cur_briefing_screen].level_num == 0)) {
abort_briefing_screens = show_briefing_screen(cur_briefing_screen, 0);
@ -1089,18 +1154,6 @@ void do_briefing_screens(int level_num)
key_flush();
}
void show_order_form()
{
char exit_screen[16];
strcpy(exit_screen, "warning.pcx"); // D1 Registered
if (! cfexist(exit_screen))
strcpy(exit_screen, "apple.pcx"); // D1 Mac OEM Demo
if (! cfexist(exit_screen))
strcpy(exit_screen, "order01.pcx"); // D1 Demo
show_title_screen(exit_screen, 1);
}
#ifndef SHAREWARE
void do_registered_end_game(void)
{
@ -1196,3 +1249,15 @@ void do_end_game(void)
}
void show_order_form()
{
char exit_screen[16];
strcpy(exit_screen, "warning.pcx"); // D1 Registered
if (! cfexist(exit_screen))
strcpy(exit_screen, "apple.pcx"); // D1 Mac OEM Demo
if (! cfexist(exit_screen))
strcpy(exit_screen, "order01.pcx"); // D1 Demo
show_title_screen(exit_screen, 1, 1);
}

View file

@ -10,6 +10,7 @@ CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* Header for titles.c
@ -19,9 +20,9 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _TITLES_H
#define _TITLES_H
extern int show_title_screen( char * filename, int allow_keys );
extern void show_titles(void);
extern int show_briefing_screen( char * filename, int allow_keys );
extern void do_briefing_screens(int level_num);
extern void do_briefing_screens(char *filename, int level_num);
extern void do_end_game(void);
extern char * get_briefing_screen( int level_num );
extern void show_order_form(void);