Permalink
Browse files

Do not load AI data twice when loading savegames, once from scratch a…

…nd once from savegame.
  • Loading branch information...
perim committed Feb 12, 2011
1 parent 22dbc65 commit 37fd0bb4f1aba939e58449737a4db00d4dc4dcef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/levels.cpp
View
@@ -945,8 +945,6 @@ BOOL levLoadData(const char* name, char *pSaveName, GAME_TYPE saveType)
}
}
- dataClearSaveFlag();
-
if (pSaveName != NULL)
{
//load MidMission Extras
@@ -972,6 +970,8 @@ BOOL levLoadData(const char* name, char *pSaveName, GAME_TYPE saveType)
return false;
}
+ dataClearSaveFlag();
+
//this enables us to to start cam2/cam3 without going via a save game and get the extra droids
//in from the script-controlled Transporters
if (!pSaveName && psNewLevel->type == LDS_CAMSTART)

0 comments on commit 37fd0bb

Please sign in to comment.