mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Spread Patterns MOD (by Zilpin)
* You also have to update GameDir folder * git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3009 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -154,6 +154,14 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
||||
{
|
||||
char fileName[MAX_PATH];
|
||||
|
||||
//zilpin: pellet spread patterns externalized in XML
|
||||
//If file not found, or error, then the old hard-coded defaults are used by LOS.cpp
|
||||
//This needs to be loaded before AmmoTypes and Items because SpreadPatterns can be referenced by name or index.
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, SPREADPATTERNSFILENAME);
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||
ReadInSpreadPatterns(fileName);
|
||||
|
||||
// WANNE: Enemy drops - begin
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, ENEMYMISCDROPSFILENAME);
|
||||
|
||||
Reference in New Issue
Block a user