mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -55,6 +55,7 @@ explosiveStartElementHandle(void *userData, const XML_Char *name, const XML_Char
|
||||
strcmp(name, "ubVolume") == 0 ||
|
||||
strcmp(name, "ubVolatility") == 0 ||
|
||||
strcmp(name, "ubStartRadius") == 0 ||
|
||||
strcmp(name, "ubMagSize") == 0 ||
|
||||
strcmp(name, "ubDuration") == 0 ||
|
||||
strcmp(name, "ubAnimationID") == 0 ))
|
||||
{
|
||||
@@ -148,6 +149,11 @@ explosiveEndElementHandle(void *userData, const XML_Char *name)
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curExplosive.ubStartRadius = (UINT8) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "ubMagSize") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
pData->curExplosive.ubMagSize = (UINT8) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "ubDuration") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
@@ -255,6 +261,7 @@ BOOLEAN WriteExplosiveStats()
|
||||
FilePrintf(hFile,"\t\t<ubAnimationID>%d</ubAnimationID>\r\n", Explosive[cnt].ubAnimationID );
|
||||
FilePrintf(hFile,"\t\t<ubDuration>%d</ubDuration>\r\n", Explosive[cnt].ubDuration );
|
||||
FilePrintf(hFile,"\t\t<ubStartRadius>%d</ubStartRadius>\r\n", Explosive[cnt].ubStartRadius );
|
||||
FilePrintf(hFile,"\t\t<ubMagSize>%d</ubMagSize>\r\n", Explosive[cnt].ubMagSize );
|
||||
|
||||
FilePrintf(hFile,"\t</EXPLOSIVE>\r\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user