-fixed integral bipods not working properly

-changed "bipod" tag in items.xml from a boolean to an integer.  It is now the to-hit bonus for the bipod.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@439 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-08-14 15:58:56 +00:00
parent b105138b2e
commit 7349c3f664
4 changed files with 28 additions and 14 deletions
+1 -1
View File
@@ -565,7 +565,7 @@ itemEndElementHandle(void *userData, const char *name)
else if(strcmp(name, "Bipod") == 0)
{
pData->curElement = ELEMENT;
pData->curItem.bipod = (BOOLEAN) atol(pData->szCharData);
pData->curItem.bipod = (INT16) atol(pData->szCharData);
}
else if(strcmp(name, "ToHitBonus") == 0)
{