Removed the extro text from the credits.

I don't feel it's really necessary, and besides, it's annoying that
due to the way it's implemented it prevents you from doing anything
while it's shown.
This commit is contained in:
onpon4 2015-03-04 08:20:11 -05:00
parent 6465468a8c
commit 60783849e4
5 changed files with 8 additions and 29 deletions

View File

@ -1,4 +1,4 @@
000 +++ CAST +++
050 +++ CAST +++
030 Chris Bainfield
020 Krass Tylar
020 Sid Wilson
@ -62,6 +62,7 @@
020 Torbjorn Andersson Atrix Wolfe
020 and all on the SDL mailing list
350 Project: Starfighter
020 Copyright Parallel Realities 2003
020 Copyright Guus Sliepen, Astrid S. de Wijn and others 2012
020 Copyright 2003 Parallel Realities
020 Copyright 2012 Guus Sliepen, Astrid S. de Wijn and others
020 Copyright 2015 Julian Marchant
120 http://sourceforge.net/projects/pr-starfighter/

View File

@ -1,4 +0,0 @@
And so it was that in the year 2579 the galactic weapons corporation
WEAPCO was defeated thanks to the valiant efforts of a few determined
individuals; A cause that would be remembered throughout the rest of
human history as Project: Starfighter.

View File

@ -328,7 +328,7 @@ int mainGameLoop()
doCutscene(6);
break;
case 26:
doCredits(true);
doCredits();
break;
}

View File

@ -377,7 +377,7 @@ int doTitle()
// if someone has invoked the credits cheat
if (engine.cheatCredits)
{
doCredits(false);
doCredits();
engine.cheatCredits = false;
}
@ -674,7 +674,7 @@ void gameover()
flushBuffer();
}
void doCredits(bool show_extro)
void doCredits()
{
loadBackground("gfx/credits.jpg");
flushBuffer();
@ -705,24 +705,6 @@ void doCredits(bool show_extro)
Mix_PlayMusic(engine.music, 1);
}
if (show_extro)
{
fp = fopen("data/extro.txt", "rb");
i = 0;
while (fscanf(fp, "%[^\n]%*c", text) == 1)
{
drawString(text, -1, 240 + (i * 20), FONT_WHITE);
i++;
}
fclose(fp);
updateScreen();
SDL_Delay(20000);
drawBackGround();
}
fp = fopen("data/credits.txt", "rb");
// FIXME: It would be nice for the size of this array to be determined
// by the number of lines in the text file. I'm not sure how to do

View File

@ -20,4 +20,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
extern int doTitle();
extern void showStory();
extern void gameover();
extern void doCredits(bool show_extro);
extern void doCredits();