Added Common Attachment Framework

-- Known issue -- the BR gun tooltips will double up if an item is using both the old attachment method and the new CAF

& Working files

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5234 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-04-28 10:17:59 +00:00
parent 11cc056601
commit dafc7d8bec
10 changed files with 258 additions and 47 deletions
+2 -2
View File
@@ -122,12 +122,12 @@ attachmentslotEndElementHandle(void *userData, const XML_Char *name)
else if(strcmp(name, "nasAttachmentClass") == 0)
{
pData->curElement = ELEMENT;
pData->curAttachmentSlot.nasAttachmentClass = (UINT32) atol(pData->szCharData);
pData->curAttachmentSlot.nasAttachmentClass = (UINT64) atof(pData->szCharData);
}
else if(strcmp(name, "nasLayoutClass") == 0)
{
pData->curElement = ELEMENT;
pData->curAttachmentSlot.nasLayoutClass = (UINT128) atol(pData->szCharData);
pData->curAttachmentSlot.nasLayoutClass = (UINT64) atof(pData->szCharData);
}
else if(strcmp(name, "usDescPanelPosX") == 0)
{