Skip to content

Commit

Permalink
Do not load AI data twice when loading savegames, once from scratch a…
Browse files Browse the repository at this point in the history
…nd once from savegame.
  • Loading branch information
perim committed Feb 12, 2011
1 parent 22dbc65 commit 37fd0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/levels.cpp
Expand Up @@ -945,8 +945,6 @@ BOOL levLoadData(const char* name, char *pSaveName, GAME_TYPE saveType)
}
}

dataClearSaveFlag();

if (pSaveName != NULL)
{
//load MidMission Extras
Expand All @@ -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)
Expand Down

0 comments on commit 37fd0bb

Please sign in to comment.