mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- new: Externalized sector loadscreens to TableData\Map\SectorLoadscreens.xml (INI-Switch: USE_EXTERNALIZED_LOADSCREENS)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@887 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -119,7 +119,23 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
||||
return FALSE;
|
||||
|
||||
// WANNE: Enemy drops - end
|
||||
|
||||
|
||||
// WANNE: Sector Loadscreens [2007-05-18]
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, SECTORLOADSCREENSFILENAME);
|
||||
|
||||
if ( FileExists(fileName) )
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||
if(!ReadInSectorLoadscreensStats(gSectorLoadscreens, fileName))
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("File does not exist, fileName = %s", fileName));
|
||||
// Reset ini-option
|
||||
gGameExternalOptions.gfUseExternalLoadscreens = FALSE;
|
||||
}
|
||||
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, AMMOTYPESFILENAME);
|
||||
|
||||
Reference in New Issue
Block a user