Fixed defaulting to "easy" difficulty.
This commit is contained in:
parent
c03c2f404c
commit
01b5b73dba
|
@ -101,6 +101,7 @@ int main(int argc, char *argv[])
|
|||
// Determine which part of the game we will go to...
|
||||
int section = 0;
|
||||
|
||||
currentGame.difficulty = DIFFICULTY_NORMAL;
|
||||
newGame();
|
||||
|
||||
while (true)
|
||||
|
|
|
@ -61,7 +61,6 @@ static void createMissionDetailSurface(SDL_Surface *comms, int missionSlot)
|
|||
{
|
||||
char name[50];
|
||||
char string[2000];
|
||||
int lines = 0;
|
||||
int y = 50;
|
||||
int newY = y;
|
||||
int col = FONT_WHITE;
|
||||
|
|
|
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "Starfighter.h"
|
||||
|
||||
static char lastKeyEvents[] = " ";
|
||||
|
||||
/*
|
||||
Checked during the main game loop. When the game is paused
|
||||
it goes into a constant loop checking this routine. If escape is
|
||||
|
|
|
@ -98,9 +98,8 @@ bool loadGame(int slot)
|
|||
|
||||
fclose(fp);
|
||||
|
||||
if(currentGame.saveFormat < 2) {
|
||||
if (currentGame.saveFormat < 2)
|
||||
currentGame.difficulty = DIFFICULTY_NORMAL;
|
||||
}
|
||||
|
||||
weapon[0] = currentGame.playerWeapon;
|
||||
player = currentGame.thePlayer;
|
||||
|
|
|
@ -467,9 +467,11 @@ int doTitle()
|
|||
if (selectedOption == 1)
|
||||
engine.done = 1;
|
||||
else if (selectedOption == 2)
|
||||
{
|
||||
currentGame.difficulty++;
|
||||
if (currentGame.difficulty > DIFFICULTY_NIGHTMARE)
|
||||
currentGame.difficulty = DIFFICULTY_EASY;
|
||||
}
|
||||
else if (selectedOption == listLength)
|
||||
{menuType = 0; selectedOption = 1;}
|
||||
createDifficultyMenu();
|
||||
|
|
Loading…
Reference in New Issue