diff --git a/code/intermission.cpp b/code/intermission.cpp index c287b09..c5f7986 100644 --- a/code/intermission.cpp +++ b/code/intermission.cpp @@ -583,9 +583,10 @@ int galaxyMap() sprintf(string, "Stationed At: %s", systemPlanet[currentGame.stationedPlanet].name); iconInfo[9].image = textSurface(string, FONT_WHITE); - strcpy(string, "Destination: None"); if (currentGame.destinationPlanet > -1) sprintf(string, "Destination: %s", systemPlanet[currentGame.destinationPlanet].name); + else + strcpy(string, "Destination: None"); iconInfo[10].image = textSurface(string, FONT_WHITE); for (int i = 0 ; i < 9 ; i++) iconInfo[i].x = (800 - iconInfo[i].image->w) / 2; diff --git a/code/misc.cpp b/code/misc.cpp index e8e98bf..219ca54 100644 --- a/code/misc.cpp +++ b/code/misc.cpp @@ -271,7 +271,6 @@ void doInfo() } checkTimer(); checkScriptEvents(); - //engine.counter = 0; engine.counter = (SDL_GetTicks() + 1000); } } diff --git a/code/script.cpp b/code/script.cpp index f44da94..58e577b 100644 --- a/code/script.cpp +++ b/code/script.cpp @@ -25,7 +25,7 @@ static event gameEvent[10]; static void setKlineGreeting() { - char greet[][50] = { + static const char *greet[] = { "How nice to see you again, Bainfield!", "It all ends here, rebel!", "I hope you won't disappoint me this time...",