mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- 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:
@@ -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( ) )
|
||||
|
||||
Reference in New Issue
Block a user