487 changes: 0 additions & 487 deletions src/cluster.cpp

This file was deleted.

77 changes: 0 additions & 77 deletions src/cluster.h

This file was deleted.

5 changes: 1 addition & 4 deletions src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ bool runTitleMenu()
switch (id)
{
case FRONTEND_QUIT:
changeTitleMode(CREDITS);
changeTitleMode(QUIT);
break;
case FRONTEND_MULTIPLAYER:
changeTitleMode(MULTI);
Expand Down Expand Up @@ -1781,9 +1781,6 @@ void changeTitleMode(tMode mode)
case TITLE:
startTitleMenu();
break;
case CREDITS:
startCreditsScreen();
break;
case MULTI:
startMultiPlayerMenu(); // goto multiplayer menu
break;
Expand Down
43 changes: 21 additions & 22 deletions src/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,27 @@
// determines which option screen to use. when in GS_TITLE_SCREEN mode.
enum tMode
{
TITLE, // 0 intro mode
SINGLE, // 1 single player menu
MULTI, // 2 multiplayer menu
OPTIONS, // 3 options menu
GAME, // 4
TUTORIAL, // 5 tutorial/fastplay
CREDITS, // 6 credits
PROTOCOL, // 7 MULTIPLAYER, select proto
MULTIOPTION, // 8 MULTIPLAYER, select game options
FORCESELECT, // 9 MULTIPLAYER, Force design screen
GAMEFIND, // 10 MULTIPLAYER, gamefinder.
MULTILIMIT, // 11 MULTIPLAYER, Limit the multistuff.
STARTGAME, // 12 Fire up the game
SHOWINTRO, // 13 reshow the intro
QUIT, // 14 leaving game
LOADSAVEGAME, // 15 loading a save game
KEYMAP, // 16 keymap editor
GRAPHICS_OPTIONS, // 17 graphics options menu
AUDIO_OPTIONS, // 18 audio options menu
VIDEO_OPTIONS, // 19 video options menu
MOUSE_OPTIONS, // 20 mouse options menu
CAMPAIGNS, // 21 campaign selector
TITLE, // intro mode
SINGLE, // single player menu
MULTI, // multiplayer menu
OPTIONS, // options menu
GAME, //
TUTORIAL, // tutorial/fastplay
PROTOCOL, // MULTIPLAYER, select proto
MULTIOPTION, // MULTIPLAYER, select game options
FORCESELECT, // MULTIPLAYER, Force design screen
GAMEFIND, // MULTIPLAYER, gamefinder.
MULTILIMIT, // MULTIPLAYER, Limit the multistuff.
STARTGAME, // Fire up the game
SHOWINTRO, // reshow the intro
QUIT, // leaving game
LOADSAVEGAME, // loading a save game
KEYMAP, // keymap editor
GRAPHICS_OPTIONS, // graphics options menu
AUDIO_OPTIONS, // audio options menu
VIDEO_OPTIONS, // video options menu
MOUSE_OPTIONS, // mouse options menu
CAMPAIGNS, // campaign selector
};

extern tMode titleMode; // the global case
Expand Down
34 changes: 0 additions & 34 deletions src/wrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ static bool bPlayerHasLost = false;
static bool bPlayerHasWon = false;
static UBYTE scriptWinLoseVideo = PLAY_NONE;

void runCreditsScreen();

static UDWORD lastChange = 0;
int hostlaunch = 0; // used to detect if we are hosting a game via command line option.

static uint32_t lastTick = 0;
Expand Down Expand Up @@ -210,10 +207,6 @@ TITLECODE titleLoop()
runTutorialMenu();
break;

case CREDITS:
runCreditsScreen();
break;

case OPTIONS:
runOptionsMenu();
break;
Expand Down Expand Up @@ -350,33 +343,6 @@ void initLoadingScreen(bool drawbdrop)
pie_ScreenFlip(CLEAR_BLACK);
}


// fill buffers with the static screen
void startCreditsScreen()
{
lastChange = gameTime;

pie_LoadBackDrop(SCREEN_CREDITS);

pie_SetFogStatus(false);
pie_ScreenFlip(CLEAR_BLACK);//init loading
}

/* This function does nothing - since it's already been drawn */
void runCreditsScreen()
{
// Check for key presses now.
if (keyReleased(KEY_ESC)
|| keyReleased(KEY_SPACE)
|| mouseReleased(MOUSE_LMB)
|| gameTime - lastChange > 4000)
{
lastChange = gameTime;
changeTitleMode(QUIT);
}
return;
}

// shut down the loading screen
void closeLoadingScreen()
{
Expand Down
2 changes: 0 additions & 2 deletions src/wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ void initLoadingScreen(bool drawbdrop);
void closeLoadingScreen();
void loadingScreenCallback();

void startCreditsScreen();

bool displayGameOver(bool success);
void setPlayerHasLost(bool val);
bool testPlayerHasLost();
Expand Down