summaryrefslogtreecommitdiff
path: root/src/doom/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-27 02:15:33 +0000
committerSimon Howard2008-09-27 02:15:33 +0000
commit013dc015d160e5090579f75f4b8a9b3d5acb7b52 (patch)
tree746d224cc7eadc0e4b19f742257226dd959354f7 /src/doom/d_main.c
parentc33d1935292af81142783137e09dec828df298bc (diff)
downloadchocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.tar.gz
chocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.tar.bz2
chocolate-doom-013dc015d160e5090579f75f4b8a9b3d5acb7b52.zip
Split out startup banner code into common code; display copyright notice
in Heretic. Subversion-branch: /branches/raven-branch Subversion-revision: 1295
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r--src/doom/d_main.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 67d4489d..3bc5bfe7 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -602,18 +602,6 @@ static boolean D_AddFile(char *filename)
return handle != NULL;
}
-// Startup banner
-
-void PrintBanner(char *msg)
-{
- int i;
- int spaces = 35 - (strlen(msg) / 2);
-
- for (i=0; i<spaces; ++i)
- putchar(' ');
-
- puts(msg);
-}
// Copyright message banners
// Some dehacked mods replace these. These are only displayed if they are
@@ -850,7 +838,7 @@ void D_DoomMain (void)
// print banner
- PrintBanner(PACKAGE_STRING);
+ I_PrintBanner(PACKAGE_STRING);
printf (DEH_String("Z_Init: Init zone memory allocation daemon. \n"));
Z_Init ();
@@ -1457,27 +1445,13 @@ void D_DoomMain (void)
if (W_CheckNumForName("SS_START") >= 0
|| W_CheckNumForName("FF_END") >= 0)
{
- printf ("===========================================================================\n");
+ I_PrintDivider();
printf(" WARNING: The loaded WAD file contains modified sprites or\n"
" floor textures. You may want to use the '-merge' command\n"
" line option instead of '-file'.\n");
}
-
- printf ("===========================================================================\n");
-
- PrintBanner(gamedescription);
-
-
- printf (
- "===========================================================================\n"
- " " PACKAGE_NAME " is free software, covered by the GNU General Public\n"
- " License. There is NO warranty; not even for MERCHANTABILITY or FITNESS\n"
- " FOR A PARTICULAR PURPOSE. You are welcome to change and distribute\n"
- " copies under certain conditions. See the source for more information.\n"
-
- "===========================================================================\n"
- );
+ I_PrintStartupBanner(gamedescription);
PrintDehackedBanners();
printf (DEH_String("M_Init: Init miscellaneous info.\n"));