Load save data before mission.
This commit is contained in:
parent
f750c10c6f
commit
09b3f8d917
10
src/main.c
10
src/main.c
|
@ -48,6 +48,11 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
createScreenshotFolder();
|
createScreenshotFolder();
|
||||||
|
|
||||||
|
if (fileExists(getSaveFilePath(SAVE_FILENAME)))
|
||||||
|
{
|
||||||
|
loadGame();
|
||||||
|
}
|
||||||
|
|
||||||
handleArguments(argc, argv);
|
handleArguments(argc, argv);
|
||||||
|
|
||||||
dev.fps = frames = td = 0;
|
dev.fps = frames = td = 0;
|
||||||
|
@ -196,11 +201,6 @@ static void handleArguments(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fileExists(getSaveFilePath(SAVE_FILENAME)))
|
|
||||||
{
|
|
||||||
loadGame();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!testingMission)
|
if (!testingMission)
|
||||||
{
|
{
|
||||||
initTitle();
|
initTitle();
|
||||||
|
|
Loading…
Reference in New Issue