Forward port various minimal-impact stuff from tagfile load patch to reduce patch size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5053 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c67a3ef1be
commit
92ceea0131
|
@ -2217,6 +2217,7 @@ static BOOL getNameFromComp(UDWORD compType, char *pDest, UDWORD compIndex);
|
|||
|
||||
//adjust the name depending on type of save game and whether resourceNames are used
|
||||
static BOOL getSaveObjectName(char *pName);
|
||||
static bool gameLoad(const char* fileName);
|
||||
|
||||
/* set the global scroll values to use for the save game */
|
||||
static void setMapScroll(void);
|
||||
|
@ -2335,16 +2336,10 @@ BOOL loadGame(const char *pGameToLoad, BOOL keepObjects, BOOL freeMem, BOOL User
|
|||
freeAllStructs();
|
||||
freeAllFeatures();
|
||||
|
||||
// droidTemplateShutDown();
|
||||
if (psMapTiles)
|
||||
{
|
||||
// free(psMapTiles);
|
||||
}
|
||||
//clear all the messages?
|
||||
releaseAllProxDisp();
|
||||
}
|
||||
|
||||
|
||||
if (!keepObjects)
|
||||
{
|
||||
//initialise the lists
|
||||
|
@ -2392,7 +2387,6 @@ BOOL loadGame(const char *pGameToLoad, BOOL keepObjects, BOOL freeMem, BOOL User
|
|||
//JPS 25 feb
|
||||
}
|
||||
|
||||
|
||||
if (saveGameVersion >= VERSION_11)
|
||||
{
|
||||
//camera position
|
||||
|
@ -2732,7 +2726,6 @@ BOOL loadGame(const char *pGameToLoad, BOOL keepObjects, BOOL freeMem, BOOL User
|
|||
}
|
||||
|
||||
//load the map and the droids then swap pointers
|
||||
// psMapTiles = NULL;
|
||||
//load in the map file
|
||||
aFileName[fileExten] = '\0';
|
||||
strcat(aFileName, "mission.map");
|
||||
|
|
Loading…
Reference in New Issue