- xml-files migration

- added Judge's movement costs externalization with minor tweaks

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@583 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Lesh
2006-09-30 12:27:38 +00:00
parent 6404ae4da8
commit 881ff0f5c2
5 changed files with 724 additions and 84 deletions
+8 -1
View File
@@ -352,6 +352,10 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
if(!ReadInMapStructure(fileName))
return FALSE;
// Lesh: Strategic movement costs will be read in Strategic\Strategic Movement Costs.cpp,
// function BOOLEAN InitStrategicMovementCosts();
// It is called several times from various places and acts after clearing SectorInfo array
strcpy(fileName, directoryName);
strcat(fileName, EXPLOSIONDATAFILENAME);
if(!ReadInExplosionDataStats(fileName))
@@ -409,7 +413,10 @@ UINT32 InitializeJA2(void)
}
//needs to be called here to init the SectorInfo struct
InitStrategicMovementCosts( );
if ( !InitStrategicMovementCosts( ) )
{
return( ERROR_SCREEN );
}
// Init tactical engine
if ( !InitTacticalEngine( ) )