Miscellaneous fixes.

This commit is contained in:
Guus Sliepen 2012-03-11 15:23:12 +01:00
parent b9d9158619
commit 76a1507c1b
3 changed files with 3 additions and 3 deletions

View File

@ -583,9 +583,10 @@ int galaxyMap()
sprintf(string, "Stationed At: %s", systemPlanet[currentGame.stationedPlanet].name); sprintf(string, "Stationed At: %s", systemPlanet[currentGame.stationedPlanet].name);
iconInfo[9].image = textSurface(string, FONT_WHITE); iconInfo[9].image = textSurface(string, FONT_WHITE);
strcpy(string, "Destination: None");
if (currentGame.destinationPlanet > -1) if (currentGame.destinationPlanet > -1)
sprintf(string, "Destination: %s", systemPlanet[currentGame.destinationPlanet].name); sprintf(string, "Destination: %s", systemPlanet[currentGame.destinationPlanet].name);
else
strcpy(string, "Destination: None");
iconInfo[10].image = textSurface(string, FONT_WHITE); iconInfo[10].image = textSurface(string, FONT_WHITE);
for (int i = 0 ; i < 9 ; i++) for (int i = 0 ; i < 9 ; i++)
iconInfo[i].x = (800 - iconInfo[i].image->w) / 2; iconInfo[i].x = (800 - iconInfo[i].image->w) / 2;

View File

@ -271,7 +271,6 @@ void doInfo()
} }
checkTimer(); checkTimer();
checkScriptEvents(); checkScriptEvents();
//engine.counter = 0;
engine.counter = (SDL_GetTicks() + 1000); engine.counter = (SDL_GetTicks() + 1000);
} }
} }

View File

@ -25,7 +25,7 @@ static event gameEvent[10];
static void setKlineGreeting() static void setKlineGreeting()
{ {
char greet[][50] = { static const char *greet[] = {
"How nice to see you again, Bainfield!", "How nice to see you again, Bainfield!",
"It all ends here, rebel!", "It all ends here, rebel!",
"I hope you won't disappoint me this time...", "I hope you won't disappoint me this time...",